8XC196MD
8XC196MC AND 8XC196MD
DIFFERENCES
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. Notice 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
register is set. The PI interrupt vector can be taken
when the PI bit in the INTÐMASK1 register is set.
The 8XC196MC User’s Manual should be referenced for details about the interrupts.
INTÐMASK1 (0031H)
and INTÐPEND1 (0012H)
765 4 3 2 1 0
RSV EXTINT PI CAPCOM5* COMP4* CAPCOM4* COMP3 CAPCOM3
RSVeRESERVED BIT. MUST WRITE AS 0
*
e
THIS BIT RESERVED ON 8XC196MC.
Figure 3. Interrupt Mask and Status Registers
PTSSRV and PTSSEL Register
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
bit in the PIÐMASK register is set. The PI PTS vector can be used when the PI bit in the PTSSEL register is set. The 8XC196MC User’s Manual should be
referenced for details about the PTS.
PTSSEL (0004H) and PTSSRV (0006H)
15 14 13 12 11 10 9 8
RSV EXTINT PI CAPCOM5* COMP4* CAPCOM4* COMP3 CAPCOM3
765432 10
COMP2 CAPCOM2 COMP1 CAPCOM1 COMP0 CAPCOM0 ADÐDONE TOVF
RSVeRESERVED BIT. MUST WRITE AS 0
*
e
THIS BIT RESERVED ON 8XC196MC.
Figure 4. PTS Select and Service Registers
PIÐMASK and PIÐPEND Registers
The PIÐMASK/PIÐPEND registers contain the bits
for the Compare Module 5 (COMP5) Waveform Generator (WG), Timer 1 Overflow (TFI), and Timer 2
Overflow (TF2) mask/status flag. The diagram below 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.
PIÐMASK (1FBEH) and
PIÐPEND (1FBCH, Read Only)
7 6 543210
RSV COMP5* RSV WG RSV TF2 RSV TF1
RSVeRESERVED BIT. MUST WRITE AS 0,
READ AS 1.
*eTHIS BIT RESERVED ON 8XC196MC.
Figure 5. Peripheral Interrupt Mask
and Status Registers
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,
the PI bit in the INTÐMASK1 register and the corresponding event bit in the PIÐMASK register must be
set.
Similarly, the TOVF bit in the INTÐPEND register is
set if Timer 1 or Timer 2 overflow and the corresponding bit in the PIÐMASK register is set. For either of these two events to cause an interrupt, the
TOVF bit in the INTÐMASK register and the corresponding event bit in the PIÐMASK must be set.
Upon a PI and/or a TOVF interrupt, it may be necessary to check if the Compare Module 5, the Waveform Generator, Timer 1, or Timer 2 event caused
the interrupt. The PIÐPEND will give this information. However, it should be noted that reading the
PIÐPEND register will clear the register. So the individual bits in the PIÐPEND register must be read by
loading PIÐPEND into another ‘‘shadow’’ register,
then checking the ‘‘shadow’’ register to see what
event occurred.
4