AD7730/AD7730L
–37–
CONFIGURING THE AD7730
The AD7730 contains twelve on-chip registers that can be accessed via the serial interface. Figure 5 and Figure 6 have outlined a
flowchart for the reading and writing of these registers. Table XIX and Table XX outline sample pseudo-code for some commonly
used routines. The required operating conditions will dictate the values loaded to the Mode, Filter and DAC Registers. The values
given here are for example purposes only.
Table XIX. Pseudo-Code for Initiating a Self-Calibration after Power-On/Reset
Write 03 Hex to Serial Port
1
/* Writes to Communications Register Setting Next Operation as Write to
Filter Register*/
Write 800010 Hex to Serial Port
1
/* Writes to Filter Register Setting a 50 Hz Output Rate in CHOP Mode*/
Write 04 Hex to Serial Port
1
/* Writes to Communications Register Setting Next Operation as Write to
DAC Register*/
Write 23 Hex to Serial Port
1
/* Writes to DAC Register Setting a Subtraction Value of 7.5 mV (5 V Refer-
ence) on the TARE DAC*/
Write 02 Hex to Serial Port /* Writes to Communications Register Setting Next Operation as Write to
Mode Register*/
Write B180 Hex to Serial Port /* Writes to Mode Register Initiating Internal Full-Scale Calibration for 0 mV
to +10 mV Input Range*/
Wait for RDY Low /* Wait for RDY pin to go low to indicate end of calibration cycle*/
Write 02 Hex to Serial Port /* Writes to Communications Register Setting Next Operation as Write to
Mode Register*/
Write 9180 Hex to Serial Port /* Writes to Mode Register Initiating Internal Zero-Scale Calibration for
0 mV to +10 mV Input Range*/
Wait for RDY Low /* Wait for RDY pin to go low to indicate end of calibration cycle*/
/* The part has now completed self-calibration and is in idle mode*/
1
This operation is not necessary if the default values of the Filter Register or the DAC Register are the values used in the application.
Table XX. Pseudo-Code for Setting Up AD7730 for Continuous Conversion and Continuous Read Operation
Write 02 Hex to Serial Port /* Writes to Communications Register Setting Next Operation as Write to
Mode Register*/
Write 2180 Hex to Serial Port /* Writes to Mode Register Starting Continuous Conversions for 0 mV to
+10 mV Input Range*/
Write 21 Hex to Serial Port /* Writes to Communications Register Setting Next Operation as Continuous
Read From Data Register*/
Set DIN Line of AD7730 Low /* Ensures Part is not Reset While in Continuous Read Mode*/
READ_DATA: Wait for RDY Low /* Wait for RDY pin to go low to Indicate Output Update*/
Read 24-Bit Data From Serial Port /* Read Conversion Result from AD7730's Data Register*/
Loop to READ_DATA Until All Data Gathered
Write 30 Hex to Serial Port /* Ends Continuous Read Operation and Places Part in Mode Where It
Expects Write to Communications Register*/
REV. B
AD7730/AD7730L
–38–
MICROCOMPUTER/MICROPROCESSOR INTERFACING
The AD7730’s flexible serial interface allows for easy interface
to most microcomputers and microprocessors. The pseudo-code
of Table XIX and Table XX outline typical sequences for inter-
facing a microcontroller or microprocessor to the AD7730.
Figures 20, 21 and 22 show some typical interface circuits.
The serial interface on the AD7730 has the capability of operat-
ing from just three wires and is compatible with SPI interface
protocols. The three-wire operation makes the part ideal for
isolated systems where minimizing the number of interface lines
minimizes the number of opto-isolators required in the system.
Register lengths on the AD7730 vary from 8 to 16 to 24 bits.
The 8-bit serial ports of most microcontrollers can handle
communication with these registers as either one, two or three
8-bit transfers. DSP processors and microprocessors generally
transfer 16 bits of data in a serial data operation. Some of these
processors, such as the ADSP-2105, have the facility to program
the amount of cycles in a serial transfer. This allows the user to
tailor the number of bits in any transfer to match the register
length of the required register in the AD7730. In any case,
writing 32 bits of data to a 24-bit register is not an issue provided
the final eight bits of the word are all 1s. This is because the
part returns to the Communications Register following a write
operation.
Even though some of the registers on the AD7730 are only eight
bits in length, communicating with two of these registers in
successive write operations can be handled as a single 16-bit
data transfer if required. For example, if the DAC Register is to
be updated, the processor must first write to the Communica-
tions Register (saying that the next operation is a write to the
Mode Register) and then write eight bits to the DAC Register.
This can all be done in a single 16-bit transfer, if required, be-
cause once the eight serial clocks of the write operation to the
Communications Register have been completed, the part imme-
diately sets itself up for a write operation to the DAC Register.
AD7730 to 68HC11 Interface
Figure 20 shows an interface between the AD7730 and the
68HC11 microcontroller. The diagram shows the minimum
(three-wire) interface with CS on the AD7730 hardwired low.
In this scheme, the RDY bit of the Status Register is monitored
to determine when the Data Register is updated. An alternative
scheme, which increases the number of interface lines to four, is
to monitor the RDY output line from the AD7730. The moni-
toring of the RDY line can be done in two ways. First, RDY can
be connected to one of the 68HC11’s port bits (such as PC0),
which is configured as an input. This port bit is then polled to
determine the status of RDY. The second scheme is to use an
interrupt driven system, in which case the RDY output is con-
nected to the IRQ input of the 68HC11. For interfaces which
require control of the CS input on the AD7730, one of the port
bits of the 68HC11 (such as PC1), which is configured as an
output, can be used to drive the CS input.
The 68HC11 is configured in the master mode with its CPOL
bit set to a logic zero and its CPHA bit set to a logic one. When
the 68HC11 is configured like this, its SCLK line idles low
between data transfers. Therefore, the POL input of the AD7730
should be hardwired low. For systems where it is preferable that
the SCLK idle high, the CPOL bit of the 68HC11 should be set
to a Logic 1 and the POL input of the AD7730 should be hard-
wired to a logic high.
The AD7730 is not capable of full duplex operation. If the
AD7730 is configured for a write operation, no data appears on
the DATA OUT lines even when the SCLK input is active.
When the AD7730 is configured for continuous read operation,
data presented to the part on the DATA IN line is monitored to
determine when to exit the continuous read mode.
SYNC
RESET
AD7730
SCLK
DATA OUT
DATA IN
CS
POL
SS
SCK
MISO
MOSI
68HC11
DV
DD
DV
DD
Figure 20. AD7730 to 68HC11 Interface
AD7730 to 8051 Interface
An interface circuit between the AD7730 and the 8XC51 mi-
crocontroller is shown in Figure 21. The diagram shows the
minimum number of interface connections with CS on the
AD7730 hardwired low. In the case of the 8XC51 interface, the
minimum number of interconnects is just two. In this scheme,
the RDY bit of the Status Register is monitored to determine
when the Data Register is updated. The alternative scheme,
which increases the number of interface lines to three, is to
monitor the RDY output line from the AD7730. The monitor-
ing of the RDY line can be done in two ways. First, RDY can be
connected to one of the 8XC51’s port bits (such as P1.0), which
is configured as an input. This port bit is then polled to deter-
mine the status of RDY. The second scheme is to use an inter-
rupt driven system, in which case the RDY output is connected
to the INT1 input of the 8XC51. For interfaces that require
control of the CS input on the AD7730, one of the port bits of
the 8XC51 (such as P1.1), which is configured as an output,
can be used to drive the CS input.
The 8XC51 is configured in its Mode 0 serial interface mode.
Its serial interface contains a single data line. As a result, the
DATA OUT and DATA IN pins of the AD7730 should be
connected together. This means that the AD7730 must not be
REV. B
AD7730/AD7730L
–39–
configured for continuous read operation when interfacing to
the 8XC51. The serial clock on the 8XC51 idles high between data
transfers and therefore the POL input of the AD7730 should be
hardwired to a logic high. The 8XC51 outputs the LSB first in a
write operation while the AD7730 expects the MSB first so the
data to be transmitted has to be rearranged before being written
to the output serial register. Similarly, the AD7730 outputs the
MSB first during a read operation while the 8XC51 expects the
LSB first. Therefore, the data read into the serial buffer needs to
be rearranged before the correct data word from the AD7730 is
available in the accumulator.
SYNC
RESET
AD7730
POL
DATA OUT
DATA IN
SCLK
CS
P3.0
P3.1
8XC51
DV
DD
Figure 21. AD7730 to 8XC51 Interface
AD7730 to ADSP-2103/ADSP-2105 Interface
Figure 22 shows an interface between the AD7730 and the
ADSP-2105 DSP processor. In the interface shown, the RDY
bit of the Status Register is again monitored to determine when
the Data Register is updated. The alternative scheme is to use
an interrupt driven system, in which case the RDY output is
connected to the IRQ2 input of the ADSP-2105. The RFS and
TFS pins of the ADSP-2105 are configured as active low out-
puts and the ADSP-2105 serial clock line, SCLK, is also config-
ured as an output. The POL pin of the AD7730 is hardwired
low. Because the SCLK from the ADSP-2105 is a continuous
clock, the CS of the AD7730 must be used to gate off the clock
once the transfer is complete. The CS for the AD7730 is active
when either the RFS or TFS outputs from the ADSP-2105 are
active. The serial clock rate on the ADSP-2105 should be lim-
ited to 3 MHz to ensure correct operation with the AD7730.
SYNC
RESET
AD7730
DATA OUT
DATA IN
SCLK
CS
DR
SCLK
ADSP-2105
DV
DD
RFS
TFS
DT
POL
Figure 22. AD7730 to ADSP-2105 Interface
REV. B

AD7730BRUZ

Mfr. #:
Manufacturer:
Analog Devices Inc.
Description:
Analog to Digital Converters - ADC CMOS 24-Bit Bridge Transducer
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union