
Interrupt Control Unit
7-28
7.4
SLAVE MODE OPERATION
When slave mode is used, the internal microcontroller interrupt controller is used as a slave
controller to an external master interrupt controller. The internal interrupts are monitored
by the internal interrupt controller, while the external controller functions as the system
master interrupt controller.
On reset, the microcontroller is in master mode. To activate slave mode operation, bit 14
of the relocation register must be set (see Figure 4-1 on page 4-3).
Because of pin limitations caused by the need to interface to an external 82C59A master,
the internal interrupt controller does not accept external inputs. However, there are enough
interrupt controller inputs (internally) to dedicate one to each timer. In slave mode, each
timer interrupt source has its own mask bit, IS bit, and control word.
The INT4 and serial port interrupts are not available in slave mode. In slave mode, each
peripheral must be assigned a unique priority to ensure proper interrupt controller operation.
The programmer must assign correct priorities and initialize interrupt control registers
before enabling interrupts.
7.4.1
Slave Mode Interrupt Nesting
Slave mode operation allows nesting of interrupt requests. When an interrupt is
acknowledged, the priority logic masks off all priority levels except those with equal or higher
priority.
7.4.2
Slave Mode Interrupt Controller Registers
The interrupt controller registers for slave mode are shown in Table 7-5. All registers can
be read and written, unless specified otherwise.
Table 7-5
Interrupt Controller Registers in Slave Mode
Offset
Register
Mnemonic
Register Name
Affected Pins Comments
3Ah
T2INTCON
Timer 2 Interrupt Control
Interrupt Type XXXXX101
38h
T1INTCON
Timer 1 Interrupt Control
TMRIN1
TMROUT1
Interrupt Type XXXXX100
36h
DMA1CON
DMA 1 Interrupt Control/INT6 DRQ1/INT6
Interrupt Type XXXXX011
34h
DMA0CON
DMA 0 Interrupt Control/INT5 DRQ0/INT5
Interrupt Type XXXXX010
32h
T0INTCON
Timer 0 Interrupt Control
TMRIN0
TMROUT0
Interrupt Type XXXXX000
30h
INTSTS
Interrupt Status
2Eh
REQST
Interrupt Request
2Ch
INSERV
In-Service
2Ah
PRIMSK
Priority Mask
28h
IMASK
Interrupt Mask
22h
EOI
Specific EOI
20h
INTVEC
Interrupt Vector
Summary of Contents for Am186 ES
Page 1: ...Am186 ES and Am188 ES User s Manual...
Page 4: ...iv...
Page 12: ...Table of Contents xii...
Page 22: ...Features and Performance 1 8...
Page 60: ...System Overview 3 28...
Page 84: ...Chip Select Unit 5 14...
Page 132: ...Timer Control Unit 8 8...
Page 166: ...Programmable I O Pins 11 6...
Page 184: ...Register Summary A 18...