Datasheet
DocID14771 Rev 15 19/121
STM8S105x4/6 Product overview
21
4.12 TIM4 - 8-bit basic timer
8-bit auto reload, adjustable prescaler ratio to any power of 2 from 1 to 128
Clock source: CPU clock
Interrupt source: 1 x overflow/update
4.13 Analog-to-digital converter (ADC1)
The STM8S105x4/6 products contain a 10-bit successive approximation A/D converter
(ADC1) with up to 10 multiplexed input channels and the following main features:
Input voltage range: 0 to VDD
Conversion time: 14 clock cycles
Single and continuous and buffered continuous conversion modes
Buffer size (n x 10 bits) where n = number of input channels
Scan mode for single and continuous conversion of a sequence of channels
Analog watchdog capability with programmable upper and lower thresholds
Analog watchdog interrupt
External trigger input
Trigger from TIM1 TRGO
End of conversion (EOC) interrupt
Note: Additional AIN12 analog input is not selectable in ADC scan mode or with analog watchdog.
Values converted from AIN12 are stored only into the ADC_DRH/ADC_DRL registers.
Table 3. TIM timer features
Timer
Counter
size (bits)
Prescaler
Counting
mode
CAPCOM
channels
Complementary
outputs
Ext.
trigger
Timer
synchronization/
chaining
TIM1 16
Any integer
from 1 to
65536
Up/down 4 3 Yes
No
TIM2 16
Any power
of 2 from 1
to 32768
Up 3 0 No
TIM3 16
Any power
of 2 from 1
to 32768
Up 2 0 No
TIM4 8
Any power
of 2 from 1
to 128
Up 0 0 No