Datasheet
STM8L052C6 Functional overview
Doc ID 022924 Rev 2 17/52
3.9 Analog-to-digital converter
● 12-bit analog-to-digital converter (ADC1) with 25 channels (including 1 fast channel)
and internal reference voltage
● Conversion time down to 1 µs with f
SYSCLK
= 16 MHz
● Programmable resolution
● Programmable sampling time
● Single and continuous mode of conversion
● Scan capability: automatic conversion performed on a selected group of analog inputs
● Analog watchdog
● Triggered by timer
Note: ADC1 can be served by DMA1.
3.10 System configuration controller and routing interface
The system configuration controller provides the capability to remap some alternate
functions on different I/O ports. TIM4 and ADC1 DMA channels can also be remapped.
The highly flexible routing interface allows application software to control the routing of
different I/Os to the TIM1 timer input captures. It also controls the routing of internal analog
signals to ADC1 and the internal reference voltage V
REFINT
.
3.11 Timers
The medium density value line STM8L05xxx devices contain one advanced control timer
(TIM1), two 16-bit general purpose timers (TIM2 and TIM3) and one 8-bit basic timer
(TIM4).
All the timers can be served by DMA1.
Tabl e 2 compares the features of the advanced control, general-purpose and basic timers.
Table 2. Timer feature comparison
Timer
Counter
resolution
Counter
type
Prescaler factor
DMA1
request
generation
Capture/compare
channels
Complementary
outputs
TIM1
16-bit up/down
Any integer
from 1 to 65536
Ye s
3 + 1 3
TIM2
Any power of 2
from 1 to 128
2
None
TIM3
TIM4 8-bit up
Any power of 2
from 1 to 32768
0