19-1873; Rev 0; 12/00 8-Bit CODECs ________________________Applications Analog I/O for Microcontrollers Analog System Signal Supervision Voice Recording and Playback Features ♦ 8-Bit ADC ±1LSB INL Built-In Track-and-Hold 48dB of SINAD ♦ 8-Bit DAC ±1LSB INL 55dB of SFDR ♦ Internal Conversion Clock ♦ Single-Supply Operation +2.7V to +3.6V (MAX1102) +4.5V to +5.5V (MAX1103) +2.7V to +5.5V (MAX1104) ♦ Low Power Consumption 0.5mA at 25ksps 1µA Shutdown Mode ♦ 6MHz 4-Wire SPI™, QSPI™, and MICROWIRE™ Compatible Interface ♦ Compact 8-Pin µMAX Package ♦ Internal Voltage Reference +2V: MAX1102 +4V: MAX1103 ♦ Power-Supply Monitor (MAX1102/MAX1103) ♦ Rail-to-Rail® DAC Output Buffer Ordering Information TEMP. RANGE PART PINPACKAGE REFERENCE MAX1102EUA -40°C to +85°C 8 µMAX +2V MAX1103EUA -40°C to +85°C 8 µMAX +4V MAX1104EUA -40°C to +85°C 8 µMAX VDD Functional Diagram Pin Configuration VDD CS SCLK DIN DOUT SERIAL INTERFACE AND CONTROL LOGIC MAX1102 MAX1103 MAX1104 ADC VOLTAGE REFERENCE DAC LATCH TOP VIEW VDD/2 T/H AIN DAC AOUT VDD 1 8 GND 2 7 DOUT AIN 3 6 SCLK OUT 4 5 CS MAX1102 MAX1103 MAX1104 DIN µMAX GND SPI/QSPI are trademarks of Motorola, Inc. MICROWIRE is a trademark of National Semiconductor Corp. Rail-to-Rail is a registered trademark of Nippon Motorola Ltd. ________________________________________________________________ Maxim Integrated Products 1 For price, delivery, and to place orders, please contact Maxim Distribution at 1-888-629-4642, or visit Maxim’s website at www.maxim-ic.com. MAX1102/MAX1103/MAX1104 General Description The MAX1102/MAX1103/MAX1104 CODECs provide both an 8-bit analog-to-digital converter (ADC) and an 8-bit digital-to-analog converter (DAC) with a 4-wire logic interface. The MAX1102/MAX1103 include an onboard +2V/+4V reference, providing a well-regulated, low noise reference for both the ADC and DAC. The MAX1104 offers ratiometric conversion, with the reference internally connected to VDD. The MAX1102/MAX1103/MAX1104 are low-cost, lowpower CODECs for use with microcontrollers (µCs). They allow for greater flexibility when selecting a µC. Less expensive µCs without onboard converters can be used while maintaining overall system performance. The MAX1102 operates from a single +2.7V to +3.6V supply, the MAX1103 operates from a +4.5V to +5.5V supply, and the MAX1104 operates from a +2.7V to +5.5V supply. The MAX1102/MAX1103 incorporate a VDD monitor in addition to AIN for power supply monitoring. All devices feature a low 18µA standby mode, where both data converters are disabled while the reference remains active, and three shutdown modes: ADC disabled, DAC disabled, and complete shutdown (1µA). A quick 10µs wake-up time allows the MAX1102/MAX1103/MAX1104 to cycle in and out of shutdown even during short-duration idle times. The MAX1102/MAX1103/MAX1104 are available in a space-saving 8-pin µMAX package. MAX1102/MAX1103/MAX1104 8-Bit CODECs ABSOLUTE MAXIMUM RATINGS VDD to GND ..............................................................-0.3V to +6V AIN, OUT, DOUT to GND ...........................-0.3V to (VDD + 0.3V) DIN, SCLK, CS to GND ............................................-0.3V to +6V Continuous Power Dissipation (TA = +70°C) 8-Pin µMAX (derate 4.1mW/°C above +70°C) .................330mW Operating Temperature Range ...........................-40°C to +85°C Maximum Junction Temperature .....................................+150°C Storage Temperature Range .............................-65°C to +150°C Lead Temperature (soldering,10s) ..................................+300°C 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 = +2.7V to +3.6V (MAX1102), VDD = +4.5V to +5.5V (MAX1103), VDD = +2.7V to +5.5V (MAX1104), fSCLK = 6.0MHz (50% duty cycle), ROUT = 10kΩ, COUT = 100pF, TA = TMIN to TMAX. Typical values are at TA = +25°C, unless otherwise noted.) PARAMETER SYMBOL CONDITIONS MIN TYP MAX UNITS ADC DC ACCURACY (Note 1) Resolution Bits 8 Relative Accuracy (Note 2) INL All codes ±1/4 ±1 LSB Differential Nonlinearity DNL Guaranteed monotonic ±1/4 ±1 LSB ±1 LSB Offset Error Gain Error (Note 3) MAX1102/MAX1103 ±5 % MAX1104 ±1 LSB ADC DYNAMIC SPECIFICATIONS (fAIN = 10kHz SINE WAVE. VAIN = 0.9 ✕ VREFp-p) Signal to Noise and Distortion Ratio SINAD 48 dB Spurious-Free Dynamic Range SFDR 59 dB Total Harmonic Distortion THD Full-Power Bandwidth 58 dB 2.5 MHz µs ADC Wake-Up Time from Standby Reference enabled (MAX1102/MAX1103) 3 ADC Wake-Up Time from Full Shutdown MAX1102/MAX11103 MAX1104 3 200 µs ANALOG INPUT 0 VREF V Analog Input Voltage VAIN Input Resistance RIN 10 MΩ Input Capacitance CIN 20 pF VOLTAGE REFERENCE Reference Voltage VREF Temperature Coefficient MAX1102 MAX1103 MAX1102/MAX1103 2 V 4 100 ppm/oC CONVERSION RATE Conversion Time Track/Hold Acquisition Time Internal Clock Frequency 2 tCONV 24 tACQ 375 _______________________________________________________________________________________ 36 µs 3.5 µs kHz 8-Bit CODECs (VDD = +2.7V to +3.6V (MAX1102), VDD = +4.5V to +5.5V (MAX1103), VDD = +2.7V to +5.5V (MAX1104), fSCLK = 6.0MHz (50% duty cycle), ROUT = 10kΩ, COUT = 100pF, TA = TMIN to TMAX. Typical values are at TA = +25°C unless otherwise noted.) PARAMETER SYMBOL Throughput Rate CONDITIONS ADC in continuous conversion mode MIN TYP MAX UNITS 25 ksps 8 Bits DAC DC ACCURACY Resolution Relative Accuracy (Note 2) INL Differential Nonlinearity DNL Guaranteed monotonic ±1/4 ±1 LSB ±1/4 ±1 LSB ±30 mV Offset Error MAX1102/MAX1103 Gain Error (Note 3) MAX1104 DAC DYNAMIC SPECIFICATIONS (fOUT = 1kHz SINE WAVE, VOUT = 0.9 ✕ VREFp-p) ±5 % ±30 mV Spurious-Free Dynamic Range SFDR 55 dB Total Harmonic Distortion THD 53 dB Small-Signal Bandwidth 1 MHz Full-Power Bandwidth 72 kHz 10 µs DAC Wake-Up Time from Standby (Note 4) Reference enabled (MAX1102/MAX1103) MAX1102/MAX1103 DAC Wake-Up Time from Full Shutdown (Note 4) 200 MAX1104 µs 10 DAC OUTPUT Full-Scale Swing MAX1104 Settling Time (Note 5) Settle to within ±1/2 LSB Slew Rate RL open to 10kΩ 0 < VOUT < VDD - 0.1V Load Regulation VDD 0.1 0 V 11 µs 1.2 V/µs 0.05 LSB LOGIC INPUTS AND OUTPUTS (DIN, SLCK, CS) Input High Voltage VIH Input Low Voltage VIL Input Current VDD ✕ 0.7 V ±0.1 VLOGIC = GND or VDD VDD ✕ 0.3 V ±5 µA Digital Input Hysteresis 0.5 V Digital Input Capacitance 15 pF Output High Voltage VOH ISOURCE = 1.0mA Output Low Voltage VOL ISINK = 1.0mA Three-State Leakage ILEAK VDD ✕ 0.9 V VDD ✕ 0.1 V ±5.0 µA _______________________________________________________________________________________ 3 MAX1102/MAX1103/MAX1104 ELECTRICAL CHARACTERISTICS (continued) MAX1102/MAX1103/MAX1104 8-Bit CODECs ELECTRICAL CHARACTERISTICS (continued) (VDD = +2.7V to +3.6V (MAX1102), VDD = +4.5V to +5.5V (MAX1103), VDD = +2.7V to +5.5V (MAX1104), fSCLK = 6.0MHz (50% duty cycle), ROUT = 10kΩ, COUT = 100pF, TA = TMIN to TMAX. Typical values are at TA = +25°C unless otherwise noted.) PARAMETER SYMBOL CONDITIONS MIN TYP MAX UNITS POWER SUPPLY REQUIREMENTS Supply Voltage VDD MAX1102 2.7 3.6 MAX1103 4.5 5.5 MAX1104 2.7 5.5 ADC on (25ksps), DAC off 0.25 0.5 ADC off, DAC on (VDD = +5.5V) 0.4 0.66 Standby Current ADC off, DAC off, clock off, reference on 18 35 Full Shutdown Current ADC off, DAC off, clock off 1 Supply Current ICC V mA µA µA TIMING CHARACTERISTICS (Figures 4a and 4b) (VDD = +2.7V to +3.6V (MAX1102), VDD = +4.5V to +5.5V (MAX1103), VDD = +2.7V to +5.5V (MAX1104), fSCLK = 6.0MHz (50% duty cycle), ROUT = 10kΩ, COUT = 100pF, TA = TMIN to TMAX. Typical values are at TA = +25°C unless otherwise noted.) PARAMETER Power Up to Reset Complete SYMBOL CONDITIONS MIN t9 CS Rise-to-DOUT = High-Z t10 CS Fall-to-DOUT Valid t11 CS Fall-to-SCLK Rise t3 TYP MAX µs 40 RDOUT = 3kΩ, CDOUT = 50pF UNITS 40 ns 60 ns 15 ns SCLK Fall-to-CS Rise t8 25 ns DIN-to-SCLK Setup Time t4 10 ns DIN-to-SCLK Hold Time t5 15 ns SCLK Fall to DOUT Valid SCLK Maximum Frequency t6 RDOUT = 3kΩ, CDOUT = 50pF fSCLK 70 ns 6 MHz SCLK Pulse Width High tCH 60 ns SCLK Pulse Width Low tCL 70 ns Note 1: MAX1102/MAX1104 tested with VDD = +3V. MAX1103 tested with VDD = +5V. Note 2: Relative accuracy is the deviation of the analog value at any code from its theoretical value after the gain error and offset error have been nulled. Note 3: Gain error calculation is referenced to the ideal FS output. Gain error for the MAX1102/MAX1103 also includes reference initial accuracy error. Note 4: Wake-up time is the time it takes for the DAC output to settle to within ±1/2 LSB of the FS value after a power-up command. Note 5: Output settling time is measured by taking the DAC from code 00hex to FFhex. 4 _______________________________________________________________________________________ 8-Bit CODECs SUPPLY CURRENT vs. SUPPLY VOLTAGE (DAC ENABLED, ADC DISABLED) 150 100 250 200 CODE = 00hex 150 100 50 50 0 0 DAC CODE = FFhex 450 400 SUPPLY CURRENT (µA) SUPPLY CURRENT (µA) 200 CODE = FFhex 300 500 MAX1102 toc02 CODE = AAhex 250 350 300 250 DAC CODE = 00hex 200 150 100 50 3.0 3.5 4.0 4.5 5.0 4.0 4.5 5.0 5.5 2.5 4.5 10 4.0 3.0 2.5 2.0 1.5 4.5 5.0 3.0 3.5 4.0 4.5 5.0 5.5 ADC GAIN ERROR vs. SUPPLY VOLTAGE MAX1102 toc07 10 9 1.00 0.75 0.50 0.25 0 SUPPLY VOLTAGE (V) 5.0 5.5 4.0 4.5 5.5 DAC GAIN ERROR vs. SUPPLY VOLTAGE 7 6 5 4 9 VREF = 2.0V CODE = FFhex 8 7 6 5 4 3 3 2 2 1 1 0 4.5 3.5 10 GAIN ERROR (mV) GAIN ERROR (mV) 1.25 VREF = 2.0V CODE = 7Fhex 8 1.50 4.0 3.0 SUPPLY VOLTAGE (V) ADC GAIN ERROR vs. TEMPERATURE VREF = 2.0V CODE = FFhex 3.5 2.5 SUPPLY VOLTAGE (V) SUPPLY VOLTAGE (V) 3.0 5.0 7 5 2.5 5.5 MAX1102 toc08 4.0 8 6 0 3.5 CODE = 0Ahex 0.5 0 3.0 5.5 9 OFFSET ERROR (mV) 3.5 5.0 MAX1102 toc06 MAX1102 toc04 5.0 1.0 2.5 4.5 DAC OFFSET ERROR vs. SUPPLY VOLTAGE ADC, DAC, and REFERENCE OFF 1.75 4.0 ADC OFFSET ERROR vs. SUPPLY VOLTAGE 10 2.00 3.5 SHUTDOWN SUPPLY CURRENT vs. SUPPLY VOLTAGE ADC and DAC OFF REFERENCE ON 2.5 3.0 SUPPLY VOLTAGE (V) 5 GAIN ERROR (%FS) 3.5 SUPPLY VOLTAGE (V) OFFSET ERROR (mV) SUPPLY CURRENT (µA) 3.0 SUPPLY VOLTAGE (V) 20 15 ADC CODE = AAhex 0 2.5 5.5 MAX1102 toc05 2.5 MAX1102 toc09 SUPPLY CURRENT (µA) 350 MAX1102 toc01 300 SUPPLY CURRENT vs. SUPPLY VOLTAGE (ADC ENABLED, DAC ENABLED) MAX1102 toc03 SUPPLY CURRENT vs. SUPPLY VOLTAGE (ADC ENABLED, DAC DISABLED) 0 -40 -15 10 35 TEMPERATURE (°C) 60 85 2.5 3.0 3.5 4.0 4.5 5.0 5.5 SUPPLY VOLTAGE (V) _______________________________________________________________________________________ 5 MAX1102/MAX1103/MAX1104 Typical Operating Characteristics (VDD = +3.0V (MAX1102), VDD = +5V (MAX1103), fSCLK = 6.0MHz (50% duty cycle), ROUT = 10kΩ, COUT = 100pF, TA = +25°C, unless otherwise noted.) Typical Operating Characteristics (continued) (VDD = +3.0V (MAX1102), VDD = +5V (MAX1103), fSCLK = 6.0MHz (50% duty cycle), ROUT = 10kΩ, COUT = 100pF, TA = +25°C, unless otherwise noted.) 5 1000 CODE = 0Ahex 800 600 -40 -15 10 35 60 3.85 3.80 3.75 CODE = F0hex 3.70 400 3.65 200 3.60 85 VDD = +5.0V VREF = +4.0V 3.55 0 2 4 6 8 MAX1102 toc12 CODE = FFhex 0 0 0 10 2 4 6 OUTPUT SINK CURRENT (mA) OUTPUT SOURCE CURRENT (mA) ADC INTEGRAL NONLINEARITY vs. CODE ADC DIFFERENTIAL NONLINEARITY vs. CODE DAC INTEGRAL NONLINEARITY vs. CODE 0.25 0 -0.25 -0.50 0.50 0.25 0 -0.25 -0.50 -0.75 -0.75 -1.00 -1.00 50 100 150 200 250 0.75 0.50 0.25 0 -0.25 -0.50 -0.75 -1.00 0 300 MAX1102 toc15 MAX1102 toc14 0.75 10 1.00 INTERGRAL NONLINEARITY (LSB) 0.50 1.00 DIFFERENTIAL NONLINEARITY (LSB) MAX1102 toc13 0.75 0 50 100 150 200 250 300 0 50 100 150 200 250 300 ADC OUTPUT CODE ADC OUTPUT CODE DAC OUTPUT CODE DAC DIFFERENTIAL NONLINEARITY vs. CODE WORST-CASE 1LSB DIGITAL STEP CHANGE (POSITIVE) WORST-CASE 1LSB DIGITAL STEP CHANGE (NEGATIVE) MAX1102 toc18 MAX1102 toc17 MAX1102 toc16 1.00 0.75 0.50 3V 3V SCLK SCLK 0 0 0.25 0 -0.25 OUT 20mV/div 20mV/div OUT -0.50 -0.75 -1.00 0 50 100 150 200 250 300 1µs/div 1µs/div DAC OUTPUT CODE 6 8 TEMPERATURE (°C) 1.00 INTERGRAL NONLINEARITY (LSB) 1200 3.90 OUTPUT VOLTAGE (V) OUTPUT VOLTAGE (mV) 10 VDD = +5.0V CODE = 00hex 1400 3.95 MAX1102 toc11 VDD = +5.0V VREF = +2.0V CODE = FFhex 15 GAIN ERROR (mV) 1600 MAX1102 toc10 20 DAC OUTPUT HIGH VOLTAGE vs. OUTPUT SOURCE CURRENT DAC OUTPUT LOW VOLTAGE vs. OUTPUT SINK CURRENT DAC GAIN ERROR vs. TEMPERATURE DIFFERENTIAL NONLINEARITY (LSB) MAX1102/MAX1103/MAX1104 8-Bit CODECs _______________________________________________________________________________________ 8-Bit CODECs POSITIVE SETTLING TIME NEGATIVE SETTLING TIME MAX1102 toc19 CLOCK FEEDTHROUGH MAX1102 toc20 3V MAX1102 toc21 3V SCLK 3V SCLK SCLK 0 0 OUT 0 OUT OUT 1V/div 1V/div 1µs/div 1µs/div 1µs/div DAC FFT VDD = +4.5V 20 0 -40 MAGNITUDE (dB) MAGNITUDE (dB) MAX1102 toc22 VDD = +4.5V FSAMPLE = 24.576kHz FL = 10.002kHz -20 40 MAX1102 toc23 ADC FFT 0 2mV/div -60 -80 -100 -20 -40 -60 -80 -120 -100 -120 -140 0 2 4 6 8 FREQUENCY (kHz) 10 12 14 0 1 2 3 4 5 6 7 8 9 10 FREQUENCY (kHz) _______________________________________________________________________________________ 7 MAX1102/MAX1103/MAX1104 Typical Operating Characteristics (continued) (VDD = +3.0V (MAX1102), VDD = +5V (MAX1103), fSCLK = 6.0MHz (50% duty cycle), ROUT = 10kΩ, COUT = 100pF, TA = +25°C, unless otherwise noted.) MAX1102/MAX1103/MAX1104 8-Bit CODECs Pin Description PIN NAME FUNCTION 1 VDD Voltage Supply 2 GND Ground 3 AIN ADC Analog Input 4 OUT 5 CS 6 SCLK 7 DOUT 8 DIN DAC Analog Voltage Output Chip Select Input. Device ignores all logic signals when CS is high. Serial Clock Input. Data in is latched on the rising edge, data out transitions on the falling edge. ADC Digital Output. Output is high impedance when CS is high. DAC Digital Input. Input ignores all signals when CS is high. Detailed Description The MAX1102/MAX1103/MAX1104 are 8-bit CODECs in a compact 8-pin package. These devices consist of an 8-bit ADC, an 8-bit DAC, track/hold (T/H), DAC output buffer amplifier, internal voltage reference, input multiplexer (mux) and a 6MHz SPI, QSPI and MICROWIRE compatible 4-wire serial interface. A single 8-bit word configures the MAX1102/MAX1103/MAX1104, providing a simple interface to a microcontroller (µC). Analog-to-Digital Converter The MAX1102/MAX1103/MAX1104 ADC section uses a successive-approximation (SAR) conversion technique and input T/H circuitry to convert an analog signal to an 8-bit digital output. No external hold capacitors are required. The MAX1102/MAX1103 have an input multiplexer that directs either AIN or VDD/2 to the input of the T/H, allowing these devices to either convert the analog input, or monitor the power supply. Figure 1 shows the detailed functional diagram of the ADC block. ADC Operation The input architecture of the ADC is illustrated in Figure 2, the equivalent input circuit, and is composed of the T/H, input mux (MAX1102/MAX1103), input comparator, switched capacitor DAC, and the auto-zero rail. The switched capacitor DAC is independent of the R-2R ladder DAC and does not provide the converted analog output on OUT. The T/H is in hold mode while a conversion is taking place. Once the conversion is completed, the T/H enters acquisition mode, and tracks the input signal until the start of the next conversion. In single conversion mode, conversion starts at the falling clock edge corresponding to the last bit of the control word. In continuous conversion mode, the first conversion following the control word starts on the falling clock edge of the CS SCLK DIN CONTROL LOGIC/2 AIN VDD/2 ANALOG INPUT MUX MAX1102 MAX1103 INTERNAL OSCILLATOR ANALOG OUTPUT INPUT SHIFT MUX REGISTER SUCCESSIVE APPROXIMATION REGISTER T/H CHARGE REDISTRIBUTION DAC INTERNAL OSCILLATOR Figure 1. ADC Detailed Functional Diagram 8 _______________________________________________________________________________________ DOUT 8-Bit CODECs Input Voltage Range Internal protection diodes that clamp the analog input to VDD and GND allow AIN to swing from (GND - 0.3V) to (V DD + 0.3V) without damaging the device. However, for accurate conversions, the input must not exceed (VDD + 0.05V) or be less than (GND - 0.05V). The valid input range for the analog input is from GND to VREF. The output code is invalid (code zero) when a negative input voltage is applied, and full scale (FS) when the input voltage exceeds the reference. where RS = the source impedance of the input signal; t ACQ is the T/H acquisition time from the Electrical Characteristics table. VREF Input Bandwidth The ADC’s input tracking circuitry has a 2.5MHz fullpower bandwidth, so it is possible to digitize highspeed transient events and measure periodic signals with bandwidths exceeding the ADC’s sampling rate by using undersampling techniques. To avoid high-frequency signals being aliased into the frequency band of interest, low-pass filters such as the MAX7418– MAX7426 are recommended. GND MAX1102 MAX1103 MAX1104 HOLD AIN TRACK 15pF 5pF ZERO CAPACITIVE DAC Digital-to-Analog Converter TRACK The MAX1102/MAX1103/MAX1104 DAC section uses an R-2R ladder network that converts the 8-bit digital input into an equivalent analog output voltage proportional to the applied reference voltage (Figure 3). The DAC features a double-buffered input, and a buffered analog output. HOLD VDD/2 Figure 2. Equivalent Input Circuit R 2R 2R 2R 2R R R R R 2R 2R R R 2R 2R 2R REF OUT GND LSB MSB DAC_ REGISTER NOTE: SWITCH POSITIONS SHOWN FOR DAC CODE FFhex. Figure 3. DAC Simplified Circuit Diagram _______________________________________________________________________________________ 9 MAX1102/MAX1103/MAX1104 Conversion Progress The comparator’s negative input is connected to the auto-zero rail. Since the device requires only a single supply, the ZERO node at the input of the comparator equals VDD/2. The capacitive DAC restores node ZERO to have no voltage difference at the comparator inputs within the limits of an 8-bit resolution. LSB of the control word. Successive conversions are initiated after the last bit of the previous conversion result has been clocked out. Resultant data is only available after conversion is complete. The time required for the T/H to acquire an input signal is a function of how quickly its input capacitance is charged. If the input signal’s source impedance is high, the acquisition time lengthens, and more time must be allowed between conversions. This time, tACQ2, is calculated by the following equation: tACQ2 = (6.2 ✕ RS ✕ 15pF) + tACQ MAX1102/MAX1103/MAX1104 8-Bit CODECs Output Buffer The MAX1102/MAX1103/MAX1104 analog output is internally buffered by a precision unity-gain buffer that slews at 1.2V/µs (typ). The output swings from GND to VDD - 0.1V. With a 0 to VDD - 0.1V (or VDD - 0.1V to 0) output transition, the amplifier output typically settles to 1/2LSB in 11µs when loaded with 10kΩ in parallel with 100pF. The buffer amplifier is stable with any combination of resistive (≥ 10kΩ) or capacitive (≤ 100pF) loads. ADC CONVERSION CYCLE (ADC PREVIOUSLY ENABLED. DAC DISABLED) AOUT CS t3 t3 SCLK t11 t10 tconv DOUT D7 t4 DIN D7 D6 D6 MSB D5 D4 D3 D2 D1 D5 D4 D3 D2 D1 CONVERSION RESULT D0 LSB D0 t5 AIN MSB CONTROL WORD LSB input sampling instant Figure 4a. Serial Interface Timing Diagram. ADC enabled and DAC disabled. VDD AOUT twake-up tsettling CS t3 t3 SCLK DOUT t4 DIN D7 D6 D5 D4 D3 D2 D1 D0 D7 LSB MSB D6 D5 D4 D3 D2 D1 D0 t5 MSB CONTROL WORD DAC DATA LSB Figure 4b. Serial Interface Timing Diagram. ADC disabled and DAC disabled. 10 ______________________________________________________________________________________ 8-Bit CODECs The serial interface provides easy connection to µCs with SPI, QSPI, and MICROWIRE serial interfaces at clock rates up to 6MHz. For SPI and QSPI, set CPOL = CPHA = 0 in the SPI control registers of the µC. Figure 4 gives detailed timing information. Digital Inputs and Outputs The logic levels of the MAX1102/MAX1103/MAX1104 digital inputs are set to accept voltage levels from both +3V and +5V systems regardless of the supply voltages. Performing a Conversion Configuring the MAX1102/MAX1103/MAX1104 The MAX1102/MAX1103/MAX1104 must be configured before a conversion can occur. Following CS falling, on each rising edge of SCLK, a bit from DIN is clocked into the MAX1102/MAX1103/MAX1104’s internal shift register. After CS falls, the first arriving logic “1” bit defines the MSB of the control byte (START). Until the START bit arrives, any number of logic “0” bits can be clocked into DIN with no effect. Table 1 shows the control-byte format. The control word sets the mode in which the MAX1102/MAX1103/MAX1104 operate. The enable bits, E0 to E2, determine what sections of the device are operating by either enabling or shutting down the two converters and voltage reference (see Shutdown Modes). The enable bits are independent of the address bits; for example, the ADC need not be addressed for it to be shutdown or powered up. C0 and C1 are the control bits. C0 sets the conversion mode, either single or continuous (see Conversion Modes). C1 determines whether the ADC monitors VDD/2 or AIN (see Power Sense). When changing C1, two control words must be written. The first control word changes the state of the mux. Then wait 3.5µs for the T/H to acquire the new input. Finally, the second control word causes the conversion to take place. For MAX1104 set C1 = 0. A0 is the ADC address bit. A logic “1” on A0 addresses the ADC. The control word configures the ADC. A logic “0” on A0 deselects the ADC. In this state, the ADC is still active, but does not perform any conversions. A1 is the DAC address bit. A logic “1” on A1 addresses the DAC. The control word configures the DAC, and the eight bits following the control word are read in as DAC data. The converted analog output is available after the eighth data bit is read into the device. A logic “0” deselects the DAC. In this state the DAC is still active, but ignores any digital inputs. Table 1. Control-Byte Format BIT NAME 7 (MSB) START DESCRIPTION 6 A1 1 = DAC addressed. Current byte configures DAC, the following byte is DAC data. 0 = DAC not addressed. 5 A0 1 = ADC addressed. Current byte configures ADC. After the 36µs conversion time, the next eight clock cycles clock out the conversion result. 0 = ADC not addressed. 4 C1* 1 = ADC input to VDD/2. 0 = ADC input to AIN. 3 C0 1 = Continuous conversion. Control word not required unless the device is reconfigured. 0 = Single conversion. New control word required before next conversion. 2 E2 1 = Reference enabled. 0 = Reference disabled. Don’t care for MAX1104. 1 E1 1 = ADC enabled. 0 = ADC disabled. 0 E0 1 = DAC enabled. 0 = DAC disabled. 1 = designates a new control word. 0 = control word ignored, unless byte is DAC data. * Leave C1 = 0 for MAX1104. ______________________________________________________________________________________ 11 MAX1102/MAX1103/MAX1104 Serial Interface and Control Logic The MAX1102/MAX1103/MAX1104 have 4-wire serial interfaces (Figure 4). The CS, SCLK, and DIN inputs are used to control and configure the device, while the three-state DOUT provides access to the ADC conversion result. DIN also serves as the data input to the DAC. MAX1102/MAX1103/MAX1104 8-Bit CODECs Both the ADC and DAC can be addressed from the same control word, allowing both converters to operate simultaneously. version has occurred, the device will ignore any input until a new control word is written. Figures 5 and 6 show the DAC and ADC single conversion mode timing diagrams. In continuous conversion mode (C0 = 1), the device maintains its configuration from a single control word, and continuously updates the ADC conversion result, or accepts new DAC input data. Configuring the ADC When configuring the ADC immediately following power-up, the first control word enables the ADC and sets the T/H to track mode. Then wait 200µs for the internal reference to stablize (3µs typical from standby mode). Finally, the second control word sets the ADC into either single or continuous mode and causes conversion to take place. When operating the ADC and DAC simultaneously, both converters must be in the same conversion mode. ADC Single Conversion Mode Set C0 = 0 to select single conversion mode. The falling edge of SCLK after the eighth bit of each control word causes the ADC to switch from track to hold mode and begin conversion. To avoid corruption of the conversion result, SCLK must be disabled for 36µs (Figure 6). After completing the conversion, the ADC Conversion Modes The MAX1102/MAX1103/MAX1104 have two conversion modes, single and continuous. In single conversion mode (C0 = 0), a control word must be written before an ADC conversion result can be read, or DAC input data is accepted. Once a con- CS SCLK DIN DAC S ADDR DAC ON DAC S ADDR DAC ON DAC DATA DAC DATA DAC S ADDR DAC ON DAC S ADDR DAC OFF DAC DATA DAC DATA DAC S ADDR DAC ON DAC DATA OUT NOTE: "S" DENOTES THE BEGINNING OF A CONTROL WORD Figure 5. DAC Single Conversion Mode Timing Diagram CS SCLK DIN S ADC ON ADC S ADDR ADC ON ADC S ADDR ADC ON tCONV S ADC ON ADC S ADDR ADC ON ADC S ADDR ADC ON tCONV 1 2 AIN ACQUISITION MODE DOUT ADC S ADDR ADC OFF 3 ACQUISITION MODE MSB LSB MSB LSB CONVERSION RESULT FOR 1 CONVERSION RESULT FOR 2 ACQUISITION MODE 4 MSB LSB MSB LSB CONVERSION CONVERSION RESULT FOR 3 RESULT FOR 4 Figure 6. ADC Single Conversion Mode Timing Diagram 12 ______________________________________________________________________________________ 8-Bit CODECs MAX1102/MAX1103/MAX1104 CS SCLK DIN DAC S ADDR DAC OFF DAC DATA DAC DATA DAC S ADDR DAC ON DAC DATA DAC DATA DAC DATA DAC DATA DAC DATA DAC DATA OUT Figure 7. DAC Continuous Conversion Mode Timing Diagram CS SCLK DIN S ADC ON ADC S ADDR ADC ON ADC S ADDR ADC ON 2 1 ADC S ADDR ADC ON S ADC ON tCONV 4 3 AIN 5 DOUT MSB LSB MSB LSB CONVERSION CONVERSION RESULT FOR 1 RESULT FOR 2 7 6 T/MIN ACQUISITION MODE MSB LSB MSB LSB MSB LSB MSB LSB CONVERSION RESULT FOR 3 CONVERSION RESULT FOR 4 CONVERSION RESULT FOR 5 CONVERSION RESULT FOR 6 Figure 8. ADC Continuous Conversion Mode Timing Diagram automatically returns to track mode, and the next eight clock cycles shift out the result on DOUT. A minimum of 3.5µs in track mode is required for complete acquisition. DAC Continuous Conversion Mode Once the DAC is configured in continuous conversion mode, the analog output, OUT, is updated at the rising edge of every eighth clock pulse (Figure 7). To exit DAC continuous conversion mode, toggle CS. The device requires a new control word before any further conversions take place. OUTPUT CODE FULL-SCALE TRANSITION 11111111 11111110 11111101 00000011 ADC Continuous Conversion Mode Set C0 = 1 to select continuous conversion mode. The falling edge of SCLK after the eighth bit of the control word causes the ADC to switch from track to hold mode and begin conversion. To avoid corruption of the conversion result, SCLK must be disabled for 36µs (Figure 8). After completing the conversion, the ADC 00000010 00000001 00000000 0 (IN-) 0.5 1.5 2.5 INPUT VOLTAGE (LSB) FS FS - 1.5LSB Figure 9. ADC Input/Output Transfer Function ______________________________________________________________________________________ 13 MAX1102/MAX1103/MAX1104 8-Bit CODECs automatically returns to track mode, and the next eight clock cycles shift out the result on DOUT. The falling edge of SCLK during the eighth bit of the result will again cause the ADC to switch from track to hold mode and begin the next conversion. A minimum of 3.5µs in track mode is required for complete acquisition. In continuous ADC-only conversion mode, a new control word (START = 1) reconfigures the device. ing the input multiplexer, two control words must be written before any conversion takes place. The first control word changes the multiplexer state, and the second starts the conversion. Reference The full-scale range of both the ADC and DAC is set by the internal voltage reference. The MAX1102 provides a +2.0V reference, the MAX1103 has a +4.0V reference, and the MAX1104 uses VDD as the reference voltage. Interrupted Communication Results If CS transitions from low to high during the reception of a control word, the MAX1102/MAX1103/MAX1104 enters its power-on reset state (full shutdown mode). If CS is toggled while receiving DAC data, the input is ignored and any received bits are discarded. In both cases, once CS returns low, the device requires a new control word before further conversions can occur. If CS goes high while data is read from the device, DOUT enters a high-impedance state, and the serial clock is ignored. When CS returns low, the remaining bits of the conversion result can be clocked out. Applications Information Power-On Reset When power is first applied, the device enters full shutdown mode and the DAC registers are reset to 0. To wake up the device, the proper control word must be written and 200µs allowed for the internal reference to stablize. DAC data may be written to the device immediately following the control word, but OUT will not finish settling until the wake-up time has passed. Power Sense The MAX1102/MAX1103 provide a multiplexer which sets the T/H to either AIN or one-half of VDD. With C1 = 1, the ADC converts the V DD /2 voltage, providing power sensing capability to the system. When switch- ADC Transfer Function Figure 9 depicts the ADC input/output transfer function. Code transitions occur at the center of every LSB step. Output coding is binary; with a 2.0V reference 1LSB = (VREF/256) = 7.8125mV. Full scale is achieved at VAIN = VREF - 1.5LSB. Negative input voltages are invalid and give a zero output code. Voltages greater than full scale give an all ones output code. Shutdown Modes The MAX1102/MAX1103/MAX1104 feature four software-selectable shutdown modes, helping to conserve power by disabling any unused portion of the device. Bits 0 through 2 of the control word select the device shutdown mode (Table 1). Table 2 details the four power modes with the corresponding supply current and operating sections. The ADC and DAC are individually controlled and can be shutdown independently of each other. Bit 0 (E0) controls the DAC, a logic “1” enables the DAC, a logic “0” disables the DAC. Bit 1 (E1) controls the ADC, a logic “1” enables the ADC, a logic “0” disables the ADC. Either the ADC or DAC or both can be shutdown, conserving power when one or both converters are not in use. A fast wake-up time (3µs ADC, 10µs DAC) allows the converters to be cycled in and out of shutdown even during short duration idle times. Table 2. Operation Modes SUPPLY CURRENT BIT 14 E2 E1 E0 0 0 0 1 0 0 1 1 0 1 0 1 1 OPERATING SECTIONS REF ADC DAC 1µA Off Off Off 18µA On Off Off 250µA On On Off 1 400µA On Off On 1 520µA On On On ______________________________________________________________________________________ 8-Bit CODECs SYSTEM POWER SUPPLIES GND +3V/+5V 1µF 10Ω 0.1µF GND VDD MAX1102 MAX1103 MAX1104 DGND VDD DIGITAL CIRCUITRY Figure 10. Power-Supply Connections Data can be written to the DAC while it is in shutdown. A control word with A1 = 1 and E0 = 0 disables the DAC while allowing data to be written to the DAC. The eight bits following this control word are shifted into the DAC register. Conversion takes place once the DAC is enabled. Two control words are necessary to enable the ADC. The first control word brings the ADC out of shutdown, and sets the T/H in acquisition mode. The second control word initiates the conversion. Figure 10 shows the recommended system-ground connections. A single-point analog ground (star-ground point) should be established at the device ground. Connect all analog grounds to the star ground. No digital-system ground should be connected to this point. The ground return to the power supply for the star ground should be connected to this point. The ground return to the power supply for the star ground should be low impedance and as short as possible for noisefree operation. High-frequency noise in the VDD power supply may affect device performance. Bypass the supply to the star ground with 0.1µF and 1µF capacitors close to the device. Minimize capacitor lead lengths for best supply-noise rejection. If the power supply is very noisy, connect a 10Ω resistor in series with VDD to form a lowpass filter. Chip Information TRANSISTOR COUNT: 3226 PROCESS: BiCMOS Bit 2 (E2) controls the reference. A logic “1” enables the reference, a logic “0” disables the reference, further reducing power consumption. ______________________________________________________________________________________ 15 MAX1102/MAX1103/MAX1104 Power Supply Bypassing and Layout For best performance, use printed circuit boards. Wirewrap boards are not recommended. Board layout should ensure that digital and analog signal lines are separated from each other. Do not run analog and digital (especially clock) lines parallel to one another or run digital lines underneath the device. ________________________________________________________ Package Information 8LUMAXD.EPS MAX1102/MAX1103/MAX1104 8-Bit CODECs 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. 16 ____________________Maxim Integrated Products, 120 San Gabriel Drive, Sunnyvale, CA 94086 408-737-7600 © 2000 Maxim Integrated Products Printed USA is a registered trademark of Maxim Integrated Products.