Functional Description (Continued)
DS005671-A5
Note 29: All numerical values are hexadecimal representations.
FIGURE 21. Software for Auto-Zeroed Differential A/D
5.3 Multiple A/D Converters in a Z-80 Interrupt Driven
Mode (Continued)
•
The stack pointer must be dimensioned in the main pro-
gram as the RST 7 instruction automatically pushes the
PC onto the stack and the subroutine uses an additional
6 stack addresses.
The following notes apply:
•
It is assumed that the CPU automatically performs a RST
7 instruction when a valid interrupt is acknowledged
(CPU is in interrupt mode 1). Hence, the subroutine start-
ing address of X0038.
•
The peripherals of concern are mapped into I/O space
with the following port assignments:
•
•
The address bus from the Z-80 and the data bus to the
Z-80 are assumed to be inverted by bus drivers.
A/D data and identifying words will be stored in sequen-
tial memory locations starting at the arbitrarily chosen ad-
dress X 3E00.
37
www.national.com