8XC196MD
8XC196MC AND 8XC196MD
DIFFERENCES
PI MASK and PI PEND Registers
Ð Ð
The PI MASK/PI PEND registers contain the bits
Ð
Ð
for the Compare Module 5 (COMP5) Waveform Gen-
erator (WG), Timer 1 Overflow (TFI), and Timer 2
Overflow (TF2) mask/status flag. The diagram be-
low shows the registers. Notice that the COMP5 bit
is a reserved bit on the 8XC196MC. The 8XC196MC
User’s Manual should be referenced for details
about the Waveform Generator, Compare Modules,
and Timers.
INT MASK1/INT PEND1 Registers
Ð Ð
There are some differences between the
8XC196MC and 8XC196MD INT MASK1/
INT PEND1 registers. The 8XC196MD interrupt
Ð
Ð
mask and pending registers are shown below. No-
tice that the CAPCOM5, COMP4, and CAPCOM4
bits are reserved bits on the 8XC196MC. The PI bit
of the INT PEND1 register will be set when a
Ð
Waveform Generator or Compare Module 5 event
occurs and the corresponding bit in the PI MASK
PI MASK (1FBEH) and
Ð
PI PEND (1FBCH, Read Only)
Ð
register is set. The PI interrupt vector can be taken
Ð
7
6
5
4
3
2
1
0
when the PI bit in the INT MASK1 register is set.
Ð
The 8XC196MC User’s Manual should be refer-
enced for details about the interrupts.
RSV
COMP5*
RSV
WG
RSV
TF2
RSV
TF1
e
RSV
RESERVED BIT. MUST WRITE AS 0,
READ AS 1.
THIS BIT RESERVED ON 8XC196MC.
e
*
INT MASK1 (0031H)
Ð
and INT PEND1 (0012H)
Figure 5. Peripheral Interrupt Mask
and Status Registers
Ð
7
6
5
4
3
2
1
0
RSV EXTINT PI CAPCOM5* COMP4* CAPCOM4* COMP3 CAPCOM3
The PI bit in the INT PEND1 register is set if a
Ð
Waveform Generator event or Compare Module 5
event occurs and the corresponding PI MASK bit is
Ð
set. For either of these events to cause an interrupt,
e
RSV
e
RESERVED BIT. MUST WRITE AS 0
THIS BIT RESERVED ON 8XC196MC.
*
Figure 3. Interrupt Mask and Status Registers
the PI bit in the INT MASK1 register and the corre-
Ð
sponding event bit in the PI MASK register must be
Ð
set.
PTSSRV and PTSSEL Register
Similarly, the TOVF bit in the INT PEND register is
Ð
set if Timer 1 or Timer 2 overflow and the corre-
sponding bit in the PI MASK register is set. For ei-
Ð
ther of these two events to cause an interrupt, the
TOVF bit in the INT MASK register and the corre-
Ð
sponding event bit in the PI MASK must be set.
Ð
Similarly, there are differences between 8XC196MC
and 8XC196MD PTS registers. The 8XC196MD PTS
registers are shown below. Notice the CAPCOM5,
COMP4, and CAPCOM4 bits are reserved bits on
the 8XC196MC. The PI bit in the PTSSRV will be set
when a Waveform Generator or Compare Module 5
end of PTS interrupt occurs and the corresponding
Upon a PI and/or a TOVF interrupt, it may be neces-
sary to check if the Compare Module 5, the Wave-
form Generator, Timer 1, or Timer 2 event caused
the interrupt. The PI PEND will give this informa-
Ð
tion. However, it should be noted that reading the
bit in the PI MASK register is set. The PI PTS vec-
Ð
tor can be used when the PI bit in the PTSSEL regis-
ter is set. The 8XC196MC User’s Manual should be
referenced for details about the PTS.
PI PEND register will clear the register. So the indi-
Ð
vidual bits in the PI PEND register must be read by
Ð
PTSSEL (0004H) and PTSSRV (0006H)
10
loading PI PEND into another ‘‘shadow’’ register,
Ð
15
14
13
12
11
9
8
then checking the ‘‘shadow’’ register to see what
event occurred.
RSV EXTINT
PI
CAPCOM5* COMP4* CAPCOM4* COMP3 CAPCOM3
7
6
5
4
3
2
1
0
COMP2 CAPCOM2 COMP1 CAPCOM1 COMP0 CAPCOM0 AD DONE TOVF
Ð
e
RSV
e
RESERVED BIT. MUST WRITE AS 0
THIS BIT RESERVED ON 8XC196MC.
*
Figure 4. PTS Select and Service Registers
4