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