User`s manual

BL1600 Memory, I/O Map, and Interrupt Vectors s 121
Table G-6. Interrupt Vectors for Z180
Internal Devices
Address Name Description
0x00 INT1_VEC Expansion bus attention INT1 vector.
0x02 INT2_VEC INT2 vector, can be jumpered to the output
of the real-time clock for a periodic interrupt
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
Interrupt Vectors
Table G-6 presents a suggested interrupt vector map. Most of these
interrupt vectors can be altered under program control. The addresses are
given here 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.
To vector an interrupt to a user function in Dynamic C, use a directive
such as the following.
#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, as shown below.
interrupt myfunction() {
...
}
Refer to the Dynamic C manuals for further details on interrupt
functions.
$