| Electronic Components Datasheet Search |
|
AN3108 Datasheet(PDF) 18 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3108 Datasheet(HTML) 18 Page - STMicroelectronics |
|
18 / 44 page ![]() STLM75 library firmware AN3108 18/44 Doc ID 16793 Rev 1 TempSensor::TimeoutTicks API property The TempSensor structure exports the following public property: TS_u32 TimeoutTicks; The TimeoutTick property allows the final application to avoid application block in case of I2C communication problems. TimeoutTick is the number of g_TempSensorTick to wait during an I2C communication between the microcontroller and the STLM75 before considering that an error has occurred and resetting the I2C peripheral. Warning: TimeoutTicks must be set to >0 as following ONLY if g_TempSensorTick is defined as: extern volatile u32 g_TempSensorTick; in the final application source code, and it is incremented in a scheduler timer IRQ handler. If you don't want to use timeout feature, don't configure the TimeoutTicks property or set it to 0. The following is an example of TimeoutTicks property: ... ... ● File: main.c int main(void) { ... /* configure SysTick timer in order to have a tick each ms */ ... /* configure the Temperature Sensor TimeoutTicks */ pObjTempSensor->TimeoutTicks = 2; /* 2ms:we have a g_TempSensorTick each millisecond */ ... } ● File: stm32f10x_it.c extern volatile u32 g_TempSensorTick; ... void SysTickHandler(void) { // Increment Temperature Sensor tick for Timeout purpose g_TempSensorTick ++; |
|
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 |