Adc0801 PDF
Adc0801 PDF
Adc0801 PDF
Features
Y
Y
Y
Y
Y
Y
Y
Key Specifications
Y
Y
Resolution
Total error
Conversion time
8 bits
g (/4 LSB, g (/2 LSB and g 1 LSB
100 ms
Typical Applications
TL/H/5671 1
8080 Interface
g (/2 LSB
g 1 LSB
g 1 LSB
TL/H/567131
TRI-STATE is a registered trademark of National Semiconductor Corp.
Z-80 is a registered trademark of Zilog Corp.
C1995 National Semiconductor Corporation
TL/H/5671
RRD-B30M115/Printed in U. S. A.
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
8-Bit mP Compatible A/D Converters
December 1994
(Notes 1 & 2)
Storage Temperature Range
875 mW
b 65 C to a 150 C
Package Dissipation at TA e 25 C
800V
215 C
220 C
Electrical Characteristics
The following specifications apply for VCC e 5 VDC, TMINsTAsTMAX and fCLK e 640 kHz unless otherwise specified.
Max
Units
Parameter
Conditions
Min
Typ
g (/4
LSB
g (/2
LSB
g (/2
LSB
g1
LSB
VREF/2-No Connection
g1
LSB
ADC0801/02/03/05
ADC0804 (Note 9)
2.5
0.75
8.0
1.1
kX
kX
(Note 4) V( a ) or V(b)
VCC a 0.05
VDC
DC Common-Mode Error
Gnd 0.05
g (/16
g (/8
LSB
g (/16
g (/8
LSB
AC Electrical Characteristics
The following specifications apply for VCC e 5 VDC and TA e 25 C unless otherwise specified.
Symbol
Parameter
Conditions
Min
Typ
Max
Units
TC
Conversion Time
103
114
ms
TC
Conversion Time
(Note 5, 6)
66
73
1/fCLK
fCLK
Clock Frequency
Clock Duty Cycle
100
40
1460
60
kHz
%
CR
8770
9708
conv/s
tW(WR)L
CS e 0 VDC (Note 7)
100
tACC
CL e 100 pF
135
200
ns
t1H, t0H
CL e 10 pF, RL e 10k
(See TRI-STATE Test
Circuits)
125
200
ns
tWI, tRI
300
450
ns
CIN
7.5
pF
COUT
TRI-STATE Output
Capacitance (Data Buffers)
7.5
pF
640
ns
CONTROL INPUTS [Note: CLK IN (Pin 4) is the input of a Schmitt trigger circuit and is therefore specified separately]
VIN (1)
2.0
15
VDC
Parameter
Conditions
Min
Typ
Max
Units
CONTROL INPUTS [Note: CLK IN (Pin 4) is the input of a Schmitt trigger circuit and is therefore specified separately]
VIN (0)
IIN (1)
VIN e 5 VDC
IIN (0)
VIN e 0 VDC
0.005
b1
b 0.005
0.8
VDC
mADC
mADC
2.7
3.1
3.5
VDC
VTb
1.5
1.8
2.1
VDC
VH
0.6
1.3
2.0
VDC
VOUT (0)
IO e 360 mA
VCC e 4.75 VDC
0.4
VDC
VOUT (1)
IO eb360 mA
VCC e 4.75 VDC
2.4
VDC
VOUT (1)
2.4
VOUT (1)
4.5
VDC
IOUT
VOUT e 0 VDC
VOUT e 5 VDC
b3
mADC
mADC
ISOURCE
4.5
mADC
ISINK
9.0
16
mADC
0.4
0.4
VDC
VDC
VDC
POWER SUPPLY
ICC
ADC0801/02/03/04LCJ/05
ADC0804LCN/LCV/LCWM
1.1
1.9
1.8
2.5
mA
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( b ) t VIN( a ) 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 e 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 2 and section 2.0.
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 5 .
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 kX. In all versions of the ADC0804 except the ADC0804LCJ, each resistor is typically 2.2 kX.
Note 10: Human body model, 100 pF discharged through a 1.5 kX resistor.
Full-Scale Error vs
Conversion Time
Output Current vs
Temperature
TL/H/5671 2
t1H, CL e 10 pF
t0H
tr e 20 ns
t0H, CL e 10 pF
tr e 20 ns
TL/H/5671 3
Timing Diagrams (All timing is measured from the 50% voltage points)
Note: Read strobe must occur 8 clock periods (8/fCLK) after assertion of interrupt to guarantee reset of INTR.
TL/H/5671 4
TL/H/5671 5
TL/H/5671 6
TL/H/5671 8
Read-Only Interface
TL/H/5671 34
TL/H/567133
TL/H/567135
TL/H/567136
*LM389 transistors
A, B, C, D e LM324A quad op amp
10
TL/H/5671 37
fC e 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
TL/H/5671 10
11
Note 1: Oversample whenever possible [keep fs l 2f( b 60)] to eliminate input frequency folding
(aliasing) and to allow for the skirt response of the filter.
Note 2: Consider the amplitude errors which are introduced within the passband of the filter.
TL/H/5671 11
12
Functional Description
other words, if we apply an analog input equal to the centervalue g (/4 LSB, we guarantee that the A/D will produce the
correct digital code. The maximum range of the position of
the code transition is indicated by the horizontal arrow and it
is guaranteed to be no more than (/2 LSB.
The error curve of Figure 1c shows a worst case error plot
for the ADC0802. Here we guarantee that if we apply an
analog input equal to the LSB analog voltage center-value
the A/D will produce the correct digital code.
Next to each transfer function is shown the corresponding
error plot. Many people may be more familiar with error plots
than transfer functions. The analog input voltage to the A/D
is provided by either a linear ramp or by the discrete output
steps of a high resolution DAC. Notice that the error is continuously displayed and includes the quantization uncertainty of the A/D. For example the error at point 1 of Figure 1a
is a (/2 LSB because the digital code appeared (/2 LSB in
advance of the center-value of the tread. The error plots
always have a constant negative slope and the abrupt upside steps are always 1 LSB in magnitude.
Error Plot
Transfer Function
Error Plot
Error Plot
TL/H/5671 12
A functional diagram of the A/D converter is shown in Figure 2 . All of the package pinouts are shown and the major
logic control paths are drawn in heavier weight lines.
The converter is started by having CS and WR simultaneously low. This sets the start flip-flop (F/F) and the resulting 1 level resets the 8-bit shift register, resets the Interrupt (INTR) F/F and inputs a 1 to the D flop, F/F1, which
is at the input end of the 8-bit shift register. Internal clock
signals then transfer this 1 to the Q output of F/F1. The
AND gate, G1, combines this 1 output with a clock signal
to provide a reset signal to the start F/F. If the set signal is
no longer present (either WR or CS is a 1) the start F/F is
reset and the 8-bit shift register then can have the 1
clocked in, which starts the conversion process. If the set
signal were to still be present, this reset pulse would have
no effect (both outputs of the start F/F would momentarily
be at a 1 level) and the 8-bit shift register would continue
to be held in the reset mode. This logic therefore allows for
wide CS and WR signals and the converter will start after at
least one of these signals returns high and the internal
clocks again provide a reset signal for the start F/F.
TL/H/5671 13
14
#f J,
4.5
CLK
where:
DVe 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 (/4 LSB ( E 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:
[DVe(MAX) (fCLK)]
VP e
(2qfcm) (4.5)
or
(5 c 10b3) (640 c 103)
(6.28) (60) (4.5)
which gives
VP j 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).
VP e
TL/H/5671 14
rON of SW 1 and SW 2 j 5 kX
r e rON CSTRAY j 5 kX c 12 pF e 60 ns
15
Fault Mode
If the voltage source applied to the VIN( a ) or VIN(b) pin
exceeds the allowed operating range of VCC a 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( a ) pin can exceed the
VCC voltage by the forward voltage of this diode).
2.3.2 Input Bypass Capacitors
Bypass capacitors at the inputs will average these charges
and cause a DC current to flow through the output resistances of the analog signal sources. This charge pumping
action is worse for continuous conversions with the VIN( a )
input voltage at full-scale. For continuous conversions with
a 640 kHz clock frequency with the VIN( a ) input at 5V, this
DC current is at a maximum of approximately 5 mA. Therefore, bypass capacitors should not be used at the analog
inputs or the VREF/2 pin for high resistance sources (l 1
kX). If input bypass capacitors are necessary for noise filtering and high source resistance is desirable to minimize capacitor size, the detrimental effects of the voltage drop
across this input resistance, which is due to the average
value of the input current, can be eliminated with a full-scale
adjustment while the given source resistor and input bypass
capacitor are both in place. This is possible because the
average value of the input current is a precise linear function of the differential input voltage.
2.3.3 Input Source Resistance
Large values of source resistance where an input bypass
capacitor is not used, will not cause errors as the input currents settle out prior to the comparison time. If a low pass
filter is required in the system, use a low valued series resistor (s 1 kX) for a passive RC section or add an op amp RC
active low pass filter. For low source resistance applications, (s 1 kX), a 0.1 mF bypass capacitor at the inputs will
prevent noise pickup due to series lead inductance of a long
wire. A 100X series resistor can be used to isolate this capacitorboth the R and C are placed outside the feedback
loopfrom the output of an op amp, if used.
TL/H/5671 15
2.3.4 Noise
The leads to the analog inputs (pin 6 and 7) should be kept
as short as possible to minimize input noise coupling. Both
noise and undesired digital clock coupling to these inputs
can cause system errors. The source resistance for these
inputs should, in general, be kept below 5 kX. Larger values
of source resistance can cause undesired system noise
pickup. Input bypass capacitors, placed from the analog inputs to ground, will eliminate system noise pickup but can
create analog scale errors as these capacitors will average
the transient input switching currents of the A/D (see section 2.3.1.). This scale error depends on both a large source
16
TL/H/5671 16
FIGURE 5. Adapting the A/D Analog Input Voltages to Match an Arbitrary Input Signal Range
2.5 Errors and Reference Voltage Adjustments
17
where:
VMAX e The high end of the analog input range
and
VMIN e 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.6 Clocking Option
The clock for the A/D can be derived from the CPU clock or
an external RC can be added to provide self-clocking. The
CLK IN (pin 4) makes use of a Schmitt trigger as shown in
Figure 6 .
1
1.1 RC
R j 10 kX
fCLK j
TL/H/567117
18
TL/H/5671 18
19
TL/H/5671 19
HEX
OUTPUT VOLTAGE
CENTER VALUES
WITH
VREF/2 e 2.560 VDC
BINARY
MS GROUP
F
E
D
C
1
1
1
1
1
1
1
1
1
1
0
0
1
0
1
0
B
A
9
8
1
1
1
1
0
0
0
0
1
1
0
0
1
0
1
0
7
6
5
4
0
0
0
0
1
1
1
1
1
1
0
0
1
0
1
0
3
2
1
0
0
0
0
0
0
0
0
0
1
1
0
0
1
0
1
0
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
20
VMS GROUP*
VLS GROUP*
4.800
4.480
4.160
3.840
0.300
0.280
0.260
0.240
3.520
3.200
2/880
2/560
0.220
0.200
0.180
0.160
2.240
1.920
1.600
1/280
0.140
0.120
0.100
0.080
0.960
0.640
0.320
0
0.060
0.040
0.020
0
TL/H/5671 20
Note 1: *Pin numbers for the DP8228 system controller, others are INS8080A.
Note 2: Pin 23 of the INS8228 must be tied to a 12V through a 1 kX resistor to generate the RST 7
instruction when an interrupt is acknowledged as required by the accompanying sample program.
0038
#
#
#
#
#
#
0100
21 00 02
START:
LXI H 0200H
0103
0106
0107
0109
010C
010E
010F
0110
0113
31 00 04
7D
FE OF
CA 13 01
D3 E0
FB
00
C3 OF 01
RETURN:
LXI SP 0400H
MOV A, L
CPI OF H
JZ CONT
OUT E0 H
EI
NOP
JMP LOOP
#
#
#
#
#
0300
0302
0303
0304
#
#
#
#
#
#
DB E0
77
23
C3 03 01
LOOP:
CONT:
#
(User program to
process data)
#
#
LD DATA:
#
#
#
#
#
#
IN E0 H
MOV M, A
INX H
JMP RETURN
Note 1: The stack pointer must be dimensioned because a RST 7 instruction pushes the PC onto the stack.
Note 2: All address used were arbitrarily chosen.
21
TL/H/5671 21
START:
AGAIN:
LOOP:
INDATA:
JMP
ORG
JMP
ORG
ANL
MOVX
10H
3H
50H
10H
P1, #0FEH
A, @R1
ORL
MOV
MOV
MOV
MOV
ANL
MOVX
EN
JNZ
DJNZ
NOP
NOP
ORG
MOVX
MOV
INC
ORL
CLR
RETR
P1, 1
R0, #20H
R1, #0FFH
R2, #10H
A, #0FFH
P1, #0FEH
@R1, A
I
LOOP
R2, AGAIN
50H
A, @R1
@R0, A
R0
P1, #1
A
22
TL/H/5671 23
TL/H/5671 24
Note 1: In order for the microprocessor to service subroutines and interrupts, the stack pointer must be dimensioned in the users program.
TL/H/5671 25
24
CE 00 38
FF FF F8
B6 80 06
4F
B7 80 07
B7 80 06
0E
C6 34
86 3D
F7 80 07
B7 80 07
3E
DE 40
8C 02 0F
27 0F
08
DF 40
20 ED
DE 40
B6 80 06
A7 00
3B
02 00
0042
0045
0047
CE 02 00
DF 40
39
DATAIN
CONVRT
INTRPT
TEMP1
ENDP
PIAORB
PIACRB
LDX
STX
LDAA
CLRA
STAA
STAA
CLI
LDAB
LDAA
STAB
STAA
WAI
LDX
CPX
BEQ
INX
STX
BRA
LDX
LDAA
STAA
RTI
FDB
#$0038
$FFF8
PIAORB
PIACRB
PIAORB
#$34
#$3D
PIACRB
PIACRB
; Starts ADC0801
; Wait for interrupt
TEMP1
#$020F
ENDP
TEMP1
CONVRT
TEMP1
PIAORB
X
$0200
#$0200
TEMP1
LDX
STX
RTS
EQU
EQU
$8006
$8007
; Read data in
; Store it at X
; Starting address for
; data storage
; Reinitialize TEMP1
; Return from subroutine
; To users program
25
TL/H/5671 26
VO e [VIN( a )bVIN(b)] 1 a
Y X Y
SIGNAL
GAIN
2R2
a
R1
#1
2R2
R1
Y X Y
DC ERROR TERM
GAIN
where IX is the current through resistor RX. All of the offset
error terms can be cancelled by making g IXRX e VOS1 a
VOS3 b VOS2. This is the principle of this auto-zeroing
scheme.
The INS8080A uses the 3 I/O ports of an INS8255 Programable Peripheral Interface (PPI) to control the auto zeroing and input data from the ADC0801 as shown in Figure 18 .
The PPI is programmed for basic I/O operation (mode 0)
with Port A being an input port and Ports B and C being
output ports. Two bits of Port C are used to alternately open
or close the 2 switches at the input of the preamp. Switch
27
Note 1: R2 e 49.5 R1
Note 2: Switches are LMC13334 CMOS analog switches.
Note 3: The 9 resistors used in the auto-zero section can be g 5% tolerance.
TL/H/5671 27
28
29
3D00
3D02
3D04
3D06
3D07
3D09
3D0B
3D0D
3D0E
3D10
3D13
3D15
3D16
3D17
3D1A
3D1B
3D1D
3D20
3D21
3D23
3D24
3D26
3D29
3D2A
3D2D
3D2E
3D2F
3D30
3D33
3D34
3D37
3D38
3D39
3D3B
3D3D
3C3D
3C3F
3C41
3C42
3C43
3C45
3C48
3E90
D3E7
2601
7C
D3E6
0680
3E7F
4F
D3E5
31AA3D
D3E4
FB
00
C3163D
7A
C600
CA2D3D
78
F600
1F
FE00
CA373D
47
C3333D
79
B0
4F
C3203D
A9
C30D3D
47
7C
EE03
D3E6
MVI 90
Out Control Port
MVI H 01
MOV A,H
OUT C
MVI B 80
MVI A 7F
MOV C,A
OUT B
LXI SP 3DAA
OUT A
IE
NOP
JMP Loop
MOV A,D
ADI 00
JZ Set C
MOV A,B
ORI 00
RAR
CPI 00
JZ Done
MOV B,A
JMP New C
MOV A,C
ORA B
MOV C,A
JMP Shift B
XRA C
JMP Return
MOV B,A
MOV A,H
XRI 03
OUT C
#
#
#
DBE4
EEFF
57
78
E6FF
C21A3D
C33D3D
; Program PPI
Auto-Zero Subroutine
; Close SW1 open SW2
; Initialize SAR bit pointer
; Initialize SAR code
Return
Start
Loop
Auto-Zero
; Test A/D output data for zero
Shift B
; Clear carry
; Shift 1 in B right one place
; Is B zero? If yes last
; approximation has been made
Set C
; Set bit in C that is in same
; position as 1 in B
New C
Done
Normal
30
TL/H/5671 29
Ordering Information
0 C TO 70 C
TEMP RANGE
ERROR
g (/4 Bit
Adjusted
g (/2 Bit
Unadjusted
g (/2 Bit
Adjusted
g 1Bit
Unadjusted
0 C TO 70 C
0 C TO 70 C
b 40 C TO a 85 C
ADC0801LCN
PACKAGE OUTLINE
ADC0802LCWM
ADC0802LCV
ADC0802LCN
ADC0803LCWM
ADC0803LCV
ADC0803LCN
ADC0804LCWM
ADC0804LCV
M20BSmall Outline
V20AChip Carrier
TEMP RANGE
g (/4 Bit Adjusted
ERROR
PACKAGE OUTLINE
ADC0804LCN
ADC0805LCN
N20AMolded DIP
b 40 C TO a 85 C
b 55 C TO a 125 C
ADC0801LCJ
ADC0802LCJ
ADC0803LCJ
ADC0804LCJ
ADC0801LJ
ADC0802LJ,
ADC0802LJ/883
J20ACavity DIP
J20ACavity DIP
Connection Diagrams
ADC080X
Dual-In-Line and Small Outline (SO) Packages
ADC080X
Molded Chip Carrier (PCC) Package
TL/H/5671 32
TL/H/567130
32
33
SO Package (M)
Order Number ADC0802LCWM, ADC0803LCWM or ADC0804LCWM
NS Package Number M20B
34
35
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
8-Bit mP Compatible A/D Converters
National Semiconductor
Europe
Fax: (a49) 0-180-530 85 86
Email: cnjwge @ tevm2.nsc.com
Deutsch Tel: (a49) 0-180-530 85 85
English Tel: (a49) 0-180-532 78 32
Fran3ais Tel: (a49) 0-180-532 93 58
Italiano Tel: (a49) 0-180-534 16 80
National Semiconductor
Hong Kong Ltd.
13th Floor, Straight Block,
Ocean Centre, 5 Canton Rd.
Tsimshatsui, Kowloon
Hong Kong
Tel: (852) 2737-1600
Fax: (852) 2736-9960
National Semiconductor
Japan Ltd.
Tel: 81-043-299-2309
Fax: 81-043-299-2408
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.