19-2765; Rev 2; 2/93 SA MAL/VI Industry Standard Complete General Description The MAX174 and the MX574A/MX674A are complete 12-bit analog-to-digital converters (ADCs) that combine high speed, low-power consumption, and on-chip clock and voltage reference. The maximum conversion times are 8us (MAX174), 15us (MX674A) and 25us (MX574 Py (7) R 5kQ FOR MAX174, 10k&2 FOR MXS74A/MX674A ss, Figure 3. Analog Equivalent Circuit ! Table 1. Truth Table priate number of No OPeration (NOP) instructions be- . ___ tween the conversion-start and data-read commands. CE cs 12/8 Ao | ) OPERATION | oo, pots Tet - After the conversion is completed, data can be obtained aa | | None by the microprocessor. The ADCs have the required xX, &x | x | None logic for 8-, 12- and 16-bit bus interfacing, which is Initiate 12-bit determined by the 12/8 input. If 12/8 is high, the ADCs conversion are configured for a 16-bit bus. Data lines DO-D11 may Initiate 8-bit be connected to the bus as either the 12MSBs or the conversion | 12LSBs. The other 4 bits must be masked out in software. | Enable 12-bit * Oo pox | a 1 + 1 xX For 8-bit bus operation, 12/8 is set low. The format is left I paralleloutput__; justified, and the even address, AO low, contains the 1 0) 0 Enable 8MSBs 8MSBs. The odd address, AO high, contains the 4LSBs, . Enable 4LSBs which is followed by 4 trailing Os. There is no need to use be ' + 4 trailing Os a software mask when the ADCs are connected to an 8-bit bus. ~ output Data Format ote thatthe output cannot be forced to a right-justified During a data read, AO also selects whether the three- format by rearranging the data lines on the 8-bit bus state buffers contain the BMSBs (AO = 0) or the 4LSBs interface. (AO = 1) of the digital result. The 4LSBs are followed by 4 trailing Os. Output data is formatted according to the 12/8 pin. If this input is low, the output will be a word broken into two 8-bit bytes. This allows direct interface to 8-bit buses without the need for external three-state buffers. If 12/8 is high, the output will be one 12-bit word. AO can change state while a data-read operation is in effect. To begin a conversion, the microprocessor must write to the ADC address. Then, since a conversion usually takes longer than asingle clock cycle, the microprocessor must wait for the ADC to complete the conversion. Valid data will be made available only at the end of the conversion, which is indicated by STS. STS can be either polled or used to generate an interrupt upon completion. Or, the microprocessor can be kept idle by inserting the appro- 8 MAXAILSVIIndustry Standard Complete Table 2. MAX174/MX574A/MX674A Data Format for 8-Bit Bus D7 06 0S D4 D3 D2 DI DO High Byte (Ao=0) MSB 010 D9 D8 D7 DE DS p4 Low Byte (ao=1) O38 02 D1 DO 0 60 7 4 27 (MSB) D7 26 (D10) D6 MAXIM 25(09) 5 MAX174 24,08) tr MXS74A 307) D3 MX674A (06) be 21 (D5) ot 20 (D4) D0 19(03) 18 (D2) 17 (01) 3 16 (LSB) < s HARDWIRING FOR 8-BIT DATA BUSES SU CE AO DO-D11 Iss tsac a tHEC y fe THRE he re THAC, be wf ob t ISAC RIC tose Tr an STS - HIGH IMPEDANCE. - 12-Bit A/D Converters Timing and Control Convert Start Timing - Full Control Mode R/C must be low before asserting both CE and CS. It it is high, a brief read operation occurs possibly resulting in system bus contention. To initiate a conversion, use either CE or CS. CE is recommended since it is shorter by one propagation delay than CS and is the faster input of the two. CE is used to begin the conversion in Figure 4. The STS output is high during the conversion indicating the ADC is busy. During this period additional convert start commands will be ignored, so that the conversion cannot be prematurely terminated or re-started. However, if the state of AO is changed after the beginning of the conversion, any additional start conversion transitions will latch the new state of AO, possibly resulting in an incorrect conversion length (8 bits vs 12 bits) for that conversion. Read Timing - Full Control Mode Figure 5 illustrates the read-cycle timing. While reading data, access time is measured from when CE and R/C are both high. Access time is extended 10ns if CS is used to initiate a read. KL << THSR (HRA | RIC xo | wo (SAR CE J ISSR cs \ we (SRR {HAR . AO x - - 1 STS bO-D11 ~ tpn tHD. tHL - HIGHIMPEDANCE - Figure 4. Convert Start Timing MAAXI/VI Figure 5. Read Timing VVLOXW/VPLSXW/PLEXVINMAX 174/MX574A/MX674A Industry Standard Complete 12-Bit A/D Converters r {HRL ~ ] RIC tos tc _* SN STS | tHOR _. {HS DO-14 HIGH IMPEDANCE Figure 6. Low Pulse for R/C in Stand-Alone Mode tHRH RIC ~\ HIGH IMPEDANCE STS tHDR 00-11 Figure 7. High Pulse for R/C in Stand-Alone Mode Stand-Alone Operation For systems which do not use or require full bus interfac- ing, the MAX174/MX574A/MX674A can be operated in a stand-alone mode directly linked through dedicated input ports. When configured in the stand-alone mode, conversion is controlled by R/C. In addition, CS and AO are wired low; CE and 12/8 are wired high. To enable the three-state buffers, set R/C low. A conversion starts when R/C is set high. This allows either a high- or a low-pulse control signal. Shown in Figure 6 is the operation with a low pulse. In this mode, the outputs, in response to the falling edge of R/C, are forced into the high impedance state and return to valid logic levels after the conversion is complete. The STS output goes high following R/C falling edge and returns low when the conversion is complete. A high-pulse conversion initiation is illustrated in Figure 7. When R/C is high, the data lines are enabled. The next conversion starts with the falling edge of R/C. The data lines return and remain "high impedance state" until another R/C high pulse. 10 ANALOG SUPPLY DIGITAL SUPPLY | -15V GND o+16V +5V GND a | l fos, fo. / / mS Z 6 RTF, 4G Aheas rite il 4 tHe 4 i @ | VEE GND Voc Vee AGND Veco VL OGND +5V DGND MAXIAA S/H AND MAX174 DIGITAL ANALOG CIRCUITRY CIRCUITRY MX574A MXO74A | Figure 8, Power-Supply Grounding Practice Analog Considerations Application Hints Physical Layout For best system performance, printed circuit boards should be used for the MAX174/MX574A/MX674A. Wire- wrap boards are not recommended. The layout of the board should ensure that digital and analog signal lines are kept separated from each other as much as possible. Care should be taken not to run analog and digital lines parallel to each other or digital lines underneath the MAX174/MX574A/MX674A. Grounding The recommended power-supply grounding practice is shown in Figure 8. The ground reference point for the on-chip reference is AGND. It should be connected directly to the analog reference point of the system. The analog and digital grounds should be connected to- gether at the package in order to gain all of the accuracy possible from the MAX174/MX574A/MX674