ST7LITE1xB
11.2 DUAL 12-BIT AUTORELOAD TIMER 4 (AT4)
11.2.1 Introduction
The 12-bit Autoreload Timer can be used for gen-
eral-purpose timing functions. It is based on one or
two free-running 12-bit upcounters with an input
capture register and four PWM output channels.
There are 7 external pins:
– Four PWM outputs
– ATIC/LTIC pins for the Input Capture function
– BREAK pin for forcing a break condition on the
PWM outputs
11.2.2 Main Features
■ Single Timer or Dual Timer mode with two 12-bit
upcounters (CNTR1/CNTR2) and two 12-bit
autoreload registers (ATR1/ATR2)
■ Maskable overflow interrupts
■ PWM mode
– Generation of four independent PWMx signals
– Dead time generation for Half bridge driving
mode with programmable dead time
– Frequency 2 kHz - 4 MHz (@ 8 MHz fCPU)
– Programmable duty-cycles
– Polarity control
– Programmable output modes
■ Output Compare Mode
■ Input Capture Mode
– 12-bit input capture register (ATICR)
– Triggered by rising and falling edges
– Maskable IC interrupt
– Long range input capture
■ Internal/External Break control
■ Flexible Clock control
■ One Pulse mode on PWM2/3
■ Force Update
Figure 35. Single Timer Mode (ENCNTR2=0)
ATIC
Edge Detection Circuit
12-bit Input Capture
Output Compare
CMP
Interrupt
PWM0 Duty Cycle Generator
PWM1 Duty Cycle Generator
12-Bit Autoreload Register 1
PWM2 Duty Cycle Generator
12-Bit Upcounter 1
PWM3 Duty Cycle Generator
OVF1 interrupt
Dead Time
Generator
OE0
OE1
DTE bit OE2
OE3
PWM0
PWM1
PWM2
PWM3
Clock
Control
OFF
fCPU
32MHz
1 ms from
Lite Timer
BPEN bit
57/159
1