Electronic Components Datasheet Search
  English  ▼

X  

AN2038 Datasheet(PDF) 17 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) 17 Page - STMicroelectronics

Back Button AN2038 Datasheet HTML 13Page - STMicroelectronics AN2038 Datasheet HTML 14Page - STMicroelectronics AN2038 Datasheet HTML 15Page - STMicroelectronics AN2038 Datasheet HTML 16Page - STMicroelectronics AN2038 Datasheet HTML 17Page - STMicroelectronics AN2038 Datasheet HTML 18Page - STMicroelectronics AN2038 Datasheet HTML 19Page - STMicroelectronics AN2038 Datasheet HTML 20Page - STMicroelectronics AN2038 Datasheet HTML 21Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 17 / 23 page
background image
AN2038
Function description
17/23
Interrupt Service Routine
Function Name
Input Parameter
Return Value
Reset_TIMER
void
void
Description
Reset and Freeze the timer. It is called after a validation of Start Condition.
Function Name
Input Parameter
Return Value
Start_TIMER
void
void
Description
UnFreeze the Timer. It is called when a falling of SDA occurs when SCL is high (Start Condition)
Function Name
Input Parameter
Return Value
TIMER_A_Interrupt_Routine
void
void
Description
Timeout interrupt service routine.
It is used to reset the state if a Start Condition is not validated.
The ISR will be executed TIMEOUT microseconds (defined in I2C.h) after the "Start_TIMER"
command; usually the timer start after a falling of SDA while SCL is high (Start Condition event).
If TIMEOUT occurs without a valid clock impulse the status came back to WAIT_START and the
timer will be reinitialized (freeze) in this case the Start Condition is not validated.
Function Name
Input Parameter
Return Value
SPI_Interrupt_Routine
void
void
Description
ISR executed each SPI end of transmission.
If the received byte is the first byte after the Start Condition, the slave check if it is addressed (the
SLAVE_ADDRESS is defined in the I2C.h). If it is addressed, acknowledge will be sent, in the same
time the flags SLAVE_READ or SLAVE_WRITE will be set according the 8th bit (R/W bit).
Otherwise,
if SLAVE is reading (SLAVE_READ is true) the data is stored in I2C_Datas_R and acknowledge will
be sent;
if SLAVE is writing (SLAVE_WRITE is true) set SLAVE_WAIT_MSACK flag. SPI is disabled and the
micro is waiting for the next clock to validate the master acknowledge.



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