8XC196MC, MD, MH USER’S MANUAL

PI_PEND (Continued)

Address:

1FBEH

 

Reset State:

AAH

When hardware detects a pending peripheral or timer interrupt, it sets the corresponding bit in the interrupt pending (INT_PEND or INT_PEND1) registers and the peripheral interrupt pending (PI_PEND) register. When the vector is taken, the hardware clears the INT_PEND/INT_PEND1 pending bit. Reading this register clears all the PI_PEND bits. Software can generate an interrupt by setting a PI_PEND bit.

 

7

 

 

 

8XC196MC

WG

 

7

 

 

 

 

 

 

 

 

8XC196MD

COMP5

WG

 

7

 

 

 

 

 

 

 

 

8XC196MH

SP1

SP0

 

 

 

 

 

 

 

 

0

OVRTM2

OVRTM1

 

 

 

 

 

 

 

0

 

 

 

 

OVRTM2

OVRTM1

 

 

 

 

 

 

 

0

 

 

 

 

OVRTM2

OVRTM1

 

 

 

 

Bit

Bit

Function

Number

Mnemonic

 

 

 

 

2

OVRTM2

Timer 2 Overflow/Underflow

 

 

When set, this bit indicates a pending timer 2 overflow/underflow interrupt.

 

 

The timer 2 and timer 1 overflow/underflow interrupts are associated with

 

 

the overflow/underflow timer interrupt (OVRTM). Setting INT_MASK.0

 

 

enables OVRTM. Setting PI_MASK.2 enables OVRTM2.

 

 

 

0

OVRTM1

Timer 1 Overflow/Underflow

 

 

When set, this bit indicates a pending timer 1 overflow/underflow interrupt.

 

 

The timer 1 and timer 2 overflow/underflow interrupts are associated with

 

 

the overflow/underflow timer interrupt (OVRTM). Setting INT_MASK.0

 

 

enables OVRTM. Setting PI_MASK.0 enables OVRTM1.

 

 

 

Figure 5-12. Peripheral Interrupt Pending (PI_PEND) Register (Continued)

5.6INITIALIZING THE PTS CONTROL BLOCKS

Each PTS interrupt requires a block of data, in register RAM, called the PTS control block (PTSCB). The PTSCB identifies which PTS microcode routine will be invoked and sets up the specific parameters for the routine. You must set up the PTSCB for each interrupt source before enabling the corresponding PTS interrupts.

5-24

Page 111
Image 111
Intel 8XC196MD, 8XC196MH, 8XC196MC manual Initializing the PTS Control Blocks, Pipend