I2C Slave Device Byte End Flag Transmission Control
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In traditional I2C designs, slave devices continue to transmit data after the last byte has been sent, leading to potential underflows or overflows, requiring complex interrupt management or dummy data writing, which can cause errors and complicate data transmission.
Innovation Solution
A slave device connected to a master device via an I2C bus uses a byte end flag (BND) to detect when all data has been transmitted, allowing it to clear the flag and stop data transmission without switching modes or using dummy data, ensuring reliable communication.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the slave device continues to transmit data after the last byte has been sent, then the data register remains active and ready for new data, but this causes potential underflows or overflows and requires complex interrupt management
Solution Approach 1:
The patent extracts the byte end flag (BND) as a separate control mechanism from the traditional interrupt management system. This flag is specifically used to indicate when all data has been transmitted, allowing the slave device to stop transmission without requiring complex interrupt logic to prevent underflows or overflows.
Solution Approach 2:
The byte end flag acts as an intermediary between the data transmission process and the interrupt management system. Instead of directly managing complex interrupts to prevent underflows/overflows, the BND flag provides a simple intermediate signal that indicates when transmission is complete, simplifying the overall control logic.
2Ease of operation
If the slave device uses dummy data writing to stop transmission, then the transmission can be halted, but this can cause data errors and complicate data transmission
Solution Approach 1:
The patent extracts the byte end flag as a dedicated control mechanism specifically for indicating when all data has been transmitted. This separate flag allows the slave device to stop transmission cleanly without resorting to dummy data writing, which could cause data errors.
3Ease of operation
If the slave device switches modes to stop transmission, then data transmission can be halted, but this increases response time and complicates configuration
Solution Approach 1:
The patent extracts the byte end flag as a simple control mechanism that allows the slave device to stop transmission without switching modes. This direct control approach eliminates the time loss and configuration complexity associated with mode switching while maintaining ease of operation.
Data Source
AI summary
The present disclosure discloses a communication method for a slave device connected to a master device via an I2C bus. The method includes detecting the condition of a byte end flag when the slave device is in a transmission mode, and clearing the byte end flag to stop transmitting data to the master device as the slave device is in the transmission mode when the byte end flag is detected to be in a first condition. The first condition indicates all data requested by the master device has been transmitted by the slave device. The present disclosure further discloses a slave device using the above-mentioned communication method. When the slave device is in the transmission mode, it is unnecessary to switch the operation mode of the slave device to stop the slave device from continuing transmitting data when the last byte of data has been transmitted.


