Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN3397 Datasheet(PDF) 15 Page - STMicroelectronics

Part # AN3397
Description  Temperature sensor example using the STM8L-DISCOVERY board
PDF  24 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3397 Datasheet(HTML) 15 Page - STMicroelectronics

Back Button AN3397 Datasheet HTML 11Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 15 / 24 page
background image
AN3397
Software description
Doc ID 018809 Rev 1
15/24
3
Software description
3.1
STM8L peripherals used by the application
The application software uses the standard STM8L firmware library to control the
peripherals. The peripherals and functions used by the application software are listed below:
Clock
The HSI (high speed internal) 16 MHz oscillator is selected as clock source:
●
System clock divider = 0
●
fCPU = 16 MHz
LCD controller
The LCD controller drives the LCD glass mounted on the DISCOVERY board. It is interfaced
using 24 segment lines and four common lines, and is configured as follows:
●
CLK (PSC = 1 and DIV = 31)
●
Duty = 1/4
●
Bias = 1/3
●
LCD voltage source = internal
●
Contrast = 3.10 V
●
No dead time
●
Pulse on duration = 1
ADC
The ADC converts the TS output voltage into a digital value. The ADC peripheral is
configured as follows:
●
ADON = 1 and TSON = 1
●
Single conversion mode
●
12-bit resolution
●
ADC clock frequency = fCPU (clock prescaler = 0)
●
Sampling time = 192 ADC clock cycles (12 µs @ fCPU = 16 MHz)
●
TS channel selected
Real-time clock (RTC)
The RTC generates the time base for waking up the microcontroller from low power Active-
halt mode. The RTC peripheral is configured as follows:
●
Low-speed external (LSE) clock selected as RTC clock source by default. The low-
speed internal (LSI) clock can also be used by removing the USE_LSE definition in the
project options.
●
RTC clock prescaler = RTC clock source/1
●
Wakeup clock selection bits, WUCKSEL[2:0], are set to 000: RTCCLK/16 to generate
an RTC counter timebase of approximately 500 µs
●
Wakeup counter registers, WUTRx, are set to 100 to generate a 50 ms wakeup time



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


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