Features: Microprocessor-Compatible, 5-1/2 Digit A/D Converter
Features: Microprocessor-Compatible, 5-1/2 Digit A/D Converter
HI-7159A FN2936
Microprocessor-Compatible, 5-1/2 Digit A/D Converter Rev 4.00
January 1999
TEMP. PKG.
• Part Counting Scales
PART NUMBER RANGE (oC) PACKAGE NO. • Laboratory Instruments
HI3-7159A-5 0 to 70 28 Ld PDIP E28.6 • Process Control/Monitoring
• Energy Management
• Seismic Monitoring
VCC 1 28 SEL
INT OUT 2 27 XTAL
CINT INTEGRATOR COMPARATOR CONTROL
INT IN 3 26 DGND SECTION
- + AND 8 BIT
BUF OUT 4 25 P7/BRS1 + LATCHES BUS BUS
CREF-
- INTERFACE
5 24 P6/BRS0 RINT UNIT
GUARD
CREF- 6 23 P5/SAD3 BUFFER CS
+
I/O PORTS
CREF+ 7 22 P4/SAD2 -
WR
CREF+
8 21 P3/SAD1 VREF HI
GUARD
VREF HI 9 20 P2/SAD0 VREF LO RD
Operating Conditions
Temperature Range. . . . . . . . . . . . . . . . . . . . . . . . . . . 0oC to 70oC
CAUTION: Stresses above those listed in “Absolute Maximum Ratings” may cause permanent damage to the device. This is a stress only rating and operation of the
device at these or any other conditions above those indicated in the operational sections of this specification is not implied.
NOTE:
1. JA is measured with the component mounted on an evaluation PC board in free air.
Electrical Specifications Test Conditions: VCC = +5V, VEE = -5V, DGND = 0V, AGND = 0V, VREF HI = +1.00000V, VREF LO = AGND,
fCLOCK = 2.40MHz, RINT = 400k, CINT = 0.01F, TA = 25oC, VIN LO = AGND , CREF = 1.0F, 51/2 Digit
Compensated Mode, Unless Otherwise Specified
Voltage Range of VIN HI Input -2V VIN HI - VIN LO 2V VIN LO-2V - VIN LO +2V V
(Pin 12), VIN HI
Input Leakage Current, IIN Pins 9, 10, 12, 13, VIN = +3V, -3V - - 0.1 A
VCC , VEE Power Supply Rejection, VIN HI = VREF HI = 1.00000V, VCC = +4.75V, - 3 - Counts
PSR VEE = -4.75V to VCC = +5.50V, VEE = -5.50V
NOTES:
2. All typical values have been characterized but are not production tested.
3. Not production tested, guaranteed by design and characterization.
4. Reference adjusted for correct full-scale reading.
5. VIN = VIN HI - VIN LO .
DC Electrical Specifications Test Conditions: VCC = +5V, VEE = -5V, DGND = 0V, AGND = 0V, VREF HI = +1.00000V, VREF LO =
AGND , fCLOCK = 2.40MHz, RINT = 400k, CINT = 0.01F, TA = 25oC, VIN LO = AGND , CREF = 1.0F,
51/2 Digit Compensated Mode, Unless Otherwise Specified
Output Low Voltage, VOL Pins 16, 18-25, IOL = 1.6mA - - 0.4 V
Output High Voltage, VOH Pins 16, 18-25, IOH = -400A 2.4 - - V
Three-State Leakage Current, All Digital Drivers In High Impedance State, - - 10 A
Pins 18-25, IOL Parallel Mode. CS = VCC , VIN = 0V, VCC
Pin 16 - 10 - pF
AC Electrical Specifications TA = 0oC to 75oC; Test Conditions: VCC = +4.75V, VEE = -5.00V (Note 8), DGND = 0V, AGND = 0V,
VIN LO = AGND , VREF HI = +1.00000V, VREF LO = AGND , fCLOCK = 2.40MHz, RINT = 400k ,
CINT = 0.01F, VIL = 0V, VIH = 4V, VOL = VOH = 1.5V, tr = tf < 10ns, 51/2 Digit Compensated Mode,
Unless Otherwise Specified
CS Setup/Hold of WR, t1 0 - - ns
RD to Hi-Z State, t7 - - 70 ns
NOTES:
6. All typical values have been characterized but are not production tested.
7. Not production tested, guaranteed by design and characterization.
8. All AC characteristics are guaranteed for VCC = +5V 15%, VEE = -5V 15%, over TA = 0oC to 75oC.
Timing Waveforms
CS
t1 t3 t1
WR WR
tA
t2 t4
RD
P0 - P7 DATA IN
WR
tA
CS
t5 t5 RD
RD tB
WR
t6 t7
P0 - P7 DATA OUT
CLK
(PIN 15)
RXD/TXD D0 D1 D2 D3 D4 D5 D6 D7
(PIN 16) tC (HI-7159A RECEIVING)
tD
RXD/TXD D0 D1 D2 D3 D4 D5 D6 D7
(PIN 16) (HI-7159A TRANSMITTING)
tE
CS
(SERIAL MODE 1)
tf
DATA CLOCK
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
BIT DETECTOR
SAMPLE TIME
Pin Descriptions
PIN SYMBOL DESCRIPTION
1 VCC Positive 5V Power Supply for analog and digital sections.
2 INT OUT Integrator Output; external component terminal.
3 INT IN Integrator Input; external component terminal.
4 BUF OUT VIN HI Voltage Buffer Output; external component terminal.
5 CREF - Guard Reference Capacitor guard ring terminal (negative).
6 CREF - Reference Capacitor negative terminal.
7 CREF + Reference Capacitor positive terminal.
8 CREF + Guard Reference Capacitor guard ring terminal (positive).
9 VREF HI Positive Reference Input terminal.
10 VREF LO Negative Reference Input terminal.
11 AGND Analog Ground (0V).
12 VIN HI Positive Analog Input Voltage terminal.
13 VIN LO Negative Analog Input Voltage terminal.
14 VEE Negative 5V Power Supply for analog section.
15 RD/RXD Parallel Read; serial receive (modes 1 and 2), serial clock (mode 0).
16 WR/TXD Parallel Write; serial transmit (modes 1 and 2), serial receive/transmit (mode 0).
17 CS/SAD4 Chip Select (parallel and serial modes 0 and 1), serial address bit 4 (mode 2).
18 P0/SMS0 Parallel I/O Port (P0); serial mode select pin.
19 P1/SMS1 Parallel I/O Port (P1); serial mode select pin.
Serial Mode 0 0 0
Serial Mode 1 0 1
Serial Mode 2 1 0
Reserved 1 1
300 0 0
1200 0 1
9600 1 0
19200 1 1
Serial Mode 1
-5V +5V
Serial Mode 1 is selected by tying SMS0 (Pin 18) low, SMS1
(Pin 19) high, and SEL (Pin 28) low (Figure 4B). In this mode VEE VCC
the HI-7159A interface emulates a UART, reading and writing 14 1 XTAL
CLK CLK
data in serial data packets of 1 start bit, 8 data bits, 1 parity bit 10
RXD/TXD RXD/TXD
15
(EVEN), and 1 stop bit. The baud rate is determined by the 11 16 27
XTAL
state of BRS0 and BRS1 (Pins 24 and 25) as shown in Table
2. Pin 15 becomes the serial receiver pin (RXD) and pin 16 the 8051
HI-7159A
P +5V
serial transmitter pin (TXD). CS (Pin 17) remains a chip select
and must either be tied to DGND or pulled low (see Figure 2B) SM0
18 20-25
to access the device. SAD0-SAD3 (Pins 20-23) are unused in SM1
19
this mode and should be tied high. 17 26 28
BUS 25
D7 D7 26
FIGURE 4B. SERIAL MODE 1
DGND
D7 D6 D5 D4 D3 D2 D1 D0
1 0 0 B4 B3 B2 B1 B0
D7 D6 D5 D4 D3 D2 D1 D0
Error Only 0 1
TABLE 6. REQUEST BYTE FORMAT, PARALLEL AND SERIAL MODE 1 (SENT TO HI-7159A)
D7 D6 D5 D4 D3 D2 D1 D0
0 0 0 0 Digit Pair 0, 1 0 0 0 1
Digit Pair 2, 3 0 1
Digit Pair 4, 5 1 0
Converter Status 1 1
D7 D6 D5 D4 D3 D2 D1 D0
0 0 0 0 Digit 0 0 0 0 1
Digit 1 0 0 1
Digit 2 0 1 0
Digit 3 0 1 1
Digit 4 1 0 0
Digit 5 1 0 1
Converter Status 1 1 0
CONVERTER PARITY
(†) UPDATE STATUS (†) CONTINUITY RESOLUTION CONVERSION TYPE ERROR
D7 D6 D5 D4 D3 D2 D1 D0
Error 0 1
(† = Reserved)
TABLE 9. DIGIT BYTE FORMAT, PARALLEL AND SERIAL MODE 1 (RECEIVED FROM HI-7159A)
DIGIT BYTE D7 D6 D5 D4 D3 D2 D1 D0
TABLE 10. DIGIT BYTE FORMAT, SERIAL MODE 2 (RECEIVED FROM HI-7159A)
DIGIT BYTE D7 D6 D5 D4 D3 D2 D1 D0
50% range indicate that it is possible to get valid data out with
SEND COMMAND BYTE very tight code. In all cases the status byte should be checked
(INITIATE SINGLE CONVERSION)
before and after the reading to ensure data integrity.
BAUD 5 1 /2 4 1 /2
NO RATE 51/2 COMP UNCOMP 41/2 COMP UNCOMP
D6 = 1?
300 * /* * /* * /* * /*
1200 54%/* * /* * /* * /*
YES
9600 7%/13% 14%/25% 27%/50% 54%/*
GET DIGIT BYTES
19200 4%/7% 7%/13% 14%/25% 27%/50%
VCC
YES 1 CRYSTAL
(2MHz TO 2.5MHz)
GET DIGIT BYTES
HI-7159A 27
XTAL
“19200” 8 DGND
AGND DGND
The following equation determines the divider needed to
FIGURE 8. ANALOG COMPONENTS AND INPUTS
operate the HI-7159A at any given crystal frequency:
TABLE 14. RECOMMENDED COMPONENT VALUES vs CLOCK
f CLOCK 7159A f CRYSTAL Host UART FREQUENCY
-------------------------------------------- = ---------------------------------------------------------------- = Data Clock
Divider 7159A Divider Host UART
fCLOCK RINT CINT CREF
Once determined, the new divider must be written directly to the
2.4MHz 400k 0.01F 1.0F
Host’s UART. Most PC compatibles use an 8250 UART with a
1.8432MHz crystal, so the proper divider for the 2MHz example 1.2MHz 360k 0.022F 2.2F
given above would be 15. Again, these considerations apply only 600kHz 330k 0.047F 4.7F
to Serial Modes 1 and 2. Parallel and Serial Mode 0
NOTE: CINT MUST be a high quality polypropylene capacitor or
communication rates are independent of crystal frequency.
performance may be degraded.
Conversion Time The reference capacitor and integrating components can either
The conversion time of the HI-7159A is a function of the crystal be selected from Table 14, or calculated from the following
frequency and the type of conversion being made. The equations.
conversion times for fCLOCK = 2.4MHz are shown in Table 13.
CREF acts as a voltage source at different times during a
At other clock frequencies the times may be calculated from
conversion. Its value is determined by two considerations: it
the following formula:
must be small enough to be fully charged from its discharged
C state at power-on; yet it also must be large enough to supply
t CONV = ---------------------
f CLOCK
current to the circuit during conversion without significantly
where the constant C is determined from Table 13. drooping from its initial value. For 2.4MHz operation, a 1F
capacitor is recommended. The equation for other
TABLE 13. CONVERSION TIMES frequencies is:
CONVERSION TYPE
2.5
51/ 51/2 41/2 41/2 C REF = ---------------------
2 f CLOCK
COMP UNCOMP COMP UNCOMP
f = 2.4MHz 133ms 66.7ms 33.3ms 16.7ms The values of RINT and CINT are selected by choosing the
maximum integration current and the maximum integrator
C 320,000 160,000 80,000 40,000
output voltage swing. The maximum integration current and
Component Selection voltage swing occurs when VIN = full scale = 2 X VREF . The
recommended integration current for the HI-7159A is
Three external passive components must be chosen for the
5mA - 10mA. This will help determine the value of RINT , since:
HI-7159A: the integrating capacitor (CINT), the integrating resistor
V IN V IN
(RINT), and the reference capacitor (CREF). They are chosen I INT = ------------- so R INT = ----------- ,
R INT I INT
based on the crystal frequency, the reference voltage (VREF), and
the desired integrating current. Figure 8 illustrates the analog where VIN = VIN HI - VIN LO = 2 x VREF .
components necessary for the HI-7159A to function.
OUTPUT COUNT
the integrating capacitor, CINT . For a converter of this
000,000
resolution, it is imperative that this component perform as
closely to an ideal capacitor as possible. Any amount of
leakage or dielectric absorption will manifest itself as linearity
-100,000
errors. For this reason CINT must be a high quality
-200,012
polypropylene capacitor. Use of any other type may degrade COUNTS
performance. The value of CINT is determined by the -200,000
magnitude of the desired maximum integrator output voltage
swing as shown below: -2 -1 0 1 2
INPUT (V)
V IN t INT FIGURE 9. TYPICAL HI-7159A TRANSFER CHARACTERISTIC
V SWING = -------------------------------------
R INT C INT
CREF Guard Pins
Solving for CINT yields: Depending on the polarity of the input signal, either the
negative or the positive terminal of the reference capacitor
V IN t INT
C INT = ----------------------------------------------- will be connected to AGND to provide the correct polarity for
R INT V SWING
reference deintegration. In systems where VREF LO is tied to
analog ground, the reference capacitor is effectively shifted
where VSWING is the maximum output voltage swing of the down by | VREF | for positive input voltages, and is not shifted
integrator, VIN is the full scale input voltage (VIN HI - VIN LO) to at all for negative input voltages. This shift can cause some
the converter (equal to 2 X VREF), and tINT is the time in which charge on the reference capacitor to be lost due to stray
VIN is integrated. The best results are achieved when the capacitance between the reference capacitor leads and
maximum integrator output voltage is made as large as ground traces or other fixed potentials on the board. The
possible, yet still less than the nonlinear region in the vicinity of reference voltage will now be slightly smaller for positive
the power supply limit. A full scale output swing of about 3V inputs. This difference in reference voltages for positive and
provides the greatest accuracy and linearity. negative inputs appears as rollover error.
NOTE: The integrator is auto-zeroed to the voltage at VIN LO . If VIN The HI-7159A provides two guard ring outputs to minimize this
LO is negative with respect to AGND , the integrator will have | VIN LO | effect. Each guard ring output is a buffered version of the
less headroom for positive input voltages (inputs where VIN HI - VIN LO voltage at its respective CREF pin. If the traces going to the
> 0). If VIN LO is positive with respect to AGND , the integrator will have
CREF pins and under CREF itself are surrounded by their
| VIN LO | less headroom for negative input voltages (inputs where VIN
corresponding guard rings, no charge will be lost as CREF is
HI - VIN LO < 0). In most applications VIN LO is at or near AGND and the
above equations will be adequate. In applications where VIN LO may be moved. Figure 10 shows two slightly different patterns. The
more than 0.1V away from AGND , it should be included in the integrator first one is for capacitors of symmetrical construction, the
swing considerations. The following formula combines all the above second is for capacitors with outside foils (one end of the
considerations:.
capacitor is the entire outside.
V IN HI – V IN LO 10 000
V IN LO – ----------------------------------------------------------------------- 3V
R INT C INT f OSC (5) CREF- GUARD
(6) CREF-
Gain Error Adjustments HI -7159A
(7) CREF+
While the HI-7159A has a very linear transfer characteristic in
both the positive and negative directions, the slope of the line (8) CREF+ GUARD
P7/BRS1
P6/BRS0
CREF -
GUARD P5/SAD3
P4/SAD2
P3/SAD1
CREF -
CREF + P2/SAD0
P1/SMS1
CREF +
GUARD
VREF
HI
VREF P0/SMS0
LO