ST7LITE3xF2
11.2 DUAL 12-BIT AUTORELOAD TIMER 3 (AT3)
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 6 external pins:
– Four PWM outputs
– ATIC/LTIC pin 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 2KHz-4MHz (@ 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
■ Break control
■ Flexible Clock control
Figure 34. Single Timer Mode (ENCNTR2=0)
ATIC
Edge Detection Circuit
12-bit Input Capture
Output Compare
CMP
Interrupt
12-Bit Autoreload Register 1
Clock
Control
12-Bit Upcounter 1
PWM0 Duty Cycle Generator
PWM1 Duty Cycle Generator
PWM2 Duty Cycle Generator
PWM3 Duty Cycle Generator
Dead Time
Generator
DTE bit
OE0
OE1
OE2
OE3
PWM0
PWM1
PWM2
PWM3
BPEN bit
OVF1 Interrupt
56/173
1