Electronic Components Datasheet Search
  English  ▼

X  

AN3260 Datasheet(PDF) 11 Page - STMicroelectronics

Part # AN3260
Description  Building a thermometer using the STM8S-DISCOVERY
PDF  24 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3260 Datasheet(HTML) 11 Page - STMicroelectronics

Back Button AN3260 Datasheet HTML 7Page - STMicroelectronics AN3260 Datasheet HTML 8Page - STMicroelectronics AN3260 Datasheet HTML 9Page - STMicroelectronics AN3260 Datasheet HTML 10Page - STMicroelectronics AN3260 Datasheet HTML 11Page - STMicroelectronics AN3260 Datasheet HTML 12Page - STMicroelectronics AN3260 Datasheet HTML 13Page - STMicroelectronics AN3260 Datasheet HTML 14Page - STMicroelectronics AN3260 Datasheet HTML 15Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 11 / 24 page
background image
AN3260
Software description
Doc ID 17836 Rev 1
11/24
4
Software description
4.1
STM8S peripherals used by the application
The thermometer application software does not use STM8S standard firmware library. It
rather consists in optimized code by using direct register accesses to control and use the
STM8S general purpose peripherals as described below:
G
CLK
The clock controller enables and delivers the correct clock frequency to the CPU and
peripherals. It configures the HSE clock as the 16 MHz master clock source and the
CPU clock prescaler division factor to 1.
G
GPIOs
The STM8S GPIOs are used to switch on and off LD1, and to configure PA3 and PA4 to
interface with pushbuttons.
G
EXTI
The external interrupt sensitivity is configured to trigger an interrupt each time a falling
edge and only a falling edge, is detected on PA3 or PA4.
G
Flash memory
The minimum and maximum temperature values over one-hour period are saved in the
data EEPROM for further display on the terminal window.
G
UART2
UART2 is used to communicate with the PC terminal software. It is configured as
follows:
–
Baud rate = 9600 baud
–
Word length = 8 bits
–
One stop bit
–
No parity
–
Receive and transmit enabled
–
UART2 clock disabled
Communications are managed by polling each receive and transmit operation on the
UART2 peripheral.
G
ADC1
Channel 2 of the ADC1 is used to convert the analog data issued from the LM235 to
digital values out of which the microcontroller can compute the current temperature
value.
G
Timer 3 (TIM3)
This peripheral is used to generate a 50-ms timebase and to trigger a temperature
acquisition every 50 ms.



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