| Electronic Components Datasheet Search |
|
AN2038 Datasheet(PDF) 7 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2038 Datasheet(HTML) 7 Page - STMicroelectronics |
|
7 / 23 page ![]() AN2038 I2C emulation 7/23 If a TIMEOUT occurs or a Stop condition is detected the state is forced to WAIT_START. Each time a rising edge occurs on SDA occurs together with SCL in high state, a Stop Condition occurs. In this case a flag is set indicating that new data has been received or transmitted. This flag is used by the ProtoSup module. When an SPI interrupt occurs a byte is received or transmitted. If it is the first byte after the Start Condition, this byte will be analyzed to see if: ● The Slave is addressed, this is the case if the address of the slave is equal to the microcontroller I2C address. ● If the transmission is a write from the master or a read from the slave. If it is the former, the following bytes have to be read else the transmission buffer has to be transmitted using SPI. The corresponding status flag is therefore set. If the byte received is not the first byte, it is stored in a read buffer. If an end of transmission interrupt occurs, the microcontroller has to validate the transmission by detecting the master acknowledge. The detection of master acknowledges will be performed in the SCL interrupt service routine on falling edge. After the detection of the master acknowledge a new byte in the transmission buffer will be sent. If the buffer is empty, the condition is indicated setting a flag. |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |