Adc 0804
Adc 0804
Adc 0804
Features
Key Specifications
n Resolution
n Total error
n Conversion time
8 bits
Connection Diagram
ADC080X
Dual-In-Line and Small Outline (SO) Packages
DS005671-30
Ordering Information
TEMP RANGE
ERROR
14 Bit Adjusted
12 Bit Unadjusted
12 Bit Adjusted
1Bit Unadjusted
0C TO 70C
0C TO 70C
40C TO +85C
ADC0801LCN
ADC0802LCWM
ADC0802LCN
ADC0803LCN
ADC0804LCWM
PACKAGE OUTLINE
M20B Small
Outline
ADC0804LCN
ADC0805LCN/ADC0804LCJ
DS005671
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
8-Bit P Compatible A/D Converters
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Typical Applications
DS005671-1
8080 Interface
DS005671-31
Full-
VREF/2=2.500 VDC
VREF/2=No Connection
Scale
(No Adjustments)
(No Adjustments)
Adjusted
ADC0801
14 LSB
12 LSB
ADC0802
ADC0803
ADC0804
LSB
12
1 LSB
1 LSB
ADC0805
www.national.com
6.5V
220C
65C to +150C
875 mW
800V
0.3V to +18V
0.3V to (VCC+0.3V)
TMINTATMAX
40CTA+85C
40CTA+85C
0CTA+70C
0CTA+70C
4.5 VDC to 6.3 VDC
Temperature Range
ADC0804LCJ
ADC0801/02/03/05LCN
ADC0804LCN
ADC0802/04LCWM
Range of VCC
260C
300C
215C
Electrical Characteristics
The following specifications apply for VCC =5 VDC, TMINTATMAX and fCLK =640 kHz unless otherwise specified.
Parameter
Conditions
Min
Typ
Max
Units
14
LSB
1 2
1 2
LSB
1
1
LSB
VREF/2=2.500 VDC
With Full-Scale Adj.
LSB
VREF/2=2.500 VDC
VREF/2-No Connection
LSB
ADC0801/02/03/05
2.5
8.0
ADC0804 (Note 9)
0.75
1.1
DC Common-Mode Error
Gnd0.05
VCC+0.05
VDC
1/16
18
LSB
1/16
1 8
LSB
Range
VCC =5 VDC 10% Over
AC Electrical Characteristics
The following specifications apply for VCC =5 VDC and TMINTATMAX unless otherwise specified.
Symbol
Parameter
Conditions
Min
Typ
Max
Units
TC
Conversion Time
103
114
TC
Conversion Time
(Notes 5, 6)
66
73
1/fCLK
fCLK
Clock Frequency
100
1460
kHz
40
60
8770
9708
conv/s
Mode
tW(WR)L
CS =0 VDC (Note 7)
tACC
CL =100 pF
135
200
ns
125
200
ns
Hi-Z State)
Circuits)
300
450
ns
7.5
pF
640
100
ns
tWI, tRI
CIN
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
AC Electrical Characteristics
(Continued)
The following specifications apply for VCC =5 VDC and TMINTATMAX unless otherwise specified.
Symbol
COUT
Parameter
Conditions
Min
TRI-STATE Output
Typ
Max
Units
7.5
pF
2.0
15
VDC
0.8
VDC
ADC
VIN =5 VDC
0.005
(All Inputs)
IIN (0)
VIN =0 VDC
0.005
ADC
2.7
3.1
3.5
VDC
1.5
1.8
2.1
VDC
0.6
1.3
2.0
VDC
0.4
VDC
(All Inputs)
CLOCK IN AND CLOCK R
VT+
VT
VH
VOUT (0)
IO =360 A
Voltage
VOUT (1)
IO =360 A
Voltage
2.4
VDC
0.4
VDC
INTR Output
0.4
VDC
VOUT (1)
2.4
VOUT (1)
4.5
VDC
IOUT
VOUT =0 VDC
ADC
VOUT =5 VDC
VDC
ADC
ISOURCE
4.5
mADC
ISINK
9.0
16
mADC
POWER SUPPLY
ICC
ADC0801/02/03/04LCJ/05
1.1
1.8
mA
ADC0804LCN/LCWM
1.9
2.5
mA
Note 1: Absolute Maximum Ratings indicate limits beyond which damage to the device may occur. DC and AC electrical specifications do not apply when operating
the device beyond its specified operating conditions.
Note 2: All voltages are measured with respect to Gnd, unless otherwise specified. The separate A Gnd point should always be wired to the D Gnd.
Note 3: A zener diode exists, internally, from VCC to Gnd and has a typical breakdown voltage of 7 VDC.
Note 4: For VIN() VIN(+) the digital output code will be 0000 0000. Two on-chip diodes are tied to each analog input (see block diagram) which will forward conduct
for analog input voltages one diode drop below ground or one diode drop greater than the VCC supply. Be careful, during testing at low VCC levels (4.5V), as high
level analog inputs (5V) can cause this input diode to conductespecially at elevated temperatures, and cause errors for analog inputs near full-scale. The spec
allows 50 mV forward bias of either diode. This means that as long as the analog VIN does not exceed the supply voltage by more than 50 mV, the output code will
be correct. To achieve an absolute 0 VDC to 5 VDC input voltage range will therefore require a minimum supply voltage of 4.950 VDC over temperature variations,
initial tolerance and loading.
Note 5: Accuracy is guaranteed at fCLK = 640 kHz. At higher clock frequencies accuracy can degrade. For lower clock frequencies, the duty cycle limits can be
extended so long as the minimum clock high time interval or minimum clock low time interval is no less than 275 ns.
Note 6: With an asynchronous start pulse, up to 8 clock periods may be required before the internal clock phases are proper to start the conversion process. The
start request is internally latched, see Figure 4 and section 2.0.
www.national.com
(Continued)
Note 7: The CS input is assumed to bracket the WR strobe input and therefore timing is dependent on the WR pulse width. An arbitrarily wide pulse width will hold
the converter in a reset mode and the start of conversion is initiated by the low to high transition of the WR pulse (see timing diagrams).
Note 8: None of these A/Ds requires a zero adjust (see section 2.5.1). To obtain zero code at other analog input voltages see section 2.5 and Figure 7.
Note 9: The VREF/2 pin is the center point of a two-resistor divider connected from VCC to ground. In all versions of the ADC0801, ADC0802, ADC0803, and
ADC0805, and in the ADC0804LCJ, each resistor is typically 16 k. In all versions of the ADC0804 except the ADC0804LCJ, each resistor is typically 2.2 k.
Note 10: Human body model, 100 pF discharged through a 1.5 k resistor.
DS005671-38
DS005671-40
DS005671-39
Full-Scale Error vs
Conversion Time
DS005671-41
DS005671-42
Output Current vs
Temperature
DS005671-43
DS005671-46
DS005671-44
DS005671-45
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
AC Electrical Characteristics
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
t1H
DS005671-48
DS005671-47
tr =20 ns
t0H
t0H, CL =10 pF
DS005671-50
DS005671-49
Timing Diagrams
tr =20 ns
DS005671-51
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Timing Diagrams
DS005671-52
Note: Read strobe must occur 8 clock periods (8/fCLK) after assertion of interrupt to guarantee reset of INTR .
Typical Applications
6800 Interface
DS005671-53
DS005671-54
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Typical Applications
(Continued)
DS005671-56
DS005671-55
DS005671-58
DS005671-57
www.national.com
(Continued)
A P Interfaced Comparator
DS005671-60
DS005671-59
For:
VIN(+) > VIN()
Output=FFHEX
For:
VIN(+) < VIN()
Output=00HEX
VREF/2=256 mV
DS005671-61
VREF/2=128 mV
1 LSB=1 mV
VDACVIN(VDAC+256 mV)
0 VDAC < 2.5V
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Typical Applications
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Typical Applications
(Continued)
Digitizing a Current Flow
DS005671-62
External Clocking
DS005671-64
DS005671-63
www.national.com
10
(Continued)
DS005671-65
DS005671-66
DS005671-68
DS005671-67
*VIN()=0.15 VCC
15% of VCCVXDR85% of VCC
DS005671-69
11
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Typical Applications
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Typical Applications
(Continued)
DS005671-70
DS005671-71
DS005671-72
www.national.com
12
(Continued)
Read-Only Interface
DS005671-34
DS005671-33
DS005671-9
DS005671-35
13
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Typical Applications
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Typical Applications
(Continued)
Analog Self-Test for a System
DS005671-36
DS005671-37
*LM389 transistors
A, B, C, D = LM324A quad op amp
www.national.com
14
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Typical Applications
(Continued)
3-Decade Logarithmic A/D Converter
DS005671-73
DS005671-74
DS005671-75
fC =20 Hz
Uses Chebyshev implementation for steeper roll-off unity-gain, 2nd order,
low-pass filter
Adding a separate filter for each channel increases system response time
if an analog multiplexer is used
DS005671-77
DS005671-76
15
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Typical Applications
(Continued)
Sampling an AC Input Signal
DS005671-78
> 2f(60)] to eliminate input frequency folding (aliasing) and to allow for the skirt response of the filter.
Note 12: Consider the amplitude errors which are introduced within the passband of the filter.
DS005671-79
DS005671-80
D1, D, and D+1. For the perfect A/D, not only will
center-value (A1, A, A+1, . . . . ) analog inputs produce
the correct output digital codes, but also each riser (the
transitions between adjacent output codes) will be located
12 LSB away from each center-value. As shown, the risers
are ideal and have no width. Correct digital output codes will
be provided for a range of analog input voltages that extend
Functional Description
1.0 UNDERSTANDING A/D ERROR SPECS
A perfect A/D transfer characteristic (staircase waveform) is
shown in Figure 1. The horizontal scale is analog input
voltage and the particular points labeled are in steps of 1
LSB (19.53 mV with 2.5V tied to the VREF/2 pin). The digital
output codes that correspond to these inputs are shown as
www.national.com
16
(Continued)
Error Plot
DS005671-81
DS005671-82
Error Plot
DS005671-83
DS005671-84
17
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Functional Description
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Functional Description
(Continued)
Error Plot
Transfer Function
DS005671-85
DS005671-86
www.national.com
18
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Functional Description
(Continued)
DS005671-13
Note that this SET control of the INTR F/F remains low for 8
of the external clock periods (as the internal clocks run at 18
of the frequency of the external clock). If the data output is
continuously enabled (CS and RD both held low), the INTR
output will still signal the end of conversion (by a high-to-low
transition), because the SET input can control the Q output
of the INTR F/F even though the RESET input is constantly
at a 1 level in this operating mode. This INTR output will
therefore stay low for the duration of the SET signal, which is
8 periods of the external clock frequency (assuming the A/D
is not started during this interval).
When operating in the free-running or continuous conversion
mode (INTR pin tied to WR and CS wired low see also
section 2.8), the START F/F is SET by the high-to-low transition of the INTR signal. This resets the SHIFT REGISTER
19
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Functional Description
(Continued)
DS005671-14
rON of SW 1 and SW 2 . 5 k
r=rON CSTRAY . 5 k x 12 pF = 60 ns
where:
Ve is the error voltage due to sampling delay
VP is the peak value of the common-mode voltage
fcm is the common-mode frequency
As an example, to keep this error to 14 LSB (5 mV) when
operating with a 60 Hz common-mode frequency, fcm, and
using a 640 kHz A/D clock, fCLK, would allow a peak value of
the common-mode voltage, VP, which is given by:
Fault Mode
If the voltage source applied to the VIN(+) or VIN() pin
exceeds the allowed operating range of VCC+50 mV, large
input currents can flow through a parasitic diode to the VCC
pin. If these currents can exceed the 1 mA max allowed
spec, an external diode (1N914) should be added to bypass
this current to the VCC pin (with the current bypassed with
this diode, the voltage at the VIN(+) pin can exceed the VCC
voltage by the forward voltage of this diode).
or
which gives
VP.1.9V.
The allowed range of analog input voltages usually places
more severe restrictions on input common-mode noise levels.
An analog input voltage with a reduced span and a relatively
large zero offset can be handled easily by making use of the
differential input (see section 2.4 Reference Voltage).
2.3 Analog Inputs
2.3 1 Input Current
Normal Mode
Due to the internal switching action, displacement currents
will flow at the analog inputs. This is due to on-chip stray
capacitance to ground as shown in Figure 5.
www.national.com
20
(Continued)
DS005671-15
21
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Functional Description
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Functional Description
(Continued)
DS005671-87
DS005671-88
where:
VMAX =The high end of the analog input range
and
VMIN =the low end (the offset zero) of the analog range.
(Both are ground referenced.)
The VREF/2 (or VCC) voltage is then adjusted to provide a
code change from FEHEX to FFHEX. This completes the
adjustment procedure.
2.5.2 Full-Scale
The full-scale adjustment can be made by applying a differential input voltage that is 112 LSB less than the desired
analog full-scale voltage range and then adjusting the magnitude of the VREF/2 input (pin 9 or the VCC supply if pin 9 is
not used) for a digital output code that is just changing from
1111 1110 to 1111 1111.
www.national.com
22
(low power Schottky such as the DM74LS240 series is recommended) or special higher drive current products which
are designed as bus drivers. High current bipolar bus drivers
with PNP inputs are recommended.
(Continued)
DS005671-17
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Functional Description
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Functional Description
(Continued)
A basic A/D tester that uses a DAC and provides the error as
an analog output voltage is shown in Figure 8. The 2 op
amps can be eliminated if a lab DVM with a numerical
subtraction feature is available to read the difference voltage, AC, directly. The analog input voltage can be supplied by a low frequency ramp generator and an X-Y plotter
can be used to provide analog error (Y axis) versus analog
input (X axis).
For operation with a microprocessor or a computer-based
test system, it is more convenient to present the errors
digitally. This can be done with the circuit of Figure 11, where
the output code transitions can be detected as the 10-bit
DAC is incremented. This provides 14 LSB steps for the 8-bit
A/D under test. If the results of this test are automatically
plotted with the analog input on the X axis and the error (in
LSBs) as the Y axis, a useful transfer function of the A/D
under test results. For acceptance testing, the plot is not
necessary and the testing speed can be increased by establishing internal limits on the allowed error for each code.
DS005671-18
www.national.com
24
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Functional Description
(Continued)
DS005671-89
DS005671-90
CENTER VALUES
BINARY
WITH
VREF/2=2.560 VDC
MS GROUP
LS GROUP
15/16
15/256
7/8
7/128
13/16
13/256
3/4
3/64
11/16
11/256
5/8
5/128
9/16
1/2
9/256
1/32
7/16
7/256
3/8
3/128
5/16
2/256
1/4
1/64
3/16
3/256
1/8
1/128
1/16
1/256
VMS
GROUP
(Note 15)
VLS
GROUP
(Note 15)
4.800
0.300
4.480
0.280
4.160
0.260
3.840
0.240
3.520
0.220
3.200
0.200
2.880
0.180
2.560
0.160
2.240
0.140
1.920
0.120
1.600
0.100
1.280
0.080
0.960
0.060
0.640
0.040
0.320
0.020
25
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Functional Description
(Continued)
DS005671-20
Note 16: *Pin numbers for the DP8228 system controller, others are INS8080A.
Note 17: Pin 23 of the INS8228 must be tied to +12V through a 1 k resistor to generate the RST 7
instruction when an interrupt is acknowledged as required by the accompanying sample program.
www.national.com
26
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Functional Description
(Continued)
DS005671-99
Note 18: The stack pointer must be dimensioned because a RST 7 instruction pushes the PC onto the stack.
Note 19: All address used were arbitrarily chosen.
It is important to note that in systems where the A/D converter is 1-of-8 or less I/O mapped devices, no address
decoding circuitry is necessary. Each of the 8 address bits
(A0 to A7) can be directly used as CS inputs one for each
I/O device.
4.1.2 INS8048 Interface
The INS8048 interface technique with the ADC0801 series
(see Figure 13) is simpler than the 8080A CPU interface.
There are 24 I/O lines and three test input lines in the 8048.
With these extra I/O lines available, one of the I/O lines (bit
0 of port 1) is used as the chip select signal to the A/D, thus
eliminating the use of an external address decoder. Bus
control signals RD, WR and INT of the 8048 are tied directly
to the A/D. The 16 converted data words are stored at
on-chip RAM locations from 20 to 2F (Hex). The RD and WR
signals are generated by reading from and writing into a
dummy address, respectively. A sample interface program is
shown below.
27
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Functional Description
(Continued)
DS005671-21
DS005671-A0
www.national.com
DS005671-23
28
(Continued)
A15) during I/O input instructions. For example, MUX channel selection for the A/D can be accomplished with this
operating mode.
DS005671-24
29
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Functional Description
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Functional Description
(Continued)
DS005671-A1
Note 22: In order for the microprocessor to service subroutines and interrupts, the stack pointer must be dimensioned in the users program.
DS005671-25
www.national.com
30
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Functional Description
(Continued)
DS005671-A2
31
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Functional Description
(Continued)
DS005671-26
www.national.com
32
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Functional Description
(Continued)
DS005671-A3
DS005671-A4
Note 25: In order for the microprocessor to service subroutines and interrupts, the stack pointer must be dimensioned in the users program.
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Functional Description
(Continued)
DS005671-91
www.national.com
34
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Functional Description
(Continued)
DS005671-92
need for the CPU to determine which device requires servicing. Figure 22 and the accompanying software is a method
of determining which of 7 ADC0801 converters has completed a conversion (INTR asserted) and is requesting an
interrupt. This circuit allows starting the A/D converters in
any sequence, but will input and store valid data from the
converters with a priority sequence of A/D 1 being read first,
A/D 2 second, etc., through A/D 7 which would have the
lowest priority for data being read. Only the converters
whose INT is asserted will be read.
The key to decoding circuitry is the DM74LS373, 8-bit D type
flip-flop. When the Z-80 acknowledges the interrupt, the
program is vectored to a data input Z-80 subroutine. This
subroutine will read a peripheral status word from the
DM74LS373 which contains the logic state of the INTR
outputs of all the converters. Each converter which initiates
an interrupt will place a logic 0 in a unique bit position in the
status word and the subroutine will determine the identity of
the converter and execute a data read. An identifier word
(which indicates which A/D the data came from) is stored in
the next sequential memory location above the location of
the data so the program can keep track of the identity of the
data entered.
35
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Functional Description
(Continued)
DS005671-28
www.national.com
36
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Functional Description
(Continued)
DS005671-A5
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 sequential memory locations starting at the arbitrarily chosen
address X 3E00.
37
The stack pointer must be dimensioned in the main program as the RST 7 instruction automatically pushes the
PC onto the stack and the subroutine uses an additional
6 stack addresses.
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Functional Description
(Continued)
PERIPHERAL
04
A/D 4
PERIPHERAL
05
A/D 5
00
06
A/D 6
01
A/D 1
02
A/D 2
03
A/D 3
07
A/D 7
This port address also serves as the A/D identifying word in
the program.
DS005671-29
www.national.com
38
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Functional Description
(Continued)
DS005671-A6
39
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Physical Dimensions
SO Package (M)
Order Number ADC0802LCWM or ADC0804LCWM
NS Package Number M20B
www.national.com
40
www.national.com
National Semiconductor
Europe
Fax: +49 (0) 180-530 85 86
Email: [email protected]
Deutsch Tel: +49 (0) 69 9508 6208
English Tel: +44 (0) 870 24 0 2171
Franais Tel: +33 (0) 1 41 91 8790
National Semiconductor
Asia Pacific Customer
Response Group
Tel: 65-2544466
Fax: 65-2504466
Email: [email protected]
National Semiconductor
Japan Ltd.
Tel: 81-3-5639-7560
Fax: 81-3-5639-7507
National does not assume any responsibility for use of any circuitry described, no circuit patent licenses are implied and National reserves the right at any time without notice to change said circuitry and specifications.
Notes