| Electronic Components Datasheet Search |
|
AN2038 Datasheet(PDF) 16 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2038 Datasheet(HTML) 16 Page - STMicroelectronics |
|
16 / 23 page ![]() Function description AN2038 16/23 Low level routine Function Name Input Parameter Return Value Init_INT_SCK_4_I2C void void Description Initialize the external interrupt SCK (ei2 PC1). (This function is called by Init_I2C_Protocol) This function sets PC1 as floating interrupt sensitive to falling edge. Function Name Input Parameter Return Value Init_INT_SDA_4_I2C void void Description Initialize the external interrupt SDA (ei0 PD1). (This function is called by Init_I2C_Protocol) This function sets PD1 as floating interrupt sensitive to rising and falling edge. Function Name Input Parameter Return Value I2C_enable_SPI void void Description This function enables the SPI communication. It is enabled after a Start condition and falling of SCK. It clear also the pending bit. Function Name Input Parameter Return Value I2C_disable_SPI void void Description This function disables the SPI communication. The ports is dedicated to sensing the edge transition using port interrupts. Function Name Input Parameter Return Value I2C_Stop_detected void void Description This function is called when a Stop condition is detected. It disables the SPI peripheral and reinitialize SDA and SCK interrupts. If the communication is from master to slave (I2C_SLAVE_READ_flag set true) the flag New_Data_Receved is set to true for high level protocol purposes (ProtoSup), Otherwise if the communication is from slave to master (I2C_SLAVE_WRITE_flag set true) the flag New_Data_Sent is set to true. |
|
|
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 |