データシートサーチシステム
  Japanese  ▼
ALLDATASHEET.JP

X  

AN3397 データシート(PDF) 16 Page - STMicroelectronics

部品番号 AN3397
部品情報  Temperature sensor example using the STM8L-DISCOVERY board
PDF  24 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
メーカー  STMICROELECTRONICS [STMicroelectronics]
ホームページ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3397 データシート(HTML) 16 Page - STMicroelectronics

Back Button AN3397 Datasheet HTML 12Page - STMicroelectronics AN3397 Datasheet HTML 13Page - STMicroelectronics AN3397 Datasheet HTML 14Page - STMicroelectronics AN3397 Datasheet HTML 15Page - STMicroelectronics AN3397 Datasheet HTML 16Page - STMicroelectronics AN3397 Datasheet HTML 17Page - STMicroelectronics AN3397 Datasheet HTML 18Page - STMicroelectronics AN3397 Datasheet HTML 19Page - STMicroelectronics AN3397 Datasheet HTML 20Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 16 / 24 page
background image
Software description
AN3397
16/24
Doc ID 018809 Rev 1
General purpose input/output (GPIO)
The GPIO ports C and E are interfaced with a user push-button and light-emitting diodes
(LEDs). The GPIO peripheral is configured as follows:
●
PC1 set as input floating pin with interrupt (the user push-button)
●
PC7 and PE7 set as output push-pull pin (LED4 and LED3 respectively)
●
When the user push-button is pressed, an interrupt with interrupt sensitivity set to
falling edge and low level is generated on PC1.
3.2
Application software flowchart
3.2.1
Main TS application routine flowchart
The main TS application routine (Figure 5) initializes all the peripherals using the settings
listed in Section 3.1: STM8L peripherals used by the application.
After initialization, interrupts are enabled and the application operation mode is tested.
If #define ADVANCED_MODE is commented in the main.c file, the application automatically
switches to Normal operating mode using the typical V90 value and the default Avg_slope
(Section 2.4.2: Operating modes).
On the other hand, in Advanced operating mode, the factory calibration data point is tested
for validity. If the factory calibration point does not exist or is not within the tolerance defined
in the datasheet, the application automatically switches back to Normal mode. If the factory
calibration point does exist, the application tests whether or not the user calibration point
has already been processed.
If the user calibration point has been processed, the application goes directly to the infinite
loop for temperature acquisition.
If the user calibration point has not been processed, the application uses this data point to
accurately calculate the sensor characteristic slope before going into the main infinite loop.



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


データシート ダウンロード

Go To PDF Page


リンク URL



ALLDATASHEETはお客様のビジネスに役立ちますか?  [ DONATE ] 

Alldatasheetは   |   広告   |   お問い合わせ   |   プライバシーポリシー   |   データシートへのリンク    |   リンク交換   |   メーカーリスト
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