
Obsolete Product(s) - Obsolete Product(s)
Obsolete Product(s) - Obsolete Product(s)
ST7LITEUS2, ST7LITEUS5
On-chip peripherals
71/136
10.2
12-bit auto-reload timer (AT)
10.2.1 Introduction
The 12-bit auto-reload timer can be used for general-purpose timing functions. It is based on
a free-running 12-bit upcounter with a PWM output channel.
10.2.2 Main
features
●
12-bit upcounter with 12-bit auto-reload register (ATR)
●
Maskable overflow interrupt
●
PWM signal generator
●
Frequency range 2 kHz - 4 MHz (@ 8 MHz f
CPU
)
–
Programmable duty-cycle
–
Polarity control
–
Maskable compare interrupt
●
Output compare function
Figure 33.
Block diagram
10.2.3 Functional
description
PWM mode
This mode allows a pulse width modulated signals to be generated on the PWM0 output pin
with minimum core processing overhead. The PWM0 output signal can be enabled or
disabled using the OE0 bit in the PWMCR register. When this bit is set the PWM I/O pin is
configured as output push-pull alternate function.
Note:
CMPF0 is available in PWM mode (see
Section : PWM0 control/status register
ATCSR
CMPIE
OVFIE
OVF
CK0
CK1
0
0
0
12-BIT AUTO-RELOAD VALUE
12-BIT UPCOUNTER
CMPF0 bit
CMPF0
CMP INTERRUPT
REQUEST
OVF INTERRUPT
REQUEST
f
CPU
ATR
PWM GENERA
T
ION
POL-
ARITY
OP0 bit
PWM0
COMP-
PARE
f
COUNTER
f
PWM
OUTPUT C
O
NTR
O
L
OE0 bit
CNTR
(1 ms timebase
f
LTIMER
DCR0H
DCR0L
Update on OVF Event
Preload
Preload
@ 8 MHz)
7
0
on OVF Event
0
1
12-BIT DUTY CYCLE VALUE (shadow)
OE0 bit
IF OE0=1
Obsolete Product(s) - Obsolete Product(s)