Datasheet

Product overview STM8S003F3 STM8S003K3
18/103 DS7147 Rev 10
4.12 TIM4 - 8-bit basic timer
8-bit autoreload, 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)
STM8S003F3/K3 value line products contain a 10-bit successive approximation A/D
converter (ADC1) with up to 5 external multiplexed input channels and the following main
features:
Input voltage range: 0 to V
DDA
Conversion time: 14 clock cycles
Single and continuous, buffered continuous conversion modes
Buffer size (10 x 10 bits)
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.
4.14 Communication interfaces
The following communication interfaces are implemented:
UART1: full feature UART, synchronous mode, SPI master mode, SmartCard mode,
IrDA mode, LIN2.1 master capability
SPI: full and half-duplex, 8 Mbit/s
I²C: up to 400 Kbit/s
Table 3. TIM timer features
Timer
Counter
size
(bits)
Prescaler
Counting
mode
CAPCOM
channels
Complem.
outputs
Ext.
trigger
Timer
synchr-
onization/
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
TIM4 8 Any power of 2 from 1 to 128 Up 0 0 No