11
Chapter 2
Interrupt Function of the DI Signals
DI0 and DI1 can be used to generate hardware interrupts. A user can
setup the configuration of interrupts by programming the interrupt control
register.
The channels are connected to the interrupt circuitry. Users can disable/
enable interrupt function, select trigger type or latch the port data by set-
ting the Interrupt Control Register of the UNO-2050E. When the interrupt
request signals occur, then the software will service these interrupt
requests by ISR (Interrupt Service Routine). The multiple interrupt
sources provide the card with more capability and flexibility.
IRQ Level
The IRQ level is set automatically by the system BIOS. There is no need
for users to set the IRQ level. Only one IRQ level is used although it has
several interrupt sources.
Interrupt Control Register
The Interrupt Control Register controls the function and status of each
interrupt signal source. Table 2-3 shows the bit map of the Interrupt Con-
trol Register. The register is readable/writable register. While being writ-
ten, it is used as a control register; and while being read, it is used as a
status register
DI0EN & DI1EN: DI0 & DI1 Interrupt disable/enable control bit
DI0TE & DI1TE: DI0 & DI1 Interrupt triggering edge control bit
DI0F & DO1F: DI0 & DI1 interrupt flag bit
Table 2.3: Interrupt Control Register Bit Map
Base Address
7
6
5
4
3
2
1
0
Base+02H R/W
Interrupt Enable Control/Status Register
DI1EN
DI0EN
Base+03H R/W
Interrupt Triggering Edge Control/Status Register
DI1TE
DI0TE
Base+07H R/W
Interrupt Flag/Clear Register
DI1F
DI0F