AD7851
Writing to the AD7851
For accessing the on-chip registers, it is necessary to write to the
part. To enable Serial Interface Mode 1, the user must also write
to the part. Figures 41, 42, and 43 shows how to configure the
AD7851 for each of the different serial interface modes. The
continuous loops on all diagrams indicate the sequence for more
than one conversion. The options of using a hardware (pulsing
the CONVST pin) or software (setting the CONVST bit to 1)
conversion start, and reading/writing during or after conversion
are shown in Figures 41 and 42. If the CONVST pin is never
used, then it should be tied to DVDD permanently. Where refer-
ence is made to the BUSY bit equal to a Logic 0, to indicate the
end of conversion, the user in this case would poll the BUSY bit
in the status register.
Interface Modes 2 and 3 Configuration
Figure 41 shows the flowchart for configuring the part in Inter-
face Modes 2 and 3. For these interface modes, the read and
write operations take place simultaneously via the serial port.
Writing all 0s ensures that no valid data is written to any of the
registers. When using the software conversion start and transfer-
ring data during conversion, the Figure 41 note must be obeyed.
START
POWER ON, APPLY CLKIN SIGNAL,
WAIT FOR AUTOMATIC CALIBRATION
SERIAL
INTERFACE
MODE
?
2, 3
INITIATE
CONVERSION
IN
SOFTWARE
?
YES
NO
PULSE CONVST PIN
NOTE: WHEN USING THE SOFTWARE CONVERSION START AND
TRANSFERRING DATA DURING CONVERSION, THE USER MUST ENSURE
THE CONTROL REGISTER WRITE OPERATION EXTENDS BEYOND THE
FALLING EDGE OF BUSY. THE FALLING EDGE OF BUSY RESETS THE
CONVST BIT TO 0 AND ONLY AFTER THIS TIME CAN IT BE REPROGRAMMED
TO 1 TO START THE NEXT CONVERSION.
TRANSFER
DATA DURING
CONVERSION
YES
YES
WAIT APPROXIMATELY 200ns
AFTER CONVST RISING EDGE
TRANSFER
DATA
DURING
CONVERSION
?
NO
WAIT FOR BUSY SIGNAL TO GO
LOW OR WAIT FOR BUSY BIT = 0
NO
APPLY SYNC (IF REQUIRED), SCLK, WRITE TO CONTROL
REGISTER SETTING CONVST BIT TO 1, READ PREVIOUS
CONVERSION RESULT ON DOUT PIN (SEE NOTE)
APPLY SYNC (IF REQUIRED), SCLK, WRITE TO CONTROL
REGISTER SETTING CONVST BIT TO 1, READ CURRENT
CONVERSION RESULT ON DOUT PIN
APPLY SYNC (IF REQUIRED),
SCLK, READ PREVIOUS CONVERSION
RESULT ON DOUT PIN,
AND WRITE ALL 0s ON DIN PIN
WAIT FOR BUSY SIGNAL TO GO LOW
OR WAIT FOR BUSY BIT = 0
APPLY SYNC (IF REQUIRED), SCLK, READ
CURRENT CONVERSION RESULT ON DOUT PIN,
AND WRITE ALL 0s ON DIN PIN
Figure 41. Flowchart for Setting Up, Reading, and Writing in Interface Modes 2 and 3
REV. B
–29–