Electronic Components Datasheet Search
  English  ▼

X  

AN3108 Datasheet(PDF) 18 Page - STMicroelectronics

Part # AN3108
Description  STLM75 firmware library for the STM32F10x
PDF  44 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3108 Datasheet(HTML) 18 Page - STMicroelectronics

Back Button AN3108 Datasheet HTML 14Page - STMicroelectronics AN3108 Datasheet HTML 15Page - STMicroelectronics AN3108 Datasheet HTML 16Page - STMicroelectronics AN3108 Datasheet HTML 17Page - STMicroelectronics AN3108 Datasheet HTML 18Page - STMicroelectronics AN3108 Datasheet HTML 19Page - STMicroelectronics AN3108 Datasheet HTML 20Page - STMicroelectronics AN3108 Datasheet HTML 21Page - STMicroelectronics AN3108 Datasheet HTML 22Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 18 / 44 page
background image
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 ++;



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 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44


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