ST10R272L - GENERAL PURPOSE TIMER UNITS
190/320
11
GENERAL PURPOSE TIMER UNITS
The GPT unit is a multi-functional timer/counter structure, used for many different time
related tasks such as event timing and counting, pulse width and duty cycle measurement,
pulse generation and pulse multiplication.
The GPT unit incorporates five 16-bit timers organized into two separate modules, GPT1
and GPT2. Each timer in each module can operate independently in a number of different
modes, or can be concatenated with another timer of the same module.
11.1
Timer block GPT1
For programming, the GPT1 block is composed of a set of SFRs as summarized below. The
portions of port and direction registers which are used by the GPT1for alternate functions,
are shaded.
Figure 68 SFRs and port pins associated with timer block GPT1
ODP3
Port 3 Open Drain Control Register
DP3
Port 3 Direction Control Register
P3
Port 3 Data Register
T2CON GPT1 Timer 2 Control Register
T3CON GPT1 Timer 3 Control Register
T4CON GPT1 Timer 4 Control Register
T4IC
T2
GPT1 Timer 2 Register
T3
GPT1 Timer 3 Register
T4
GPT1 Timer 4 Register
T2IC
GPT1 Timer 2 Interrupt Control Register
T3IC
GPT1 Timer 3 Interrupt Control Register
T4IC
GPT1 Timer 4 Interrupt Control Register
T2IN/P3.7
T2EUD/P5.15
T3IN/P3.6
T3EUD/P3.4
T4IN/P3.5
T4EUD/P5.14
T3OUT/P3.3
T2CON
Ports & Direction Control
Alternate Functions
Data Registers
Control Registers
Interrupt Control
T2
T2IC
DP3
P3
T3
T4
T3IC
T3CON
T4CON
P5
ODP3