I2C Device Self-Polling Mode Switching to Reduce MCU Load
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The existing I2C system faces inefficiencies due to time-consuming polling operations, which lead to resource consumption and electromagnetic interference, especially when dealing with a large number of slave devices, and requires additional lines and I/O pins for communication.
Innovation Solution
An I2C device is configured to switch between master and slave modes, allowing it to poll itself for status information and perform parameter adjustments, reducing the need for frequent MCU interactions and signal transmissions on the I2C bus.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the master device polls slave devices to obtain status information, then the master device can monitor slave device status, but the polling operation consumes a lot of time and causes the master device to be busy
Solution Approach 1:
The slave device performs self-polling to check its own status information and determine whether parameter adjustment is needed, eliminating the need for the master device to poll each slave device. This self-service approach allows the slave device to autonomously monitor its status and trigger parameter adjustments when necessary, significantly reducing the time and resources the master device spends on polling operations.
2Reliability
If the master device polls slave devices frequently, then status information can be obtained timely, but the I2C bus becomes busy and electromagnetic interference increases
Solution Approach 1:
The slave device autonomously checks its status information through self-polling and determines whether parameter adjustment is needed without requiring frequent master device involvement. This reduces the number of I2C bus transactions, thereby minimizing electromagnetic interference while still ensuring timely status monitoring through the slave device's autonomous operation.
3Adaptability or versatility
If additional lines and I/O pins are used for master device to obtain information from slave device, then communication flexibility is improved, but circuit cost increases
Solution Approach 1:
The existing I2C bus lines are utilized for multiple purposes: both for conventional master-to-slave communication and for the slave device's self-polling operations. This multi-functional use of the same physical lines maintains communication flexibility while avoiding the need for additional I/O pins and reducing circuit complexity and cost.
Data Source
AI summary
A control method for a first device of an inter-integrated circuit (I2C) system including a microcontroller unit (MCU), includes receiving a first indication from the MCU of the I2C system, wherein the first indication configures the first device from a slave mode to a master mode; polling the first device itself for status information of the first device when the first device is in the master mode; determining whether the status information of the first device matches a target status after polling; and determining to perform a parameter adjustment on a second device of the I2C system when determining that the status information of the first device matches the target status.


