| Electronic Components Datasheet Search |
|
AN2038 Datasheet(PDF) 18 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2038 Datasheet(HTML) 18 Page - STMicroelectronics |
|
18 / 23 page ![]() 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. |
|
|
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 |