English
Language : 

AN3280 Datasheet, PDF (1/13 Pages) STMicroelectronics – Displaying variable voltage on a bar of LEDs using STM8S-DISCOVERY
AN3280
Application Note
Displaying variable voltage on a bar of LEDs
using STM8S-DISCOVERY
Application overview
This application note provides a short description of how to use the ADC, Timer and GPIO
peripherals.
Once the STM8S105C6T6 has been powered-up through a USB cable connected to the
host PC, the Timer triggers the ADC according to a user-defined period to convert the
analog voltage provided by variable resistor RV1. The resulting average voltage
measurement is represented on the LED bar.
Even though the STM8S-DISCOVERY is built around an STM8S105C6T6, it allows
evaluation of the main features of all the STM8S MCUs.
Reference documents
■ STM8S-DISCOVERY evaluation board user manual (UM0817).
■ Developing and debugging your STM8S-DISCOVERY application code user manual
(UM0834).
October 2010
Doc ID 17983 Rev 1
1/13
www.st.com