Low-Power, 8-Channel, Serial 10-Bit ADC: - General Description
Low-Power, 8-Channel, Serial 10-Bit ADC: - General Description
Low-Power, 8-Channel, Serial 10-Bit ADC: - General Description
1; 4/97
Low-Power, 8-Channel,
Serial 10-Bit ADC
________________General Description ♦ 8-Channel Single-Ended or 4-Channel Differential
MAX192
The MAX192 is a low-cost, 10-bit data-acquisition system Inputs
that combines an 8-channel multiplexer, high-bandwidth ♦ Single +5V Operation
track/hold, and serial interface with high conversion ♦ Low Power: 1.5mA (operating)
speed and ultra-low power consumption. The device 2µA (power-down)
operates with a single +5V supply. The analog inputs are
♦ Internal Track/Hold, 133kHz Sampling Rate
software configurable for single-ended and differential
(unipolar/bipolar) operation. ♦ Internal 4.096V Reference
The 4-wire serial interface connects directly to SPI™, ♦ 4-Wire Serial Interface is Compatible
QSPI™, and Microwire™ devices, without using external with SPI, QSPI, Microwire, and TMS320
logic. A serial strobe output allows direct connection to ♦ 20-Pin DIP, SO, SSOP Packages
TMS320 family digital signal processors. The MAX192 ♦ Pin-Compatible 12-Bit Upgrade (MAX186/MAX188)
uses either the internal clock or an external serial-
interface clock to perform successive approximation A/D _______________Ordering Information
conversions. The serial interface can operate beyond
4MHz when the internal clock is used. The MAX192 has
an internal 4.096V reference with a drift of ±30ppm typi- PART TEMP. RANGE PIN-PACKAGE INL (LSB)
cal. A reference-buffer amplifier simplifies gain trim and MAX192ACPP 0°C to +70°C 20 Plastic DIP ±1/2
two sub-LSBs reduce quantization errors.
MAX192BCPP 0°C to +70°C 20 Plastic DIP ±1
The MAX192 provides a hardwired SHDN pin and two MAX192ACWP 0°C to +70°C 20 Wide SO ±1/2
software-selectable power-down modes. Accessing the
MAX192BCWP 0°C to +70°C 20 Wide SO ±1
serial interface automatically powers up the device, and
MAX192ACAP 0°C to +70°C 20 SSOP ±1/2
the quick turn-on time allows the MAX192 to be shut
down between conversions. By powering down MAX192BCAP 0°C to +70°C 20 SSOP ±1
between conversions, supply current can be cut to MAX192AEPP -40°C to +85°C 20 Plastic DIP ±1/2
under 10µA at reduced sampling rates. MAX192BEPP -40°C to +85°C 20 Plastic DIP ±1
The MAX192 is available in 20-pin DIP and SO pack- MAX192AEWP -40°C to +85°C 20 Wide SO ±1/2
ages, and in a shrink-small-outline package (SSOP) MAX192BEWP -40°C to +85°C 20 Wide SO ±1
that occupies 30% less area than an 8-pin DIP. The MAX192AEAP -40°C to +85°C 20 SSOP ±1/2
data format provides hardware and software compati- MAX192BEAP -40°C to +85°C 20 SSOP ±1
bility with the MAX186/MAX188. For anti-aliasing filters, MAX192AMJP -55°C to +125°C 20 CERDIP ±1/2
consult the data sheets for the MAX291–MAX297.
MAX192BMJP -55°C to +125°C 20 CERDIP ±1
________________________Applications
Automotive ___________________Pin Configuration
Pen-Entry Systems
TOP VIEW
Consumer Electronics
Portable Data Logging CH0 1 20 VDD
Robotics CH1 2 19 SCLK
Battery-Powered Instruments, Battery CH2 3 18 CS
Management CH3 4 MAX192 17 DIN
Medical Instruments
CH4 5 16 SSTRB
____________________________Features CH5 6 15 DOUT
CH6 7 14 DGND
CH7 8 13 AGND
See last page for Typical Operating Circuit.
AGND 9 12 REFADJ
SHDN 10 11 VREF
SPI and QSPI are trademarks of Motorola Corp.
Microwire is a trademark of National Semiconductor Corp. DIP/SO/SSOP
For free samples & the latest literature: http://www.maxim-ic.com, or phone 1-800-998-8800.
For small orders, phone 408-737-7600 ext. 3468.
Low-Power, 8-Channel,
Serial 10-Bit ADC
MAX192
Stresses beyond those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. These are stress ratings only, and functional
operation of the device at these or any other conditions beyond those indicated in the operational sections of the specifications is not implied. Exposure to
absolute maximum rating conditions for extended periods may affect device reliability.
ELECTRICAL CHARACTERISTICS
(VDD = 5V ±5%, fCLK = 2.0MHz, external clock (50% duty cycle), 15 clocks/conversion cycle (133ksps), 4.7µF capacitor at VREF pin,
TA = TMIN to TMAX, unless otherwise noted. Typical values are at TA = +25°C.)
2 _______________________________________________________________________________________
Low-Power, 8-Channel,
Serial 10-Bit ADC
ELECTRICAL CHARACTERISTICS (continued)
MAX192
(VDD = 5V ±5%, fCLK = 2.0MHz, external clock (50% duty cycle), 15 clocks/conversion cycle (133ksps), 4.7µF capacitor at VREF pin,
TA = TMIN to TMAX, unless otherwise noted. Typical values are at TA = +25°C.)
_______________________________________________________________________________________ 3
Low-Power, 8-Channel,
Serial 10-Bit ADC
ELECTRICAL CHARACTERISTICS (continued)
MAX192
(VDD = 5V ±5%, fCLK = 2.0MHz, external clock (50% duty cycle), 15 clocks/conversion cycle (133ksps), 4.7µF capacitor at VREF pin,
TA = TMIN to TMAX, unless otherwise noted. Typical values are at TA = +25°C.)
4 _______________________________________________________________________________________
Low-Power, 8-Channel,
Serial 10-Bit ADC
TIMING CHARACTERISTICS
MAX192
(VDD = 5V ±5%, TA = TMIN to TMAX, unless otherwise noted.)
0.12
0.20
2.455
0.10
PSR (LSBs)
VREFADJ (V)
0.15
2.454 0.08
0.10
0.06
0.05 2.453
0.04
0 0.02
2.452
-0.05 0
-60 -40 -20 0 20 40 60 80 100 120 140 -60 -40 -20 0 20 40 60 80 100 120 140 -60 -40 -20 0 20 40 60 80 100 120 140
TEMPERATURE (°C) TEMPERATURE (°C) TEMPERATURE (°C)
_______________________________________________________________________________________ 5
Low-Power, 8-Channel,
Serial 10-Bit ADCs
Pin Description
MAX192
Reference Voltage for analog-to-digital conversion. Also, Output of the Reference Buffer Amplifier.
11 VREF Add a 4.7µF capacitor to ground when using external compensation mode. Also functions as an
input when used with a precision external reference.
12 REFADJ Reference-Buffer Amplifier Input. To disable the reference-buffer amplifier, tie REFADJ to VDD.
14 DGND Digital Ground
Serial Data Output. Data is clocked out at the falling edge of SCLK. High impedance when CS is
15 DOUT
high.
Serial Strobe Output. In internal clock mode, SSTRB goes low when the MAX192 begins the A/D
conversion and goes high when the conversion is done. In external clock mode, SSTRB pulses high
16 SSTRB
for one clock period before the MSB decision. SSTRB is high impedance when CS is high
(external mode).
17 DIN Serial Data Input. Data is clocked in at the rising edge of SCLK.
Active-Low Chip Select. Data will not be clocked into DIN unless CS is low. When CS is high, DOUT
18 CS
is high impedance.
Serial Clock Input. Clocks data in and out of serial interface. In external clock mode, SCLK also sets
19 SCLK
the conversion speed. (Duty cycle must be 40% to 60% in external clock mode.)
20 VDD Positive Supply Voltage, +5V ±5%
+5V +3V
3k 3k
DOUT DOUT DOUT DOUT
a) High-Z to VOH and VOL to VOH b) High-Z to VOL and VOH to VOL a) VOH to High-Z b) VOL to High-Z
Figure 1. Load Circuits for Enable Time Figure 2. Load Circuits for Disabled Time
6 ________________________________________________________________________________________________
Low-Power, 8-Channel,
Serial 10-Bit ADC
MAX192
CS 18
SCLK 19
CAPACITIVE DAC
17 INPUT INT VREF
DIN SHIFT CLOCK
REGISTER CONTROL COMPARATOR
SHDN 10
LOGIC INPUT CHOLD
MUX – + ZERO
CH0
CH0 1 15
OUTPUT CH1 16pF
2 DOUT
CH1 SHIFT CH2 10k
3 16
CH2 REGISTER SSTRB RS
CH3 4 ANALOG CH3 CSWITCH
T/H
5 INPUT CH4 HOLD
CH4 MUX CLOCK
CH5 6 TRACK
IN SAR CH5 AT THE SAMPLING INSTANT,
CH6 7 THE MUX INPUT SWITCHES
ADC CH6
CH7 8
OUT T/H FROM THE SELECTED IN+
REF 20 CH7 SWITCH CHANNEL TO THE SELECTED
AGND 13 VDD
AGND IN- CHANNEL.
AGND 9
+2.46V A ≈ 1.65 14
DGND
20k SINGLE-ENDED MODE: IN+ = CHO-CH7, IN- = AGND.
REFERENCE
DIFFERENTIAL MODE (BIPOLAR): IN+ AND IN- SELECTED FROM PAIRS OF
REFADJ 12
MAX192 CH0/CH1, CH2/CH3, CH4/CH5, CH6/CH7.
VREF 11 +4.096V
_______________________________________________________________________________________ 7
Low-Power, 8-Channel,
Serial 10-Bit ADC
Track/Hold band of interest, anti-alias filtering is recommended.
MAX192
The T/H enters its tracking mode on the falling clock See the data sheets for the MAX291–MAX297 filters.
edge after the fifth bit of the 8-bit control word has been
shifted in. The T/H enters its hold mode on the falling Analog Input Range and Input Protection
clock edge after the eighth bit of the control word has Internal protection diodes, which clamp the analog
been shifted in. If the converter is set up for single-ended input to VDD and AGND, allow the channel input pins to
inputs, IN- is connected to AGND, and the converter swing from AGND - 0.3V to VDD + 0.3V without dam-
samples the “+” input. If the converter is set up for differ- age. However, for accurate conversions near full scale,
ential inputs, IN- connects to the “-” input, and the differ- the inputs must not exceed VDD by more than 50mV, or
ence of IN+ - IN- is sampled. At the end of the conver- be lower than AGND by 50mV.
sion, the positive input connects back to IN+, and If the analog input exceeds 50mV beyond the sup-
CHOLD charges to the input signal. plies, do not forward bias the protection diodes of
The time required for the T/H to acquire an input signal is off channels over 2mA.
a function of how quickly its input capacitance is charged. The MAX192 can be configured for differential (unipolar
If the input signal’s source impedance is high, the acquisi- or bipolar) or single-ended (unipolar only) inputs, as
tion time lengthens and more time must be allowed selected by bits 2 and 3 of the control byte (Table 3).
between conversions. Acquisition time is calculated by:
In the single-ended mode, set the UNI/BIP bit to unipolar.
tAZ = 9 (RS + RIN) 16pF In this mode, analog inputs are internally referenced to
where RIN = 5kΩ, RS = the source impedance of the AGND, with a full-scale input range from 0V to VREF.
input signal, and tAZ is never less than 1.5µs. Note that In differential mode, both unipolar and bipolar settings
source impedances below 5kW do not significantly affect can be used. Choosing unipolar mode sets the differen-
the AC performance of the ADC. Higher source imped- tial input range at 0V to VREF. The output code is invalid
ances can be used if an input capacitor is connected to (code zero) when a negative differential input voltage is
the analog inputs, as shown in Figure 5. Note that the applied. Bipolar mode sets the differential input range to
input capacitor forms an RC filter with the input source ±VREF / 2. Note that in this differential mode, the com-
impedance, limiting the ADC’s signal bandwidth. mon-mode input range includes both supply rails. Refer
to Tables 4a and 4b for input voltage ranges.
Input Bandwidth
The ADC’s input tracking circuitry has a 4.5MHz Quick Look
small-signal bandwidth, so it is possible to digitize To evaluate the analog performance of the MAX192
high-speed transient events and measure periodic sig- quickly, use Figure 5’s circuit. The MAX192 requires a
nals with bandwidths exceeding the ADC’s sampling control byte to be written to DIN before each
rate by using undersampling techniques. To avoid conversion. Tying DIN to +5V feeds in control bytes of
high-frequency signals being aliased into the frequency
0 0 0 + –
1 0 0 + –
0 0 1 + –
1 0 1 + –
0 1 0 + –
1 1 0 + –
0 1 1 + –
1 1 1 + –
8 _______________________________________________________________________________________
Low-Power, 8-Channel,
Serial 10-Bit ADC
MAX192
Table 2. Channel Selection in Differential Mode (SGL/DIF = 0)
SEL2 SEL1 SEL0 CH0 CH1 CH2 CH3 CH4 CH5 CH6 CH7
0 0 0 + –
0 0 1 + –
0 1 0 + –
0 1 1 + –
1 0 0 – +
1 0 1 – +
1 1 0 – +
1 1 1 – +
_______________________________________________________________________________________ 9
Low-Power, 8-Channel,
Serial 10-Bit ADC
Example: Simple Software Interface
MAX192
10 ______________________________________________________________________________________
Low-Power, 8-Channel,
Serial 10-Bit ADC
MAX192
VDD +5V
0.1µF OSCILLOSCOPE
DGND
AGND
SCLK
MAX192 AGND
SSTRB
0V TO
4.096V CH7 CS DOUT*
ANALOG 0.01µF
INPUT
SCLK
DOUT
REFADJ SSTRB
______________________________________________________________________________________ 11
Low-Power, 8-Channel,
Serial 10-Bit ADC
MAX192
CS
tACQ
SCLK 1 4 8 12 16 20 24
RB1 RB2 RB3
UNI/ SGL/
DIN START SEL2 SEL1 SEL0 BIP DIF PD1 PD0
SSTRB
RB1 RB2 RB3
B9 B0 FILLED WITH
DOUT MSB B8 B7 B6 B5 B4 B3 B2 B1 LSB S1 SO ZEROS
ACQUISITION
A/D STATE IDLE CONVERSION IDLE
1.5µs (CLK = 2MHz)
Figure 6. 24-Bit External Clock Mode Conversion Timing (SPI, QSPI and Microwire Compatible)
CS •••
SCLK •••
tDS
tDH
DIN •••
DOUT •••
Pulling CS high prevents data from being clocked into after the eighth bit of the control byte (the PD0 bit) is
the MAX192 and three-states DOUT, but it does not clocked into DIN. The start bit is defined as:
adversely affect an internal clock-mode conversion The first high bit clocked into DIN with CS low any-
already in progress. When internal clock mode is time the converter is idle, e.g. after VDD is applied.
selected, SSTRB does not go into a high-impedance
state when CS goes high. OR
Figure 10 shows the SSTRB timing in internal clock The first high bit clocked into DIN after bit 3 of a
mode. In internal clock mode, data can be shifted in conversion in progress is clocked onto the DOUT pin.
and out of the MAX192 at clock rates exceeding If a falling edge on CS forces a start bit before bit 3
4.0MHz, provided that the minimum acquisition time, (B3) becomes available, then the current conversion
tAZ, is kept above 1.5µs. will be terminated and a new one started. Thus, the
Data Framing fastest the MAX192 can run is 15 clocks per conver-
The falling edge of CS does not start a conversion on sion. Figure 11a shows the serial-interface timing nec-
the MAX192. The first logic high clocked into DIN is inter- essary to perform a conversion every 15 SCLK cycles
preted as a start bit and defines the first bit of the control in external clock mode. If CS is low and SCLK is contin-
byte. A conversion starts on the falling edge of SCLK, uous, guarantee a start bit by first clocking in 16 zeros.
12 ______________________________________________________________________________________
Low-Power, 8-Channel,
Serial 10-Bit ADC
MAX192
CS ••• •••
tSDV tSTR
tSSTRB tSSTRB
SCLK •• • • ••••
PD0 CLOCKED IN
CS
SCLK 1 2 3 4 5 6 7 8 9 10 11 12 18 19 20 21 22 23 24
SSTRB
tCONV
B9 B0
FILLED WITH
DOUT MSB B8 B7 LSB S1 S0 ZEROS
ACQUISITION CONVERSION
A/D STATE IDLE 10µs MAX IDLE
1.5µs (CLK = 2MHz)
______________________________________________________________________________________ 13
Low-Power, 8-Channel,
Serial 10-Bit ADC
MAX192
CS
tCONV tCSS
tCSH tSCK
SSTRB
tSSTRB
SCLK
PD0 CLOCK IN NOTE: FOR BEST NOISE PERFORMANCE, KEEP SCLK LOW DURING CONVERSION.
CS
1 8 1 8 1
SCLK
DOUT B9 B8 B7 B6 B5 B4 B3 B2 B1 B0 S1 S0 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0 S1 S0
CONVERSION RESULT 0 CONVERSION RESULT 1
SSTRB
CS
SCLK
DOUT B9 B8 B7 B6 B5 B4 B3 B2 B1 B0 S1 S0 B9 B8 B7 B6
CONVERSION RESULT 0 CONVERSION RESULT 1
14 ______________________________________________________________________________________
Low-Power, 8-Channel,
Serial 10-Bit ADC
MAX192
CLOCK INTERNAL EXTERNAL EXTERNAL
MODE
SHDN
SETS EXTERNAL SETS FAST SETS EXTERNAL
CLOCK MODE POWER-DOWN CLOCK MODE
MODE
DIN S X X X X X 1 1 S X X X X X 0 1 S X X X X X 1 1
DIN S X X X X X 1 0 S X X X X X 0 0 S
tors that will not discharge more than 1/2LSB while shut Hardware Power-Down
down. In shutdown, the capacitor has to supply the cur- The SHDN pin places the converter into the full
rent into the reference (1.5µA typ) and the transient cur- power-down mode. Unlike with the software shutdown
rents at power-up. modes, conversion is not completed. It stops coinci-
Figures 12a and 12b illustrate the various power-down dentally with SHDN being brought low. There is no
power-up delay if an external reference is used and is
sequences in both external and internal clock modes.
not shut down. The SHDN pin also selects internal or
Software Power-Down external reference compensation (see Table 7).
Software power-down is activated using bits PD1 and
PD0 of the control byte. As shown in Table 6, PD1 and Power-Down Sequencing
PD0 also specify the clock mode. When software shut- The MAX192 auto power-down modes can save con-
down is asserted, the ADC will continue to operate in siderable power when operating at less than maximum
the last specified clock mode until the conversion is sample rates. The following discussion illustrates the
complete. Then the ADC powers down into a low quies- various power-down sequences.
cent-current state. In internal clock mode, the interface Lowest Power at up to 500
remains active and conversion results may be clocked Conversions/Channel/Second
out while the MAX192 has already entered a software The following examples illustrate two different
power-down. power-down sequences. Other combinations of clock
The first logical 1 on DIN will be interpreted as a start rates, compensation modes, and power-down modes
bit, and powers up the MAX192. Following the start bit, may give lowest power consumption in other applica-
the data input word or control byte also determines tions.
clock and power-down modes. For example, if the DIN Figure 14a depicts the MAX192 power consumption for
word contains PD1 = 1, then the chip will remain pow- one or eight channel conversions utilizing full
ered up. If PD1 = 0, a power-down will resume after power-down mode and internal reference compensa-
one conversion. tion. A 0.01µF bypass capacitor at REFADJ forms an
16 ______________________________________________________________________________________
Low-Power, 8-Channel,
Serial 10-Bit ADC
MAX192
COMPLETE CONVERSION SEQUENCE
MAX192-14B
AVG. SUPPLY CURRENT (µA)
10 100
Figure 14a. Supply Current vs. Sample Rate/Second, FULLPD, Figure 14b. Supply Current vs. Sample Rate/Second, FASTPD,
400kHz Clock 2MHz Clock
2.0
more. This is achieved by using the sequence shown in
Figure 13. 1.5
Lowest Power at Higher Throughputs
Figure 14b shows the power consumption with 1.0
external-reference compensation in fast power-down,
with one and eight channels converted. The external 0.5
4.7µF compensation requires a 50µs wait after
power-up, accomplished by 75 idle clocks after a 0
dummy conversion. This circuit combines fast 0.0001 0.001 0.01 0.1 1 10
multi-channel conversion with lowest power consump- TIME IN SHUTDOWN (sec)
tion possible. Full power-down mode may provide
increased power savings in applications where the Figure 14c. Typical Power-Up Delay vs. Time in Shutdown
______________________________________________________________________________________ 17
Low-Power, 8-Channel,
Serial 10-Bit ADC
MAX192
FULL-SCALE
11 . . . 111 TRANSITION
011 . . . 111
11 . . . 110 011 . . . 110 FS = +4.096
11 . . . 101 2
1LSB = +4.096
000 . . . 010 1024
000 . . . 001
000 . . . 000
FS = +4.096V
1LSB = FS 111 . . . 111
1024
111 . . . 110
111 . . . 101
00 . . . 011
00 . . . 010 100 . . . 001
00 . . . 001 100 . . . 000
00 . . . 000
0 1 2 3 FS -FS 0V +FS - 1LSB
Figure 15. Unipolar Transfer Function, 4.096V = Full Scale Figure 16. Differential Bipolar Transfer Function,
±4.096V / 2 = Full Scale
MAX192 is inactive for long periods of time, but where typically 20kΩ. At VREF, the input impedance is a
intermittent bursts of high-speed conversions are minimum of 12kΩ for DC currents. During conversion,
required. an external reference at VREF must be able to deliver
up to 350µA DC load current and have an output
External and Internal References impedance of 10Ω or less. If the reference has higher
The MAX192 can be used with an internal or external output impedance or is noisy, bypass it close to the
reference. Diode D1 shown in the Typical Operating VREF pin with a 4.7µF capacitor.
Circuit ensures correct start-up. Any standard signal
diode can be used. An external reference can either be Using the buffered REFADJ input avoids external
connected directly at the VREF terminal or at the buffering of the reference. To use the direct VREF input,
REFADJ pin. disable the internal buffer by tying REFADJ to VDD.
The MAX192’s internally trimmed 2.46V reference is Transfer Function and Gain Adjust
buffered with a gain of 1.678 to scale an external 2.5V Figure 15 depicts the nominal, unipolar input/output
reference at REFADJ to 4.096V at VREF. (I/O) transfer function, and Figure 16 shows the differ-
Internal Reference ential bipolar input/output transfer function. Code
The full-scale range of the MAX192 with internal reference transitions occur halfway between successive integer
is 4.096V with unipolar inputs, and ±2.048V with differen- LSB values. Output coding is binary with
tial bipolar inputs. The internal reference voltage is 1LSB = 4.00mV (4.096V / 1024) for unipolar operation
adjustable to ±1.5% with the Reference-Adjust Circuit of and 1LSB = 4.00mV [(4.096V / 2 - -4.096V / 2)/1024]
Figure 17. for bipolar operation.
External Reference Figure 17, the Reference-Adjust Circuit, shows how to
An external reference can be placed at either the adjust the ADC gain in applications that use the internal
input (REFADJ) or the output (VREF) of the internal reference. The circuit provides ±1.5% (±15LSBs) of
buffer amplifier. The REFADJ input impedance is gain adjustment range.
18 ______________________________________________________________________________________
Low-Power, 8-Channel,
Serial 10-Bit ADC
MAX192
+5V
SUPPLIES
0.01µF
24k
VDD AGND DGND +5V DGND
DIGITAL
MAX192 CIRCUITRY
* OPTIONAL
______________________________________________________________________________________ 19
Low-Power, 8-Channel,
Serial 10-Bit ADC
MAX192
+5V
VDDI, VDDE, VDDSYN, VSTBY
1 CH0 VDD 20
0.1µF 4.7µF
2 CH1 SCLK 19
SCK
3 CH2 CS 18
PCS0
ANALOG 4 CH3 MAX192 DIN 17 MC68HC16
INPUTS MOSI
5 CH4 SSTRB 16
7 CH6 DGND 14
8 CH7 AGND 13
9 AGND REFADJ 12
0.01µF
10 SHDN VREF 11 + 4.7µF
0.1µF VSSI VSSE
TMS320 to MAX192 Interface 4) The SSTRB output of the MAX192 is monitored via
Figure 22 shows an application circuit to interface the the FSR input of the TMS320. A falling edge on the
MAX192 to the TMS320 in external clock mode. The SSTRB output indicates that the conversion is in
timing diagram for this interface circuit is shown in progress and data is ready to be received from
Figure 23. the MAX192.
Use the following steps to initiate a conversion in the 5) The TMS320 reads in one data bit on each of the
MAX192 and to read the results: next 16 rising edges of SCLK. These data bits rep-
1) The TMS320 should be configured with CLKX resent the 10-bit conversion result and two sub-
(transmit clock) as an active-high output clock and LSBs, followed by four trailing bits, which should
CLKR (TMS320 receive clock) as an active-high be ignored.
input clock. CLKX and CLKR of the TMS320 are
tied together with the SCLK input of the MAX192. 6) Pull CS high to disable the MAX192 until the next
2) The MAX192 CS is driven low by the XF_ I/O port conversion is initiated.
of the TMS320 to enable data to be clocked into
DIN of the MAX192.
3) An 8-bit word (1XXXXX11) should be written to the
MAX192 to initiate a conversion and place the
device into external clock mode. Refer to Table 3
to select the proper XXXXX bit values for your spe-
cific application.
20 ______________________________________________________________________________________
Low-Power, 8-Channel,
Serial 10-Bit ADC
MAX192
* Description :
* This is a shell program for using a stand-alone 68HC16 without any external memory. The internal 1K RAM
* is put into bank $0F to maintain 68HC11 code compatibility. This program was written with software
* provided in the Motorola 68HC16 Evaluation Kit.
*
* Roger J.A. Chen, Applications Engineer
* MAXIM Integrated Products
* November 20, 1992
*
******************************************************************************************************************************************************
INCLUDE ‘EQUATES.ASM’ ;Equates for common reg addrs
INCLUDE ‘ORG00000.ASM’ ;initialize reset vector
INCLUDE ‘ORG00008.ASM’ ;initialize interrupt vectors
ORG $0200 ;start program after interrupt vectors
INCLUDE ‘INITSYS.ASM’ ;set EK=F,XK=0,YK=0,ZK=0
;set sys clock at 16.78 MHz, COP off
INCLUDE ‘INITRAM.ASM’ ;turn on internal SRAM at $10000
;set stack (SK=1, SP=03FE)
MAIN:
JSR INITQSPI
MAINLOOP:
JSR READ192
WAIT:
LDAA SPSR
ANDA #$80
BEQ WAIT ;wait for QSPI to finish
BRA MAINLOOP
ENDPROGRAM:
INITQSPI:
______________________________________________________________________________________ 21
Low-Power, 8-Channel,
Serial 10-Bit ADC
MAX192
LDD #$0800
STD SPCR2 ;set ENDQP to $8 for 9 transfers
***** Initialize QSPI Command RAM *****
LDD #$008F
STD $FD20
LDD #$00CF
STD $FD22
LDD #$009F
STD $FD24
LDD #$00DF
STD $FD26
LDD #$00AF
STD $FD28
LDD #$00EF
STD $FD2A
LDD #$00BF
STD $FD2C
LDD #$00FF
STD $FD2E
LDD #$0000
STD $FD30
PULB
PULA
RTS
READ192:
;This routine triggers the QSPI microsequencer to autonomously
;trigger conversions on all 8 channels of the MAX192. Each
;conversion result is stored in the receive data RAM.
PSHA
LDAA #$80
ORAA SPCR1
STAA SPCR1 ;just set SPE
PULA
RTS
22 ______________________________________________________________________________________
Low-Power, 8-Channel,
Serial 10-Bit ADC
MAX192
CS
••••
SCLK
••••
SSTRB
••••
DIN
••••
XF CS
CLKX SCLK
TMS320
CLKR MAX192
DX DIN
DR DOUT
FSR SSTRB
CS
SCLK
SSTRB HIGH
IMPEDANCE
HIGH
DOUT MSB B10 S1 S0 IMPEDANCE
______________________________________________________________________________________ 23
Low-Power, 8-Channel,
Serial 10-Bit ADC
Typical Operating Circuit Chip Information
MAX192
Package Information
SSOP.EPS
Maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim product. No circuit patent licenses are
implied. Maxim reserves the right to change the circuitry and specifications without notice at any time.
24 ____________________Maxim Integrated Products, 120 San Gabriel Drive, Sunnyvale, CA 94086 408-737-7600
© 1997 Maxim Integrated Products Printed USA is a registered trademark of Maxim Integrated Products.
Mouser Electronics
Authorized Distributor
Maxim Integrated:
MAX192BCWP+ MAX192BEAP+ MAX192BEPP+ MAX192BEWP+ MAX192ACAP+ MAX192ACAP+T
MAX192ACPP+ MAX192ACWP+ MAX192ACWP+T MAX192AEAP+ MAX192AEAP+T MAX192AEPP+
MAX192AEWP+ MAX192AEWP+T MAX192BCAP+ MAX192BCAP+T MAX192BCPP+ MAX192BCWP+T
MAX192BEAP+T MAX192BEWP+T MAX192AEWP/GG8-T