Method and system for simulating I2C (Inter-Integrated Circuit) communication
A communication method and technology of a communication system, which is applied in the field of system task scheduling, and can solve problems such as I2C data transmission exceptions and operation command system exceptions
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] An analog I2C communication method provided by an embodiment of the present invention, such as figure 1 As shown, in this embodiment, steps S1 to S4 are included:
[0042] S1. Set an I2C sending task and configure it as the highest priority;
[0043] In this embodiment, configuring it as the highest priority is specifically: configuring the priority of the I2C sending task to be higher than the priority of the data tasks corresponding to all the I2C slave devices.
[0044] Task states include running, ready, blocked, and suspended.
[0045] In this embodiment, the I2C sending task is configured to have a higher priority than the data tasks corresponding to all I2C slave devices, so as to ensure that in the RTOS, only one task is running at any time. When the data task corresponding to one of the slave devices calls the analog I2C module to send I2C data, even if the data tasks of other slave devices are ready, the current I2C data transmission cannot be interrupted. O...
Embodiment 2
[0061] The reference numerals in the drawings in the description in this embodiment include: master control device 1, slave device 1 to slave device n, data task module 1 to data task module n, I2C sending task module 2, analog I2C module 3, I / O1, I / O2.
[0062] The embodiment of the present invention also provides an analog I2C communication system, see figure 2 , including master device 1 and multiple slave devices (such as figure 2 Slave device 1 to slave device n (n>1)); the master control device 1 includes a plurality of data task modules corresponding to the slave devices one-to-one, as well as I2C sending task module 2, analog I2C module 3 and I / O interface ; The data task module, I2C sending task module 2, and analog I2C module 3 are connected in turn, and the analog I2C module 3 is connected to the slave device through the I / O interface;
[0063] The data task module is used to generate I2C data corresponding to the slave device; such as figure 2 Data task modu...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com


