ST7LITEU05 ST7LITEU09
11.2 12-BIT AUTORELOAD TIMER (AT)
11.2.1 Introduction
The 12-bit Autoreload Timer can be used for gen-
eral-purpose timing functions. It is based on a free-
running 12-bit upcounter with a PWM output chan-
nel.
11.2.2 Main Features
■ 12-bit upcounter with 12-bit autoreload register
(ATR)
■ Maskable overflow interrupt
■ PWM signal generator
■ Frequency range 2KHz-4MHz (@ 8 MHz fCPU)
– Programmable duty-cycle
– Polarity control
– Maskable Compare interrupt
■ Output Compare Function
Figure 37. Block Diagram
7 ATCSR
OVF INTERRUPT
0 REQUEST
0
0
0 CK1 CK0 OVF OVFIECMPIE
fLTIMER
(1 ms timebase
@ 8MHz)
fCPU
CMPF0
CMP INTERRUPT
REQUEST
fCOUNTER
CNTR
12-BIT UPCOUNTER
Update on OVF Event
12-BIT AUTORELOAD VALUE
ATR
OE0 bit
DCR0H
Preload
DCR0L
Preload
on OVF Event
IF OE0=1
12-BIT DUTY CYCLE VALUE (shadow)
OE0 bit CMPF0 bit
0 COMP-
1
PARE
OP0 bit
fPWM POL-
ARITY
PWM0
58/115
1