RTD Embedded Technologies, Inc.
|
www.rtd.com
53
DMx820 User’s Manual
6.3.6
A
DVANCED
I
NTERRUPT N
Two Advanced Interrupt block are provided that can generate an interrupt on a match, event, or strobe. The match and event interrupts are
across all 48 digital I/O. The bits can be individually selected.
When an interrupt is generated, the data on all of the ports is latched into the Capture registers.
Bits are tested regardless of if a pin is an input or output.
A Match interrupt is generated when all un-masked bits in the Compare register match the input value of the port. This is when the following
expression is true for ALL ports (x) and bits (y):
((PORTx[y] xor ADVINTn_PORTx_CMP[y]) and not ADVINTn_PORTx_MASK[y]) = ‘0’
An Event interrupt is generated when any un-masked input port bit changes. This is when the following expression is true for ANY ports (x)
and bits (y). Note that the Capture register is updated at every interrupt or event:
((PORTx[y] xor ADVINTn_PORTx_CAPT[y]) and not ADVINTn_PORTx_MASK[y]) = ‘1’
ADVINTn_ID
ID register to identify an Advanced Interrupt Block.
15
0
ID_Register
R
Field
Description
ID_Register15:0]
Value of 0x0001 indicates Advanced Interrupt
ADVINTn_INT_MODE
Selects the mode for this interrupt. Event mode will generate an interrupt when any selected input pin changes. Match mode will generate an
interrupt when the port(s) match a pre-set value (bits can be individually selected or masked). Strobe mode will generate an interrupt on the
rising edge of the Strobe1 or Strobe2 signal.
15
2
1
0
Reserved
MODE[1:0]
RW,+0
RW,+0
Field
Description
MODE[1:0]
Interrupt Mode. Value definitions are:
3 Event Mode
2 Match Mode
1 Strobe Mode
0 Disabled
ADVINTn_CLK
This register selects the clock source for sampling the ports when in Match or Compare mode. In Strobe mode, this register selects the actual
strobe signal, and the 25 MHz clock always serves as the sampling clock.
15
4
3
0
Reserved
CLOCK_SEL[3:0]
R,+0
RW,+0
Field
Description
CLOCK_SEL[3:0]
Selects the master clock. Value definitions are:
15 Inverted Strobe2
14 Inverted Strobe1
13 Strobe2