User`s manual

PK2200D-86 s Interrupts and Adresses
Most of the following interrupt vectors can be altered under program
control. The addresses are given in hex, relative to the start of the interrupt
vector page, as determined by the contents of the I-register. These are the
default interrupt vectors set by the boot code in the Dynamic C EPROM.
Interrupt Vectors
To vector an interrupt to a user function in Dynamic C, a directive such
as the following is used:
#INT
_
VEC 0x10 myfunction
The above example causes the interrupt at offset 10H (serial port 1 of the
Z180) to invoke the function myfunction(). The function must be
declared with the interrupt keyword:
interrupt myfunction() {
...
}
Digital input 11 connects to /INT0 and digital input 12 connects to /INT2,
allowing external events to generate interrupts.
Table D-1. Z180 Internal Device Interrupt Vectors
Address Name Description
0x00 INT1_VEC
Expansion bus attention /INT1
vector
0x02 INT2_VEC /INT2 vector
0x04 PRT0_VEC PRT timer channel 0
0x06 PRT1_VEC PRT timer channel 1
0x08 DMA0_VEC DMA channel 0
0x0A DMA1_VEC DMA channel 1
0x0C CSIO_VEC Clocked Serial I/O
0x0E SER0_VEC Asynchronous Serial Port Channel 0
0x10 SER1_VEC Asynchronous Serial Port Channel 1