Electronic Components Datasheet Search
  English  ▼

X  

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

Back Button 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 AN2038 Datasheet HTML 22Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 18 / 23 page
background image
Function description
AN2038
18/23
6.2
PROTOSUP module
This module contains the high level routine to dispatch the commands frame.
Function Name
Input Parameter
Return Value
INT_SDA_I2C
void
void
Description
ISR generated on each edge of SDA. It is used to detect Start or Stop condition.
If a falling edge of SDA occurs when SCL is high a Start Condition (to be validated) occurs. In this
case the I2C_First_Byte will be set to indicate that the next byte sent is the first byte after Start
Condition, the state is changed in START_VALIDATION and the timer is started calling
"Start_TIMER" function.
If a rising edge of SDA occurs when SCL is high a Stop Condition occurs. In this case the state is
changed in WAIT_START and the "I2C_Stop_detected" function is called.
Function Name
Input Parameter
Return Value
INT_SCK_I2C
void
void
Description
ISR generated on each falling edge of the clock. It is used for three purpose:
– If status is STARTING_VALIDATION it will be validated and the status is set to
COMMUNICATION.
– If the slave is acknowledging (I2C_Slave_Ack true) it stop the Slave acknowledge.
– If the slave is in waiting of master acknowledge here it is checked and the next byte in
I2C_Datas_W will be sent.
Function Name
Input Parameter
Return Value
Test_Check_sum
void
True or False
Description
This function returns true is the checksum received in the read buffer is coherent with the data
received, otherwise return false.
Function Name
Input Parameter
Return Value
Return_CRC
Pointer to data buffer
CRC calculated
Description
This function returns the CRC of the data present in the buffer. The CRC is the sum of the byte in the
buffer.



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