Specifications

Compare Units
6-39
Event Manager (EV)
compare unit, if compare is enabled. A peripheral interrupt request is gener-
ated by the flag if the interrupt is unmasked. The timing of output transitions,
setting of interrupt flags, and generation of interrupt requests are the same as
that of the GP timer compare operation. The outputs of the compare units in
compare mode are subject to modification by the output logic, dead band units,
and the space vector PWM logic.
Register Setup for Compare Unit Operation
The register setup sequence for compare unit operation requires:
For EVA For EVB
Setting up T1PR Setting up T3PR
Setting up ACTRA Setting up ACTRB
Initializing CMPRx Initializing CMPRx
Setting up COMCONA Setting up COMCONB
Setting up T1CON
Setting up T3CON
6.4.1 Compare Units Registers
The addresses of registers associated with compare units and associated
PWM circuits are shown in Table 6–5,
Addresses of EVA Compare Control
Registers
(page 6-11) and Table 6–6,
Addresses of EVB Compare Control
Registers
(page 6-12), and are further discussed in the following subsections.
Compare Control Registers (COMCONA and COMCONB)
The operation of the compare units is controlled by the compare control regis-
ters (COMCONA and COMCONB). The bit definition of COMCONA is summa-
rized in Figure 6–13 and that of COMCONB is summarized in Figure 6–14.
COMCONA and COMCONB are readable and writeable.
Figure 6–13. Compare Control Register A (COMCONA) — Address 7411h
15 14 13 12 11 10 9 8
CENABLE
CLD1 CLD0 SVENABLE ACTRLD1 ACTRLD0 FCOMPOE Reserved
RW-0 RW-0 RW-0 RW-0 RW-0 RW-0 RW-0 RW-0
7–0
Reserved
R-0
Note: R = Read access, W = Write access, -0 = value after reset