Product overview
STM8S003F3 STM8S003K3
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
Table 3. TIM timer features
Timer
synchr-
onization/
chaining
Counter
size
(bits)
CAPCOM
Counting
mode
Complem.
outputs
Ext.
trigger
Timer
Prescaler
channels
TIM1
TIM2
TIM4
16
16
8
Any integer from 1 to 65536
Any power of 2 from 1 to 32768
Any power of 2 from 1 to 128
Up/down
Up
4
3
0
3
0
0
Yes
No
No
No
Up
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 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 (n x 10 bits) where n = number of input channels
External trigger input
Trigger from TIM1 TRGO
End of conversion (EOC) interrupt
4.14
Communication interfaces
The following communication interfaces are implemented:
•
UART1: full feature UART, SPI emulation, LIN2.1 master capability, SmartCard mode,
IrDA mode, single wire mode.
•
•
SPI: full and half-duplex, 8 Mbit/s
I²C: up to 400 Kbit/s
18/103
DocID018576 Rev 5