Rabbit OP7100 User Manual Page 106

  • Download
  • Add to my manuals
  • Print
  • Page
    / 126
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 105
OP7100106
Memory, I/O Map, and Interrupt Vectors
Table C-5. Interrupt Vectors for Z180 Internal Devices
Address Name Description
INT0 Available for use.
0x00 INT1_VEC Used for power-failure detection
0x02 INT2_VEC Reserved for Development Board (CM7100),
not available for use on CM7200
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 CSI/O_VEC Available for programming (CM7200), not
available for use on CM7100
0x0E SER0_VEC Asynchronous Serial Port Channel 0
0x10 SER1_VEC Asynchronous Serial Port Channel 1
Interrupt Vectors
Table C-5 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 0x10 (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.
Page view 105
1 2 ... 101 102 103 104 105 106 107 108 109 110 111 ... 125 126

Comments to this Manuals

No comments