Datasheet
Functional overview STM8L151xx, STM8L152xx
22/131 DocID15962 Rev 13
3.14.2  16-bit general purpose timers
 16-bit autoreload (AR) up/down-counter
 7-bit prescaler adjustable to fixed power of 2 ratios (1…128)
 2 individually configurable capture/compare channels
 PWM mode
 Interrupt capability on various events (capture, compare, overflow, break, trigger)
 Synchronization with other timers or external signals (external clock, reset, trigger and 
enable)
3.14.3 8-bit basic timer
The 8-bit timer consists of an 8-bit up auto-reload counter driven by a programmable 
prescaler. It can be used for timebase generation with interrupt generation on timer overflow 
or for DAC trigger generation.
3.15 Watchdog timers
The watchdog system is based on two independent timers providing maximum security to 
the applications.
3.15.1 Window watchdog timer
The window watchdog (WWDG) is used to detect the occurrence of a software fault, usually 
generated by external interferences or by unexpected logical conditions, which cause the 
application program to abandon its normal sequence.
3.15.2 Independent watchdog timer
The independent watchdog peripheral (IWDG) can be used to resolve processor 
malfunctions due to hardware or software failures. 
It is clocked by the internal LSI RC clock source, and thus stays active even in case of a 
CPU clock failure.
3.16 Beeper
The beeper function outputs a signal on the BEEP pin for sound generation. The signal is in 
the range of 1, 2 or 4 kHz. 










