Intel 8XC196K Series User Manual page 112

Table of Contents

Advertisement

The EPA4–9 and COMP0–1 event interrupts, the EPA0–9 overrun interrupts, and the timer 1 and
timer 2 overflow/underflow interrupts are multiplexed into EPAx. The interrupt service routine
associated with EPAx must read the EPA interrupt pending registers (EPA_PEND and
EPA_PEND1) to determine the source of the interrupt request (see Figure 10-14 on page
10-28 and Figure 10-15 on page 10-29).
INT_PEND
When hardware detects an interrupt request, it sets the corresponding bit in the interrupt pending
(INT_PEND or INT_PEND1) registers. When the vector is taken, the hardware clears the pending bit.
Software can generate an interrupt by setting the corresponding interrupt pending bit.
7
CA, J x
7
8XC196K x
IBF
Bit
Number
7:0
When set, this bit indicates that the corresponding interrupt is pending. The interrupt bit is
cleared when processing transfers to the corresponding interrupt vector.
The standard interrupt vector locations are as follows:
Bit Mnemonic Interrupt
IBF (K x )
OBE (K x )
AD
EPA0
EPA1
EPA2
EPA3
EPA x
††
††
EPA 4–9 capture/compare channel events, EPA 0–1 compare channel events, EPA 0–
9 capture/compare overruns, and timer overflows can generate this multiplexed interrupt.
The EPA mask and pending registers decode the EPA x interrupt. Write the EPA mask
registers to enable the interrupt sources; read the EPA pending registers (EPA_PEND
and EPA_PEND1) to determine which source caused the interrupt.
Bits 6–7 are reserved on the 87C196CA, 8XC196J x devices. For compatibility with future devices,
write zeros to these bits.
Figure 5-7. Interrupt Pending (INT_PEND) Register
AD
EPA0
OBE
AD
EPA0
Function
Slave Port Input Buffer Full
Slave Port Output Buffer Empty
A/D Conversion Complete
EPA Capture/Compare Channel 0
EPA Capture/Compare Channel 1
EPA Capture/Compare Channel 2
EPA Capture/Compare Channel 3
Multiplexed EPA
STANDARD AND PTS INTERRUPTS
Address:
Reset State:
EPA1
EPA2
EPA3
EPA1
EPA2
EPA3
Standard Vector
200EH
200CH
200AH
2008H
2006H
2004H
2002H
2000H
09H
00H
0
EPA x
0
EPA x
5-17

Advertisement

Table of Contents
loading

Table of Contents