
XC161 Derivatives
Peripheral Units (Vol. 2 of 2)
The General Purpose Timer Units
User’s Manual
14-55
V2.2, 2004-01
GPT_X1, V2.0
14.3
Interfaces of the GPT Module
Besides the described intra-module connections, the timer unit blocks GPT1 and GPT2
are connected to their environment in two basic ways (see
•
Internal connections interface the timers with on-chip resources such as clock
generation unit, interrupt controller, or other timers.
•
External connections interface the timers with external resources via port pins.
Figure 14-32 GPT Module Interfaces
Port pins to be used for timer input signals must be switched to input, the respective
direction control bits must be cleared (DPx.y = 0).
Port pins to be used for timer output signals must be switched to output, the respective
direction control bits must be set (DPx.y = 1). The alternate timer output signal must be
selected for these pins via the respective alternate select registers (see
Interrupt nodes to be used for timer interrupt requests must be enabled and programmed
to a specific interrupt level.
m c_ g p t0 1 0 4 _ m o d in te rfa ce x1 .vsd
S y stem
C o ntrol
U nit
P 5 .1 5
T 2E U D
G eneral
P urpose
Tim er
U nits
f
G P T
P 5 .1 4
T 4E U D
P 3 .7
T 2IN
P 3 .6
T 3IN
P 3 .5
T 4IN
P 3 .4
T 3E U D
P 3 .3
T 3O U T
P 5 .1 3
T 5IN
P 5 .1 2
T 6IN
P 3 .2
C A P IN
P 3 .1
T 6O U T
T 2 IR Q
G P T D IS
T 3 IR Q
T 4 IR Q
T 5 IR Q
T 6 IR Q
C R IR Q
T 6 O U F
In terru pt
C o ntrol
U nit
C A P C O M
U nits
P
o
rt
Lo
gic
f
o
r P3
a
nd P
5