AD7124-4 Data Sheet
Rev. D | Page 50 of 93
Other diagnostics remain active if enabled when the ADC is in
standby mode. Diagnostics can be enabled or disabled while in
standby mode. However, any diagnostics that require the master
clock (reference detect, undervoltage/overvoltage detection,
LDO trip tests, memory map CRC, and MCLK counter) must
be enabled when the ADC is in continuous conversion mode or
idle mode; these diagnostics do not function if enabled in
standby mode.
The standby current is typically 15 µA when the LDOs only are
enabled. If functions such as the bias voltage generator remain
active in standby mode, the current increases by 36 µA typically.
If the internal oscillator remains active in standby mode, the
current increases by 22 µA typically. When exiting standby
mode, the AD7124-4 requires 130 MCLK cycles to power up
and settle. The internal oscillator, if disabled in standby mode,
requires an additional 40 µs to power up and settle. If an external
master clock is being used, ensure that it is active before issuing
the command to exit standby mode. Do not write to the ADC_
CONTROL register again until the ADC has powered up and
settled.
In power-down mode, all blocks are powered down, including
the LDOs. All registers lose their contents, and the digital outputs
P1 and P2 are placed in tristate. To prevent accidental entry to
power-down mode, the ADC must first be placed into standby
mode. If an external master clock is being used, keep it active
until the device is placed in power-down mode. Exiting power-
down mode requires 64 SCLK cycles with CS = 0 and DIN = 1,
that is, a serial interface reset. The AD7124-4 requires 2 ms
typically to power up and settle. The POR_FLAG in the status
register can be monitored to determine the end of the power
up/settling period. After this time, the user can access the on-chip
registers. The power-down current is 2 µA typically.
DIGITAL INTERFACE
The programmable functions of the AD7124-4 are controlled
using a set of on-chip registers. Data is written to these registers
via the serial interface. Read access to the on-chip registers is
also provided by this interface. All communications with the
device must start with a write to the communications register.
After power-on or reset, the device expects a write to its
communications register. The data written to this register
determines whether the next operation is a read operation or a
write operation, and determines to which register this read or
write operation occurs. Therefore, write access to any of the
other registers on the devices begins with a write operation to
the communications register, followed by a write to the selected
register. A read operation from any other register (except when
continuous read mode is selected) starts with a write to the
communications register, followed by a read operation from the
selected register.
The serial interface of the AD7124-4 consists of four signals: CS,
DIN, SCLK, and DOUT/RDY. The DIN line transfers data into
the on-chip registers, whereas DOUT/RDY accesses data from
the on-chip registers. SCLK is the serial clock input for the
device, and all data transfers (either on DIN or DOUT/RDY)
occur with respect to the SCLK signal. The DOUT/RDY pin
also operates as a data ready signal; the line goes low when a
new data-word is available in the output register. It is reset high
when a read operation from the data register is complete. It also
goes high before the data register updates to indicate when not
to read from the device, to ensure that a data read is not attempted
while the register is being updated. CS is used to select a device.
It can decode the AD7124-4 in systems where several components
are connected to the serial bus.
Figure 3 and Figure 4 show timing diagrams for interfacing to the
AD7124-4 with CS decoding the devices. Figure 3 shows the
timing for a read operation from the output shift register of the
AD7124-4. Figure 4 shows the timing for a write operation to
the input shift register. A delay is required between consecutive
SPI communications. Figure 5 shows the delay required between
SPI read/write operations. It is possible to read the same word
from the data register several times, even though the DOUT/RDY
line returns high after the first read operation. However, care
must be taken to ensure that the read operations are complete
before the next output update occurs. In continuous read mode,
the data register can be read only once.
The serial interface can operate in 3-wire mode by tying CS low.
In this case, the SCLK, DIN, and DOUT/RDY lines communicate
with the AD7124-4. The end of the conversion can be monitored
using the RDY bit in the status register. This scheme is suitable
for interfacing to microcontrollers. If CS is required as a decoding
signal, it can be generated from a port pin. For microcontroller
interfaces, it is recommended that SCLK idle high between data
transfers.
The AD7124-4 can be operated with CS being used as a frame
synchronization signal. This scheme is useful for DSP interfaces.
In this case, the first bit (MSB) is effectively clocked out by CS,
because CS normally occurs after the falling edge of SCLK in
DSPs. SCLK can continue to run between data transfers,
provided the timing numbers are obeyed.
CS must be used to frame read and write operations and the
CS_EN bit in the ADC_CONTROL register must be set when
the diagnostics SPI_READ_ERR, SPI_WRITE_ERR, or
SPI_SCLK_CNT_ERR are enabled.
The serial interface can be reset by writing a series of 1s on the
DIN input. See the Reset section for more details. Reset returns
the interface to the state in which it is expecting a write to the
communications register
The AD7124-4 can be configured to continuously convert or
perform a single conversion (see Figure 82 through Figure 84).
Single Conversion Mode
In single conversion mode, the AD7124-4 performs a single
conversion and is placed in standby mode after the conversion
is complete. If a master clock is present (external master clock
or the internal oscillator is enabled), DOUT/RDY goes low to