STM8S007C8
Product overview
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
Timer
TIM1
TIM2
TIM3
TIM4
Table 3. TIM timer features
Counter
size
(bits)
Prescaler
Counting CAPCOM Complem. Ext.
mode channels outputs trigger
16 Any integer from 1 to 65536
Up/down
4
16 Any power of 2 from 1 to 32768 Up
3
16 Any power of 2 from 1 to 32768 Up
2
8
Any power of 2 from 1 to 128
Up
0
3
Yes
0
No
0
No
0
No
Timer
synchr-
onization/
chaining
No
4.13
Analog-to-digital converter (ADC2)
STM8S007C8 value line products contain a 10-bit successive approximation A/D converter
(ADC2) with up to 10 multiplexed input channels and the following main features:
Input voltage range: 0 to VDDA
Conversion time: 14 clock cycles
Single and continuous modes
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.
UART3: full feature UART, LIN2.1 master/slave capability
SPI: full and half-duplex, 10 Mbit/s
I²C: up to 400 Kbit/s
DocID022171 Rev 5
17/92
25