The ADS7828 is a single-supply low-power 12-bit data acquisition device that features a serial I2C interface and an 8-channel multiplexer. The analog-to-digital converter (ADC) features a sample-and-hold amplifier and internal asynchronous clock. The combination of an I2C serial 2-wire interface and micropower consumption makes the ADS7828 ideal for applications requiring the ADC to be close to the input source in remote locations and for applications requiring isolation. The ADS7828 is available in a TSSOP-16 package.
PART NUMBER | PACKAGE | BODY SIZE (NOM) |
---|---|---|
ADS7828-Q1 | TSSOP (16) | 6.40 mm × 5.00 mm |
Changes from A Revision (October 2009) to B Revision
PIN | DESCRIPTION | |
---|---|---|
NO. | NAME | |
1 | CH0 | Differential channel 0: positive input or single-ended channel 0 input |
2 | CH1 | Differential channel 0: negative input or single-ended channel 1 input |
3 | CH2 | Differential channel 1: positive input or single-ended channel 2 input |
4 | CH3 | Differential channel 1: negative input or single-ended channel 3 input |
5 | CH4 | Differential channel 2: positive input or single-ended channel 4 input |
6 | CH5 | Differential channel 2: negative input or single-ended channel 5 input |
7 | CH6 | Differential channel 3: positive input or single-ended channel 6 input |
8 | CH7 | Differential channel 3: negative input or single-ended channel 7 input |
9 | GND | Analog ground |
10 | REFIN / REFOUT | Internal 2.5-V reference / external reference input |
11 | COM | Common to analog input channel |
12 | A0 | Slave address bit 0 |
13 | A1 | Slave address bit 1 |
14 | SCL | Serial clock |
15 | SDA | Serial data |
16 | +VDD | Power supply, 3.3 V (nominal) |
MIN | MAX | UNIT | |||
---|---|---|---|---|---|
VDD | Supply voltage | –0.3 | 6 | V | |
VIN | Digital input voltage | –0.3 | 0.3 | V | |
θJA | Thermal impedance, junction to free air(3)(4) | 108.4 | °C/W | ||
TA | Operating free-air temperature | –40 | 85 | °C | |
Tlead | Lead temperature during soldering | Vapor phase (60 seconds) | 215 | °C | |
Infrared (15 seconds) | 220 | °C | |||
TJ | Operating virtual-junction temperature | 150 | °C | ||
Tstg | Storage temperature | –65 | 150 | °C |
VALUE | UNIT | |||
---|---|---|---|---|
V(ESD) | Electrostatic discharge | Human-body model (HBM), per AEC Q100-002(1) | ±2000 | V |
Charged-device model (CDM), per AEC Q100-011 | ±1000 |
MIN | NOM | MAX | UNIT | |||
---|---|---|---|---|---|---|
VDD | Supply Voltage | 2.7-V nominal | 2.7 | 3.6 | V | |
5-V nominal | 4.75 | 5 | 5.25 | |||
VIN | Analog Input Voltage | Positive Input | –0.2 | +VDD + 0.2 | V | |
Negative Input | –0.2 | 0.2 | ||||
Full-scale differential (Positive input – Negative input) | 0 | VREF | ||||
VIN(REF) | Voltage Reference Input voltage | 0.05 | +VDD | V | ||
VIH | High-level digital input voltage | 0.7 × +VDD | +VDD + 0.5 | V | ||
VIL | Low-level digital input voltage | –0.3 | 0.3 × +VDD | V | ||
TA | Operating free-air temperature | –40 | 85 | °C |
THERMAL METRIC(1) | ADS7828-Q1 | UNIT | |
---|---|---|---|
PW (TSSOP) | |||
16 PINS | |||
RθJA | Junction-to-ambient thermal resistance | 102.1 | °C/W |
RθJC(top) | Junction-to-case (top) thermal resistance | 37.2 | °C/W |
RθJB | Junction-to-board thermal resistance | 47.1 | °C/W |
ψJT | Junction-to-top characterization parameter | 2.9 | °C/W |
ψJB | Junction-to-board characterization parameter | 46.5 | °C/W |
PARAMETER | TEST CONDITIONS | MIN | TYP | MAX | UNIT | |
---|---|---|---|---|---|---|
Analog Input | ||||||
Ileak | Leakage current | ±1 | µA | |||
CI | 25 | pF | ||||
Overall Performance | ||||||
No missing codes | 12 | bits | ||||
Integral linearity error | ±1 | ±2 | LSB(1) | |||
Differential linearity error | ±1 | LSB | ||||
Offset error | ±1 | ±3 | LSB | |||
Offset error match | ±0.2 | ±1 | LSB | |||
Gain error | ±1 | ±4 | LSB | |||
Gain error match | ±0.2 | ±1 | LSB | |||
Vn | Noise | RMS | 33 | µV | ||
PSRR | Power-supply ripple rejection | 82 | dB | |||
Sampling Dynamics | ||||||
Throughput frequency | High-speed mode: SCL = 3.4 MHz | 50 | kHz | |||
Fast mode: SCL = 400 kHz | 8 | |||||
Standard mode: SCL = 100 kHz | 2 | |||||
Conversion time | 6 | µs | ||||
AC Accuracy | ||||||
THD | Total harmonic distortion(2) | VIN = 25 VPP at 10 kHz | –82 | dB | ||
Signal-to-noise ratio | VIN = 25 VPP at 10 kHz | 72 | dB | |||
Signal-to-(noise + distortion) ratio | VIN = 25 VPP at 10 kHz | 71 | dB | |||
Spurious-free dynamic range | VIN = 25 VPP at 10 kHz | 86 | dB | |||
Channel-to-channel isolation | 120 | dB | ||||
Voltage Reference Output | ||||||
VO | Output voltage | 2.475 | 2.5 | 2.525 | V | |
Internal reference drift | 15 | ppm/°C | ||||
zo | Output impedance | Internal reference on | 110 | Ω | ||
Internal reference off | 1 | GΩ | ||||
IQ | Quiescent current | 850 | µA | |||
Voltage Reference Input | ||||||
rI | Input resistance | 1 | GΩ | |||
Current drain | 20 | µA | ||||
Digital Input and Output | ||||||
VOL | Low-level output voltage | Minimum 3-mA sink current | 0.4 | V | ||
IIH | High-level input current | VIH = +VDD + 0.5 V | 10 | µA | ||
IIL | Low-level input current | VIL = –0.3 V | –10 | µA | ||
Power Supply | ||||||
IQ | Quiescent current | High-speed mode: SCL = 3.4 MHz | 225 | 320 | µA | |
Fast mode: SCL = 400 kHz | 100 | |||||
Standard mode: SCL = 100 kHz | 60 | |||||
PO | Power dissipation | High-speed mode: SCL = 3.4 MHz | 675 | 1000 | µW | |
Fast mode: SCL = 400 kHz | 300 | |||||
Standard mode: SCL = 100 kHz | 180 | |||||
Power-down current with wrong address selected | High-speed mode: SCL = 3.4 MHz | 70 | µA | |||
Fast mode: SCL = 400 kHz | 25 | |||||
Standard mode: SCL = 100 kHz | 6 | |||||
IPD | Full power-down current | SCL pulled high, SDA pulled high | 400 | 3000 | nA |
PARAMETER | TEST CONDITIONS | MIN | TYP | MAX | UNIT | |
---|---|---|---|---|---|---|
Analog Input | ||||||
Ileak | Leakage current | ±1 | µA | |||
CI | 25 | pF | ||||
Overall Performance | ||||||
No missing codes | 12 | bits | ||||
Integral linearity error | ±0.5 | ±1 | LSB(1) | |||
Differential linearity error | ±0.5 | –1 to 2 | LSB | |||
Offset error | ±0.75 | ±2 | LSB | |||
Offset error match | ±0.2 | ±1 | LSB | |||
Gain error | ±0.75 | ±3 | LSB | |||
Gain error match | ±0.2 | ±1 | LSB | |||
Vn | Noise | RMS | 33 | µV | ||
PSRR | Power-supply ripple rejection | 82 | dB | |||
Sampling Dynamics | ||||||
Throughput frequency | High-speed mode: SCL = 3.4 MHz | 50 | kHz | |||
Fast mode: SCL = 400 kHz | 8 | |||||
Standard mode: SCL = 100 kHz | 2 | |||||
Conversion time | 6 | µs | ||||
AC Accuracy | ||||||
THD | Total harmonic distortion(2) | VIN = 25 VPP at 10 kHz | –82 | dB | ||
Signal-to-noise ratio | VIN = 25 VPP at 10 kHz | 72 | dB | |||
Signal-to-(noise + distortion) ratio | VIN = 25 VPP at 10 kHz | 71 | dB | |||
Spurious-free dynamic range | VIN = 25 VPP at 10 kHz | 86 | dB | |||
Channel-to-channel isolation | 120 | dB | ||||
Voltage Reference Output | ||||||
VO | Output voltage | 2.475 | 2.5 | 2.525 | V | |
Internal reference drift | 15 | ppm/°C | ||||
zo | Output impedance | Internal reference on | 110 | Ω | ||
Internal reference off | 1 | GΩ | ||||
IQ | Quiescent current | 850 | µA | |||
Voltage Reference Input | ||||||
rI | Input resistance | 1 | GΩ | |||
Current drain | 20 | µA | ||||
Digital Input and Output | ||||||
VOL | Low-level output voltage | Minimum 3-mA sink current | 0.4 | V | ||
IIH | High-level input current | VIH = +VDD + 0.5 V | 10 | µA | ||
IIL | Low-level input current | VIL = –0.3 V | –10 | µA | ||
Power Supply | ||||||
IQ | Quiescent current | High-speed mode: SCL = 3.4 MHz | 225 | 320 | µA | |
Fast mode: SCL = 400 kHz | 100 | |||||
Standard mode: SCL = 100 kHz | 60 | |||||
PO | Power dissipation | High-speed mode: SCL = 3.4 MHz | 675 | 1000 | µW | |
Fast mode: SCL = 400 kHz | 300 | |||||
Standard mode: SCL = 100 kHz | 180 | |||||
Power-down current with wrong address selected | High-speed mode: SCL = 3.4 MHz | 70 | µA | |||
Fast mode: SCL = 400 kHz | 25 | |||||
Standard mode: SCL = 100 kHz | 6 | |||||
IPD | Full power-down current | SCL pulled high, SDA pulled high | 400 | 3000 | nA |
PARAMETER | TEST CONDITIONS | MIN | TYP | MAX | UNIT | |
---|---|---|---|---|---|---|
Analog Input | ||||||
Ileak | Leakage current | ±1 | µA | |||
CI | 25 | pF | ||||
Overall Performance | ||||||
No missing codes | 12 | bits | ||||
Integral linearity error | ±1 | ±2 | LSB(1) | |||
Differential linearity error | ±1 | LSB | ||||
Offset error | ±1 | ±3 | LSB | |||
Offset error match | ±1.5 | LSB | ||||
Gain error | ±1 | ±3 | LSB | |||
Gain error match | ±1 | LSB | ||||
Vn | Noise | RMS | 33 | µV | ||
PSRR | Power-supply ripple rejection | 82 | dB | |||
Sampling Dynamics | ||||||
Throughput frequency | High-speed mode: SCL = 3.4 MHz | 50 | kHz | |||
Fast mode: SCL = 400 kHz | 8 | |||||
Standard mode: SCL = 100 kHz | 2 | |||||
Conversion time | 6 | µs | ||||
AC Accuracy | ||||||
THD | Total harmonic distortion(2) | VIN = 25 VPP at 10 kHz | –82 | dB | ||
Signal-to-noise ratio | VIN = 25 VPP at 10 kHz | 72 | dB | |||
Signal-to-(noise + distortion) ratio | VIN = 25 VPP at 10 kHz | 71 | dB | |||
Spurious-free dynamic range | VIN = 25 VPP at 10 kHz | 86 | dB | |||
Channel-to-channel isolation | 120 | dB | ||||
Voltage Reference Output | ||||||
VO | Output voltage | 2.475 | 2.5 | 2.525 | V | |
Internal reference drift | 15 | ppm/°C | ||||
zo | Output impedance | Internal reference on | 110 | Ω | ||
Internal reference off | 1 | GΩ | ||||
IQ | Quiescent current | 1300 | µA | |||
Voltage Reference Input | ||||||
rI | Input resistance | 1 | GΩ | |||
Current drain | 20 | µA | ||||
Digital Input and Output | ||||||
VOL | Low-level output voltage | Minimum 3-mA sink current | 0.4 | V | ||
IIH | High-level input current | VIH = +VDD + 0.5 V | 10 | µA | ||
IIL | Low-level input current | VIL = –0.3 V | –10 | µA | ||
Power Supply | ||||||
IQ | Quiescent current | High-speed mode: SCL = 3.4 MHz | 750 | 100 | µA | |
Fast mode: SCL = 400 kHz | 300 | |||||
Standard mode: SCL = 100 kHz | 150 | |||||
PO | Power dissipation | High-speed mode: SCL = 3.4 MHz | 3.75 | 5 | µW | |
Fast mode: SCL = 400 kHz | 1.5 | |||||
Standard mode: SCL = 100 kHz | 0.75 | |||||
Power-down current with wrong address selected | High-speed mode: SCL = 3.4 MHz | 400 | µA | |||
Fast mode: SCL = 400 kHz | 150 | |||||
Standard mode: SCL = 100 kHz | 35 | |||||
IPD | Full power-down current | SCL pulled high, SDA pulled high | 400 | 3000 | nA |
PARAMETER | TEST CONDITIONS | MIN | TYP | MAX | UNIT | |
---|---|---|---|---|---|---|
Analog Input | ||||||
Ileak | Leakage current | ±1 | µA | |||
CI | 25 | pF | ||||
Overall Performance | ||||||
No missing codes | 12 | bits | ||||
Integral linearity error | ±0.5 | ±1 | LSB(1) | |||
Differential linearity error | ±0.5 | –1 to 2 | LSB | |||
Offset error | ±0.75 | ±2 | LSB | |||
Offset error match | ±1 | LSB | ||||
Gain error | ±0.75 | ±2 | LSB | |||
Gain error match | ±1 | LSB | ||||
Vn | Noise | RMS | 33 | µV | ||
PSRR | Power-supply ripple rejection | 82 | dB | |||
Sampling Dynamics | ||||||
Throughput frequency | High-speed mode: SCL = 3.4 MHz | 50 | kHz | |||
Fast mode: SCL = 400 kHz | 8 | |||||
Standard mode: SCL = 100 kHz | 2 | |||||
Conversion time | 6 | µs | ||||
AC Accuracy | ||||||
THD | Total harmonic distortion(2) | VIN = 25 VPP at 10 kHz | –82 | dB | ||
Signal-to-noise ratio | VIN = 25 VPP at 10 kHz | 72 | dB | |||
Signal-to-(noise + distortion) ratio | VIN = 25 VPP at 10 kHz | 71 | dB | |||
Spurious-free dynamic range | VIN = 25 VPP at 10 kHz | 86 | dB | |||
Channel-to-channel isolation | 120 | dB | ||||
Voltage Reference Output | ||||||
VO | Output voltage | 2.475 | 2.5 | 2.525 | V | |
Internal reference drift | 15 | ppm/°C | ||||
zo | Output impedance | Internal reference on | 110 | Ω | ||
Internal reference off | 1 | GΩ | ||||
IQ | Quiescent current | 1300 | µA | |||
Voltage Reference Input | ||||||
rI | Input resistance | 1 | GΩ | |||
Current drain | 20 | µA | ||||
Digital Input and Output | ||||||
VOL | Low-level output voltage | Minimum 3-mA sink current | 0.4 | V | ||
IIH | High-level input current | VIH = +VDD + 0.5 V | 10 | µA | ||
IIL | Low-level input current | VIL = –0.3 V | –10 | µA | ||
Power Supply | ||||||
IQ | Quiescent current | High-speed mode: SCL = 3.4 MHz | 750 | 1000 | µA | |
Fast mode: SCL = 400 kHz | 300 | |||||
Standard mode: SCL = 100 kHz | 150 | |||||
PO | Power dissipation | High-speed mode: SCL = 3.4 MHz | 3.75 | 5 | µW | |
Fast mode: SCL = 400 kHz | 1.5 | |||||
Standard mode: SCL = 100 kHz | 0.75 | |||||
Power-down current with wrong address selected | High-speed mode: SCL = 3.4 MHz | 400 | µA | |||
Fast mode: SCL = 400 kHz | 150 | |||||
Standard mode: SCL = 100 kHz | 35 | |||||
IPD | Full power-down current | SCL pulled high, SDA pulled high | 400 | 3000 | nA |
PARAMETER | TEST CONDITIONS | MIN | MAX | UNIT | ||
---|---|---|---|---|---|---|
fSCL | SCL clock frequency | Standard mode | 100 | kHz | ||
Fast mode | 400 | |||||
High-speed mode | Cb = 100 pF max | 3.4 | MHz | |||
Cb = 400 pF max | 1.7 | |||||
tBUF | Bus free time between Stop and Start conditions | Standard mode | 4.7 | μs | ||
Fast mode | 1.3 | |||||
tHD; STA | Hold time (repeated) Start condition | Standard mode | 4 | μs | ||
Fast mode | 600 | ns | ||||
High-speed mode | 160 | |||||
tlow | Low period of the SCL clock | Standard mode | 4.7 | μs | ||
Fast mode | 1.3 | |||||
High-speed mode(3) | Cb = 100 pF max | 160 | ns | |||
Cb = 400 pF max | 320 | |||||
thigh | High period of the SCL clock | Standard mode | 4 | μs | ||
Fast mode | 600 | ns | ||||
High-speed mode(3) | Cb = 100 pF max | 60 | ||||
Cb = 400 pF max | 120 | |||||
tSU; STA | Setup time for a repeated Start condition | Standard mode | 4.7 | μs | ||
Fast mode | 600 | ns | ||||
High-speed mode | 160 | |||||
tSU; DAT | Data setup time | Standard mode | 250 | ns | ||
Fast mode | 100 | |||||
High-speed mode | 10 | |||||
tHD; DAT | Data hold time | Standard mode | 0 | 3.45 | μs | |
Fast mode | 0 | 0.9 | ||||
High-speed mode(3) (4) | Cb = 100 pF max | 0 | 82 | ns | ||
Cb = 400 pF max | 0 | 162 | ||||
trCL | Rise time of SCL signal | Standard mode | 1000 | ns | ||
Fast mode | 20 + 0.1Cb | 300 | ||||
High-speed mode(3) | Cb = 100 pF max | 10 | 40 | |||
Cb = 400 pF max | 20 | 80 | ||||
trCL1 | Rise time of SCL signal after a repeated Start condition and after an acknowledge bit | Standard mode | 1000 | ns | ||
Fast mode | 20 + 0.1Cb | 300 | ||||
High-speed mode(3) | Cb = 100 pF max | 10 | 80 | |||
Cb = 400 pF max | 20 | 160 | ||||
tfCL | Fall time of SCL signal | Standard mode | 300 | ns | ||
Fast mode | 20 + 0.1Cb | 300 | ||||
High-speed mode(3) | Cb = 100 pF max | 10 | 40 | |||
Cb = 400 pF max | 20 | 80 | ||||
trDA | Rise time of SDA signal | Standard mode | 1000 | ns | ||
Fast mode | 20 + 0.1Cb | 300 | ||||
High-speed mode(3) | Cb = 100 pF max | 10 | 80 | |||
Cb = 400 pF max | 20 | 160 | ||||
tfDA | Fall time of SDA signal | Standard mode | 300 | ns | ||
Fast mode | 20 + 0.1Cb | 300 | ||||
High-speed mode(3) | Cb = 100 pF max | 10 | 80 | |||
Cb = 400 pF max | 20 | 160 | ||||
tSU; STO | Setup time for Stop condition | Standard mode | 4 | μs | ||
Fast mode | 600 | ns | ||||
High-speed mode | 160 | |||||
Cb | Capacitive load for SDA or SCL | 400 | pF | |||
tSP | Pulse width of spike suppressed | Fast mode | 50 | ns | ||
High-speed mode | 10 | |||||
VnH | Noise margin at the high level for each connected device (including hysteresis) | 0.2 × VDD | V | |||
VnL | Noise margin at the low level for each connected device (including hysteresis) | 0.1 × VDD | V |
The ADS7828 is a classic Successive Approximation Register (SAR) ADC. The architecture is based on capacitive redistribution which inherently includes a sample-and-hold function. The converter is fabricated on a 0.6μ CMOS process.
The ADS7828 core is controlled by an internally generated free-running clock. When the ADS7828 is not performing conversions or being addressed, it keeps the ADC core powered off, and the internal clock does not operate.
When the converter enters the hold mode, the voltage on the selected CHx pin is captured on the internal capacitor array. The input current on the analog inputs depends on the conversion rate of the device. During the sample period, the source must charge the internal sampling capacitor (typically 25 pF). After the capacitor has been fully charged, there is no further input current. The amount of charge transfer from the analog source to the converter is a function of conversion rate.
The ADS7828 can operate with an internal 2.5-V reference or an external reference. If a 5-V supply is used, an external 5-V reference is required in order to provide full dynamic range for a 0 V to +VDD analog input. This external reference can be as low as 50 mV. When using a 2.7-V supply, the internal 2.5-V reference will provide full dynamic range for a 0 V to +VDD analog input.
As the reference voltage is reduced, the analog voltage weight of each digital output code is reduced. This is often referred to as the LSB (least significant bit) size and is equal to the reference voltage divided by 4096. This means that any offset or gain error inherent in the ADC will appear to increase, in terms of LSB size, as the reference voltage is reduced.
The noise inherent in the converter will also appear to increase with lower LSB size. With a 2.5-V reference, the internal noise of the converter typically contributes only 0.32 LSB peak-to-peak of potential error to the output code. When the external reference is 50 mV, the potential error contribution from the internal noise is 50 times larger—16 LSBs. The errors due to the internal noise are Gaussian in nature and can be reduced by averaging consecutive conversion results.
The ADS7828 supports the I2C serial bus and data transmission protocol, in all three defined modes: standard, fast, and high-speed. A device that sends data onto the bus is defined as a transmitter, and a device receiving data as a receiver. The device that controls the message is called a master. The devices that are controlled by the master are slaves. The bus must be controlled by a master device that generates the serial clock (SCL), controls the bus access, and generates the Start and Stop conditions. The ADS7828 operates as a slave on the I2C bus. Connections to the bus are made via the open-drain I/O lines SDA and SCL.
The following bus protocol has been defined (see Figure 14):
Accordingly, the following bus conditions have been defined:
Both data and clock lines remain high.
A change in the state of the data line, from high to low, while the clock is high, defines a Start condition.
A change in the state of the data line, from low to high, while the clock line is high, defines the Stop condition.
The state of the data line represents valid data, when, after a Start condition, the data line is stable for the duration of the high period of the clock signal. There is one clock pulse per bit of data.
Each data transfer is initiated with a Start condition and terminated with a Stop condition. The number of data bytes transferred between Start and Stop conditions is not limited and is determined by the master device. The information is transferred byte-wise and each receiver acknowledges with a ninth-bit.
Within the I2C bus specifications a standard mode (100-kHz clock rate), a fast mode (400-kHz clock rate), and a highspeed mode (3.4-MHz clock rate) are defined. The ADS7828 works in all three modes.
Each receiving device, when addressed, is obliged to generate an acknowledge after the reception of each byte. The master device must generate an extra clock pulse that is associated with this acknowledge bit.
A device that acknowledges must pull down the SDA line during the acknowledge clock pulse in such a way that the SDA line is stable low during the high period of the acknowledge clock pulse. Of course, setup and hold times must be taken into account. A master must signal an end of data to the slave by not generating an acknowledge bit on the last byte that has been clocked out of the slave. In this case, the slave must leave the data line high to enable the master to generate the Stop condition.
Figure 14 shows how data transfer is accomplished on the I2C bus. Depending upon the state of the R/W bit, two types of data transfer are possible:
The first byte transmitted by the master is the slave address. Next follows a number of data bytes. The slave returns an acknowledge bit after the slave address and each received byte.
The first byte, the slave address, is transmitted by the master. The slave then returns an acknowledge bit. Next, a number of data bytes are transmitted by the slave to the master. The master returns an acknowledge bit after all received bytes other than the last byte. At the end of the last received byte, a not-acknowledge is returned.
The master device generates all of the serial clock pulses and the Start and Stop conditions. A transfer is ended with a Stop condition or a repeated Start condition. Since a repeated Start condition is also the beginning of the next serial transfer, the bus will not be released.
The ADS7828 may operate in the following two modes:
Serial data and clock are received through SDA and SCL. After each byte is received, an acknowledge bit is transmitted. Start and Stop conditions are recognized as the beginning and end of a serial transfer. Address recognition is performed by hardware after reception of the slave address and direction bit.
The first byte (the slave address) is received and handled as in the slave receiver mode. However, in this mode the direction bit will indicate that the transfer direction is reversed. Serial data is transmitted on SDA by the ADS7828 while the serial clock is input on SCL. Start and Stop conditions are recognized as the beginning and end of a serial transfer.
The address byte is the first byte received following the Start condition from the master device (see Figure 15). The first five bits (MSBs) of the slave address are factory pre-set to 10010. The next two bits of the address byte are the device select bits, A1 and A0. Input pins (A1-A0) on the ADS7828 determine these two bits of the device address for a particular ADS7828. A maximum of four devices with the same pre-set code can therefore be connected on the same bus at one time.
MSB | 6 | 5 | 4 | 3 | 2 | 1 | LSB |
1 | 0 | 0 | 1 | 0 | A1 | A0 | R/W |
The A1 and A0 address inputs can be connected to VDD or digital ground. The device address is set by the state of these pins upon power-up.
The last bit of the address byte (R/W) defines the operation to be performed. When set to a 1, a read operation is selected; when set to a 0, a write operation is selected. Following the Start condition, the ADS7828 monitors the SDA bus, checking the device type identifier being transmitted. Upon receiving the 10010 code, the appropriate device select bits, and the R/W bit, the slave device outputs an acknowledge signal on the SDA line.
The operating mode is determined by a command byte (see Figure 16).
MSB | 6 | 5 | 4 | 3 | 2 | 1 | LSB |
SD | C2 | C1 | C0 | PD1 | PD0 | X | X |
SD: Single-ended or differential inputs
0 = Differential inputs
1 = Single-ended inputs
C2 to C0: Channel selections (see Table 1)
PD1, PD0: Power-down selection (see Table 2)
X: Unused
COMMAND BYTE INPUTS | CHANNEL SELECTIONS | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
SD | C2 | C1 | C0 | CH0 | CH1 | CH2 | CH3 | CH4 | CH5 | CH6 | CH7 | COM |
0 | 0 | 0 | 0 | +IN | –IN | — | — | — | — | — | — | — |
0 | 0 | 0 | 1 | — | — | +IN | –IN | — | — | — | — | — |
0 | 0 | 1 | 0 | — | — | — | — | +IN | –IN | — | — | — |
0 | 0 | 1 | 1 | — | — | — | — | — | — | +IN | –IN | — |
0 | 1 | 0 | 0 | –IN | +IN | — | — | — | — | — | — | — |
0 | 1 | 0 | 1 | — | — | –IN | +IN | — | — | — | — | — |
0 | 1 | 1 | 0 | — | — | — | — | –IN | +IN | — | — | — |
0 | 1 | 1 | 1 | — | — | — | — | — | — | –IN | +IN | — |
1 | 0 | 0 | 0 | +IN | — | — | — | — | — | — | — | –IN |
1 | 0 | 0 | 1 | — | — | +IN | — | — | — | — | — | –IN |
1 | 0 | 1 | 0 | — | — | — | — | +IN | — | — | — | –IN |
1 | 0 | 1 | 1 | — | — | — | — | — | — | +IN | — | –IN |
1 | 1 | 0 | 0 | — | +IN | — | — | — | — | — | — | –IN |
1 | 1 | 0 | 1 | — | — | — | +IN | — | — | — | — | –IN |
1 | 1 | 1 | 0 | — | — | — | — | — | +IN | — | — | –IN |
1 | 1 | 1 | 1 | — | — | — | — | — | — | — | +IN | –IN |
PD1 | PD0 | DESCRIPTION |
---|---|---|
0 | 0 | Power down between ADC conversions |
0 | 1 | Internal reference off and ADC on |
1 | 0 | Internal reference on and ADC off |
1 | 1 | Internal reference on and ADC on |
Provided the master has write-addressed it, the ADS7828 turns on the ADC section and begins conversions when it receives bit 4 of the command byte shown in Figure 16. If the command byte is correct, the ADS7828 returns an ACK condition.
Data can be read from the ADS7828 by read addressing the part (LSB of address byte set to 1) and receiving the transmitted bytes. Converted data can be read from the ADS7828 only after a conversion has been initiated as described in the preceding section.
Each 12-bit data word is returned in two bytes (see Figure 17), where D11 is the MSB of the data word, and D0 is the LSB. Byte 0 is sent first, followed by byte 1.
MSB | 6 | 5 | 4 | 3 | 2 | 1 | LSB | |
Byte 0 | 0 | 0 | 0 | 0 | D11 | D10 | D9 | D8 |
Byte 1 | D7 | D6 | D5 | D4 | D3 | D2 | D1 | D0 |
Figure 18 shows the interaction between the master and the slave ADS7828 in fast or standard (F/S) mode. At the end of reading conversion data, the ADS7828 can be issued a repeated Start condition by the master to secure bus operation for subsequent conversions of the ADC. This would be the most efficient way to perform continuous conversions.
High Speed (HS) mode is fast enough that codes can be read out one at a time. In HS mode, there is not enough time for a single conversion to complete between the reception of a repeated Start condition and the read-addressing byte, so the ADS7828 stretches the clock after the read-addressing byte has been fully received, holding it low until the conversion is complete.
See Figure 19 for a typical read sequence for HS mode. Included in the read sequence is the shift from F/S to HS modes. It may be desirable to remain in HS mode after reading a conversion; to do this, issue a repeated Start instead of a Stop at the end of the read sequence, since a Stop causes the part to return to F/S mode.
The internal reference defaults to off when the ADS7828 power is on. To turn the internal reference on or off, see Table 2. If the reference (internal or external) is constantly turned on and off, a proper amount of settling time must be added before a normal conversion cycle can be started. The exact amount of settling time needed varies depending on the configuration.
See Figure 20 for an example of the proper internal reference turn-on sequence before issuing the typical read sequences required for the F/S mode when an internal reference is used.
When using an internal reference, there are three things that must be done:
The example in Figure 20 can be generalized for an HS mode conversion cycle by changing the timing of the conversion cycle. If using an external reference, PD1 must be set to 0, and the external reference must be settled. The typical sequence in Figure 18 or Figure 19 can then be used.
NOTE
Information in the following applications sections is not part of the TI component specification, and TI does not warrant its accuracy or completeness. TI’s customers are responsible for determining suitability of components for their purposes. Customers should validate and test their design implementation to confirm system functionality.
The following sections give example circuits and suggestions for using the ADS7828-Q1 device in various situations.
For many applications, connecting the ADS7828-Q1 device is simple. Figure 21 shows a basic connection diagram for the ADS7828-Q1 device.
The fully differential voltage input of the ADS7828-Q1 device is ideal for connection to differential sources with moderately low source impedance, such as thermocouples and thermistors. Although the ADS7828-Q1 device can read bipolar differential signals, they cannot accept negative voltages on either input. It may be helpful to think of the ADS7828-Q1 positive voltage input as noninverting, and of the negative input as inverting.
When the ADS7828-Q1 device converts data, it draws current in short spikes. The 0.1-μF bypass capacitor supplies the momentary bursts of extra current needed from the supply.
The ADS7828-Q1 device interfaces directly to standard mode, fast mode, and high-speed mode I2C controllers. Any microcontroller I2C peripheral, including master-only and non-multiple-master I2C peripherals, can operate with the ADS7828-Q1 device. The ADS7828-Q1 device does not perform clock-stretching (that is, it never pulls the clock line low), so it is not necessary to provide for this function unless other clock-stretching devices are on the same I2C bus.
Pullup resistors are required on both the SDA and SCL lines because I2C bus drivers are open-drain. The size of these resistors depends on the bus operating speed and capacitance of the bus lines. Higher-value resistors consume less power, but increase the transition times on the bus, limiting the bus speed. Lower-value resistors allow higher speed at the expense of higher power consumption. Long bus lines have higher capacitance and require smaller pullup resistors to compensate. The resistors should not be too small; if they are, the bus drivers may not be able to pull the bus lines low.
Connecting multiple ADS7828-Q1 devices to a single bus is simple. Using the address pin, the ADS7828-Q1 device can be set to one of four different I2C addresses. Figure 22 shows an example using three ADS7828-Q1 devices. Up to four ADS7828-Q1 devices (using different address pin configurations) can be connected to a single bus.
Only one set of pullup resistors is require per bus. The pullup resistor values can be lowered slightly to compensate for the additional bus capacitance presented by multiple devices and increased line length.
Most microcontrollers have programmable input-output (I/O) pins that can be set in software to act as inputs or outputs. If an I2C controller is not available, the ADS7828-Q1 device can be connected to GPIO pins and the I2C bus protocol simulated, or bit-banged, in software. Figure 23 shows an example of this configuration for a single ADS7828-Q1 device.
Bit-banging the I2C with GPIO pins occurs by setting the GPIO line to 0 and toggling it between input and output modes to apply the proper bus states. To drive the line low, the pin is set to output 0; to let the line go high, the pin is set to input. When the pin is set to input, the state of the pin can be read; if another device is pulling the line low, this configuration reads as a 0 in the port input register.
Note that no pullup resistor is shown on the SCL line. In this simple case, the resistor is not needed; the microcontroller can simply leave the line on output, and set it to 1 or 0 as appropriate. This action is possible because the ADS7828-Q1 never drives the clock line low. This technique can also be used with multiple devices, and has the advantage of lower current consumption as a result of the absence of a resistive pullup.
If there are any devices on the bus that may drive the clock lines low, this method should not be used; the SCL line should be high-Z or 0 and a pullup resistor provided as usual.
Some microcontrollers have selectable strong pullup circuits built into the GPIO ports. In some cases, these circuits can be switched on and used in place of an external pullup resistor. Weak pullups are also provided on some microcontrollers, but usually these are too weak for I2C communication. If there is any doubt about the matter, test the circuit before committing it to production.
Although the ADS7828-Q1 device has four differential inputs, the device can easily measure eight single-ended signals. Figure 24 shows a single-ended connection scheme. The ADS7828-Q1 device is configured for single-ended measurement by configuring the MUX to measure each channel with respect to ground. Data are then read out of one input based on the selection on the configuration register. The single-ended signal can range from 0 V to the supply voltage. The ADS7828-Q1 device loses no linearity anywhere within the input range. Negative voltages cannot be applied to this circuit because the ADS7828-Q1 device can only accept positive voltages.
The ADS7828-Q1 input range is bipolar differential with respect to the reference. The single-ended circuit shown in Figure 24 covers only half the ADS7828-Q1 input scale because it does not produce differentially negative inputs; therefore, one bit of resolution is lost.
For this design example, the ADS7828-Q1 device is paired with a current shunt monitor. Bi-directional current monitoring is required when there is both charging and discharging. The requirements for this example are as follows:
The INA214-Q1 device was selected because of the low offset and zero drift of the device. The ADS7828-Q1 device has a low noise floor, so it can support more of the gain. For this reason, the lowest gain option was selected from the INA21x-Q1 family. The INA214-Q1 device has a gain of 50.
First, determine the full-scale differential range into the ADS7828-Q1 device.
Because the ADS7828-Q1 device has a differential input, connect the reference voltage of the INA214-Q1 device to the negative input terminal of the ADS7828-Q1 device. Because bi-directional current sensing is required in this application, VREF must be chosen so that:
where
A 3.3-V reference is used for this example. Because the ADS7828-Q1 device is a differential input ADC, a resistive divider can be used to generate the reference voltage because impedance effects on the INA214-Q1 device is canceled out by the ADS7828-Q1 device.