Electronic Components Datasheet Search
  English  ▼

X  

AN2038 Datasheet(PDF) 7 Page - STMicroelectronics

Part # AN2038
Description  I2C emulation with ST7MC in slave mode
PDF  23 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2038 Datasheet(HTML) 7 Page - STMicroelectronics

Back Button AN2038 Datasheet HTML 3Page - STMicroelectronics AN2038 Datasheet HTML 4Page - STMicroelectronics AN2038 Datasheet HTML 5Page - STMicroelectronics AN2038 Datasheet HTML 6Page - STMicroelectronics AN2038 Datasheet HTML 7Page - STMicroelectronics AN2038 Datasheet HTML 8Page - STMicroelectronics AN2038 Datasheet HTML 9Page - STMicroelectronics AN2038 Datasheet HTML 10Page - STMicroelectronics AN2038 Datasheet HTML 11Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 7 / 23 page
background image
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.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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