![background image](http://html2.mh-extra.com/html/rabbit/2000/2000_user-manual_3110256093.webp)
User’s Manual
87
7.9.2 Interrupt Vectors: INT0 - EIR,0x00/INT1 - EIR,0x08
When it is desired to expand the number of interrupts for additional peripheral devices, the
user should use the interrupt routine to dispatch interrupts to other virtual interrupt rou-
tines. Each additional interrupting device will have to signal the processor that it is
requesting an interrupt. A separate signal line is needed for each device so that the proces-
sor can determine which devices are requesting an interrupt.
The following code shows how the interrupt service routines can be written.
; External interrupt Routine #1
int1:
IPRES ; restore system priority
RET ; return and ignore interrupt
;
; External interrupt Routine #0 (programmed priority could be 3)
int2:
PUSH IP ; save interrupt priority
IPSET 1 ; set to priority really desired (1, 2, etc.)
; insert body of interrupt routine here
;
POP IP ; get back entry priority
IPRES ; restore interrupted routine’s priority
RET ; return from interrupt
Summary of Contents for 2000
Page 1: ...Rabbit 2000 Microprocessor User s Manual 019 0069 041018 M...
Page 12: ...6 Rabbit 2000 Microprocessor...
Page 46: ...40 Rabbit 2000 Microprocessor...
Page 54: ...48 Rabbit 2000 Microprocessor...
Page 76: ...70 Rabbit 2000 Microprocessor...
Page 96: ...90 Rabbit 2000 Microprocessor...
Page 142: ...136 Rabbit 2000 Microprocessor...
Page 154: ...148 Rabbit 2000 Microprocessor...
Page 170: ...164 Rabbit 2000 Microprocessor...
Page 174: ...168 Rabbit 2000 Microprocessor...
Page 180: ...174 Rabbit 2000 Microprocessor...
Page 202: ...196 Rabbit 2000 Microprocessor...
Page 206: ...200 Rabbit 2000 Microprocessor...
Page 226: ......
Page 230: ...224 Rabbit 2000 Microprocessor...