Instruction manual

Table Of Contents
Page
51
PC215E
5.3.21 Interrupt Source Selection Register
This is the register that can be used to select one or more interrupt source for the PC215E
board.
Register
Offset
Write and/or
Read
Register
Width
Register
Title
Mnemonic
1E
16
Write 8 bits
Interrupt Source Selection Register
INT_SCE
FUNCTION
Selects one or more of the six PC215E interrupt sources. The selected source(s) will then have
the ability to drive the board’s interrupt request level, as selected on jumper J1. See Section
2.6.3 for details on selecting the PC215E interrupt request level. If more than one source is
selected, the interrupt routine must interrogate the board to determine which source generated
the interrupt. The Interrupt Status register provides this information - see section 5.3.22.
Note: The selected interrupt source signals are latched into the Interrupt Status register - i.e.
once a selected interrupt source signal goes high, it remains high until the corresponding bit in
the Interrupt Source Selection register is cleared (set to 0). Therefore, after servicing the
asserted interrupt sources, the interrupt routine must write a zero to this register to clear all
latched interrupt source signals, then re-write the mask word to re-select the required interrupt
source(s).
The Six Interrupt Sources
The six sources are as follows:
1. PPI X Port C bit 0 digital input/output
2. PPI X Port C bit 3 digital input/output
3. PPI Y Port C bit 0 digital input/output
4. PPI Y Port C bit 3 digital input/output
5. Z1 Counter 1 output
6. Z2 Counter 1 output
For the PPI interrupt sources, Port C of the relevant PPI device can be either an input port or as
an output port, and this is programmed by sending a control word to the PPI’s Command
Register.