-
2022-09-23 11:12:17
AD5380 is a 40-channel, 3 V/5 V, single-supply, 14-bit, DENSADAC
feature
Guaranteed monotonic; input error: ±4 LSB max; on-chip 1.25 V/2.5 V, 10 ppm/°C reference; temperature range: –40°C to +85°C; rail-to-rail output amplifier powered down; package type: 100 -lead LQFP (14 mm x 14 mm); user interface; parallel; serial (SPI®-, QSPI 8482 ;-, MICROWIRE™-, DSP compatible with data readback); I2C® compatible; rugged 6.5K Volt HBM and 2 kV FICDM ESD ratings.
Comprehensive function
Channel monitor; synchronous output update via LDAC; ability to clear user-programmable code; amplifier boost mode to optimize slew rate; user-programmable offset and gain adjustment; toggle mode to enable square wave generation; thermal monitor.
application
Variable Optical Attenuators (VOA); Level Setting (ATE); Optical Micro-Electro-Mechanical Systems (MEMS); Control Systems; Instrumentation.
General Instructions
The AD5380 is a complete, single-supply, 40-channel, 14-bit DENSADAC® available in a 100-lead LQFP package. All 40 channels have an on-chip output amplifier with rail-to-rail operation. The AD5380 includes programmable internal 1.25 V/2.5 V, 10 ppm/°C reference, on-chip channel monitoring that multiplexes the analog output to a common MON_OUT pin for external monitoring, and a Output amplifier boost mode. The AD5380 includes a double-buffered parallel interface with 20 ns-WR pulse width, a SPI-, QSPI-, -MICROWIRE, -DSP compatible serial interface (interface speeds over 30 MHz), and a 400 kHz data transfer rate capable IC compatible interface.
The input register followed by the DAC register provides double buffering, allowing the DAC output to update the input independently or simultaneously using the LDAC.
Each channel has a programmable gain and offset adjustment register, allowing the user to fully calibrate any DAC channel. Power consumption is typically 0.25mA/channel with boost off.
the term
Relative accuracy
Relative accuracy or endpoint linearity is a measure of the maximum deviation of a straight line through the endpoints of the DAC transfer function. Measured after adjustment for zero-scale error and full-scale error, expressed in LSB.
Differential nonlinearity
Differential nonlinearity is the difference between the measured variation and the ideal 1lsb variation of any two adjacent codes. A specified differential nonlinearity of 1 LSB maximum guarantees monotonicity.
Zero scale error
Zero-scale error is the error in the DAC output voltage when all 0s are loaded into the DAC register. Ideally, load all 0s to the DAC, m = all 1s, c = 2n – 1;
VOUT(Zero-Scale) = 0 V
Zero-scale error is a measure of the difference between VOUT (actual) and VOUT (ideal) in mV. This is mainly due to the offset of the output amplifier.
offset error
Offset error is the difference between VOUT (actual) and VOUT (ideal) in the linear region of the measured transfer function, in mV. Offset error is measured on the AD5380-5 and AD5380-3 and code 32 is loaded into the DAC register.
gain error
Gain error is specified over the linear range of the output range, between VOUT=10 mV and VOUT=AVDD-50 mV. It is the slope deviation of the DAC transfer characteristic from ideal, expressed in %FSR at no load on the DAC output.
DC crosstalk
This is the DC change in the output level of a DAC at midscale in response to a full-scale code (all 0s to all 1s and vice versa) and output changes of all other DACs. Expressed in LSB.
DC output impedance
This is the effective output source resistance. It is mainly based on packaged lead resistors.
Voltage stabilization time
This is the time it takes for the output of the DAC to settle to a specified level for a 1/4 to 3/4 full-scale input change, measured from a busy rising edge.
Digital-to-analog fault energy
This is the energy injected into the analog output during major code transitions. It is designated as a fault region in nV-s. Measured by toggling the DAC register data between 0x1FF and 0x 200 0.
DAC-to-DAC crosstalk
DAC-to-DAC crosstalk is a glitch pulse in the output of one DAC due to a digital change and subsequent analog output change of another DAC. Victim channel is loaded with midscale. DAC-to-DAC crosstalk is specified in nV-s.
digital crosstalk
A glitch pulse transmitted to the output of one converter due to a change in the DAC register code of the other converter is defined as digital crosstalk and is specified in nV-s.
digital feedthrough
When the device is not selected, high frequency logic activity on the device's digital inputs can capacitively couple across and through the device to appear as noise on the VOUT pin. It can also be connected along the power and ground wires. This noise is digital feedthrough.
Output Noise Spectral Density
This is random noise generated inside the measurement. Random noise is characterized by its spectral density (voltage per √Hz). It is measured by loading all DACs to midscale and measuring the noise at the output. Measured in nV/√Hz in a 1 Hz bandwidth of 10 kHz.
Typical performance characteristics
Function description
DAC Architecture - Overview
The AD5380 is a complete, single-supply, 40-channel voltage output DAC that provides 14-bit resolution. The part is available in a 100-lead LQFP package and has parallel and serial interfaces. The Product includes an internal, software-selectable, 1.25 V/2.5 V, 10 ppm/°C reference that can be used to drive buffered reference inputs; alternatively, these inputs can be driven with an external reference. Internal/external reference selection is made through the CR10 bit in the control register; if the internal reference is a rail-to-rail output and capable of driving 5 kΩ in parallel with a 200 pF load, CR12 selects the reference amplitude.
The structure of a single DAC channel consists of a 14-bit resistor string DAC and an output buffer amplifier operating in a gain of 2. This resistor string structure ensures the monotonicity of the DAC. The 14-bit binary digit code loaded into the DAC register determines at which node on the string the voltage is tapped before being input to the output amplifier. Each channel on these devices contains independent offset and gain control registers, allowing the user to digitally fine-tune the offset and gain. These registers enable the user to calibrate errors throughout the signal chain, including the DAC, using the internal m and c registers, which hold the correction factors. All channels are double-buffered, allowing simultaneous updates of all channels using the LDAC pin. Figure 27 shows a block diagram of a single channel on the AD5380. The digital input transfer function of each DAC can be expressed as:
in:
x2 is the data word loaded into the resistor string DAC.
x1 is the 14-bit data word written to the DAC input register. m is the gain factor (default 0x3FFE on AD5380).
The gain factor is written to the 13 most significant bits (DB13 to DB1), with the LSB (DB0) being zero.
n=DAC resolution (n=14 for AD5380). c is a 14-bit offset coefficient (default 0x2000).
The complete transfer function of these devices can be expressed as Guaranteed = 2×V×x2/2 x2 is the data word loaded into the resistor string DAC. V is the internal reference voltage or the reference voltage applied externally to the DAC re-output/re-input pins. For the specified performance, an external reference voltage of 2.5 V is recommended for the AD5380-5 and an external reference voltage of 1.25 V is recommended for the AD5380-3.
data decoding
The AD5380 contains a 14-bit data bus from DB13 to DB0. Depending on the value of REG1 and REG0 (see Table 1), this data is loaded into the addressing DAC input register, offset (c) register, or gain (m) register. The format data, offset (c) and gain (m) register contents are shown in Table 10 to Table 12.
On-chip Special Purpose Function Registers (SFRs)
The AD5380 contains a number of Special Function Registers (SFRs), as shown in Table 13. The SFR is addressed with REG1=REG0=0 and decoded with address bits A5 to A0.
SFR command
NOP (no operation)
REG1=REG0=0, A5 to A0=000000 do nothing, but can be used in serial readback mode to clock data out on DOUT for diagnostics. During NOP operation, the busy pulse is low.
Write CLR code
REG1=REG0=0, A5-A0=000001
DB13 to DB0 = Contains CLR Data Lowering the CLR row or performing a soft clear function will load the contents of the DAC registers with the data contained in the user-configurable CLR register and set VOUT0 to VOUT39 accordingly. This is useful for setting a specific output voltage under clear conditions. This also facilitates calibration; the user can load either full-scale or zero-scale into the clear code register, then issue a hardware or software clear to load this code to all DACs, eliminating the need for a separate write to each DAC. Defaults to all zeros at power up.
Soft coherent lidar
REG1=REG0=0, A5 to A0=000010
DB13 to DB0 = don't care that this instruction executes the CLR, which has the same function as provided by the external CLR pins.
The DAC output is loaded with the data in the CLR code register. It takes 35 microseconds to fully execute the soft CLR, as indicated by the busy low time.
soft power off
REG1=REG0=0, A5 to A0=001000
DB13 to DB0 = don't care to execute this command to perform a global power-down function that puts all channels into low power mode, reducing the analog supply current to a maximum of 2 microamps, and the digital current to a maximum of 20 microamps. In power-down mode, the output amplifier can be configured as a high-impedance output, or a 100 kΩ load can be supplied to ground. The contents of all internal registers are preserved in power-down mode. Registers cannot be written to while powered down.
soft start
REG1=REG0=0, A5 to A0=001001
DB13 to DB0 = don't care This command is used to power up the output amplifier and internal reference. The time for the output power to drop is 8 μs. Hardware power reduction and software functions are combined internally in a single number or function.
soft reset
REG1=REG0=0, A5 to A0=001111
DB13 to DB0 = Don't care that this command is used to implement a software reset. All internal registers are reset to their default values of m for full scale and c for zero scale. The contents of the DAC registers are cleared, setting all analog outputs to 0 V. The soft reset activation time is 135 microseconds. A soft reset is performed only when the AD5380 is not in power down mode.
Control Register Read/Write
REG1=REG0=0, A5 to A0=001100, the R/W state determines whether the operation is a write (R/W=0) or a read (R/W=1). DB13 to DB0 contain control register data.
control register content
CR13: Power-off state. This bit is used to configure the output amplifier state when powered down.
CR13=1: Amplifier output is high impedance (power on by default).
CR13=0: The amplifier output is 100 kΩ to ground.
CR12: Reference selection. This bit selects the AD5380's operating internal reference. The CR12 is programmed as follows:
CR12=1: The internal reference voltage is 2.5V (default is AD5380-5), which is the recommended operating reference voltage for AD5380-5.
CR12=0: The internal reference voltage is 1.25 V (default is AD5380-3), which is the recommended operating reference voltage for AD5380-3.
CR11: Current boost control. This bit is used to increase the current in the output amplifier, thereby changing its slew rate. This bit is configured as follows:
CR11=1: Start the boost mode. This maximizes the bias current in the output amplifier, optimizing its slew rate but increasing power dissipation.
CR11=0: Boost mode is off (default is power on). This reduces bias current in the output amplifier, reducing overall power dissipation.
CR10: Internal/External Reference. This bit determines whether the DAC uses its internal reference or the reference from an external application.
CR10=1: Internal references are enabled. The reference output depends on the data loaded into CR12.
CR10=0: select external reference (default is power on). CR9: Channel Monitor Enable (see Channel Monitor Function).
CR9=1: Monitor is enabled. This will enable the channel monitor function. After writing the monitor channel in the SFR register, the selected channel output is routed to the MY pin. VOUT39 is used as MON U OUT pin.
CR9=0: Monitor disabled (default is powered). When the monitor is disabled, the MON U OUT pin assumes its normal DAC output function.
CR8: Thermal monitoring function. This function is used to monitor the internal die temperature of the AD5380 when enabled. The thermal monitor reduces the power of the output amplifier when the temperature exceeds 130°C. This feature can be used to protect the device if multiple output channels are shorted at the same time, potentially exceeding the power consumption. Soft power-on will re-enable the output amplifier if the die temperature falls below 130°C.
CR8=1: Thermal monitoring enabled.
CR8=0: Thermal monitor disabled (default is powered).
CR7 Series: Never mind.
CR6 to CR2: The toggle function is enabled. This function allows the user to toggle the output between the two codes loaded into the A and B registers of each DAC. Control register bits CR6 to CR2 are used to operate a single bank of eight channels in toggle mode. A logic 1 written to any bit enables a group of channels; a logic 0 disables a group of channels. LDAC is used to switch between the two registers. Table 15 shows the decoding of switch mode operation. For example, CR6 controls group w (contains channel 32 to channel 39), CR6=1 enables these channels.
CR1 and CR0: Never mind.
Channel monitoring function
REG1=REG0=0, A5 to A0=001010
DB13 to DB8=Contains the data to be addressed to the monitored channel. A channel monitor function is available on the AD5380. This feature includes a multiplexer addressable through the interface, allowing any channel output to be routed to the MON_OUT pin for monitoring with an external ADC. In channel monitor mode, VOUT39 becomes the MON U OUT pin for all monitored pins. Before routing any channel to MON U OUT, the channel monitor function must be enabled in the control register. On the AD5380, DB13 to DB8 contain the channel address of the channel being monitored. Select channel address 63 to tri-state MON_OUT.
hardware function
Reset function
Bringing the reset line low resets the contents of all internal registers to their power-on-reset state. Reset is a negative edge sensitive input. The default values correspond to m at full scale and c at zero scale. The contents of the DAC register are cleared, setting VOUT0 to VOUT39 to 0 V. The hardware reset activation time takes 270 microseconds. The falling edge of reset initiates the reset process; during this time, busy goes low and returns high when reset is complete. When the busy signal is low, all interfaces are disabled and all LDAC pulses are ignored. Returning high when busy, the part resumes normal operation and the state of the reset pin is ignored until the next falling edge is detected. Perform a hardware reset only when the AD5380 is not in shutdown mode.
Asynchronous clear function
Turning the CLR line low will clear the contents of the DAC register for inclusion in the user-configurable CLR register and set VOUT0 to VOUT9 accordingly. This function can be used for system calibration to load zero and full scale to all channels. The execution time of the CLR is 35 microseconds.
Busy and LDAC functions
BUSY is a digital CMOS output that indicates the state of the AD5380. Each time the user writes new data to the corresponding x1, c, or m register, the value of x2 is calculated, which is the internal data loaded into the DAC data register. During the computation of x2, the busy output goes low. When BUSY is low, the user can continue to write new data to the x1, m or c registers, but no DAC output updates. By driving the LDAC input low, the DAC output is updated. If LDAC goes low while busy, the LDAC event is stored and the DAC output is updated immediately after going high while busy. The user can hold the LDAC input permanently low, in which case the DAC output is updated as soon as BUSY goes high. Busy also goes low during power-on reset and when a falling edge is detected on the reset pin. During this time, all interfaces are disabled and any events on LDAC are ignored. The AD5380 includes an additional feature that the DAC register is not updated unless its x2 register was written since the last time LDAC was low. Normally, when LDAC goes low, the DAC register is filled with the contents of the x2 register. However, the AD5380 will only update the DAC registers if the x2 data has changed, thereby eliminating unnecessary digital crosstalk.
FIFO operation in parallel mode
The AD5380 includes a FIFO to optimize operation when operating in parallel interface mode. FIFO Enable (level sensitive, active high) is used to enable the internal FIFO. When connected to a DVD, the internal FIFO is enabled, allowing the user to write to the device at full speed. FIFO is only available in parallel interface mode. At power-up, after CLR or reset, the state of the FIFO EN pin is sampled to determine if the FIFO is enabled. In serial or IC interface mode, FIFO-EN should be held low. Up to 128 consecutive instructions can be written to the FIFO at the highest speed in parallel mode. When the FIFO is full, any further writes to the device are ignored. Figure 29 shows a comparison of channel update time between FIFO mode and non-FIFO mode. Figure 29 also provides an overview of digit loading times.
power-on reset
The AD5380 contains a power-on reset generator and state machine. A power-on reset resets all registers to a predefined state and configures the analog outputs to high impedance. During the power-on reset sequence, the busy pin goes low, preventing data from being written to the device.
power outage
The AD5380 includes a global power-down feature that puts all channels into a low-power mode and reduces analog power consumption to a maximum of 2 µA and digital power consumption to a maximum of 20 µA. In power-down mode, the output amplifier can be configured as a high-impedance output or provide a 100 kΩ load to ground. The contents of all internal registers are preserved in power-down mode. When the power is removed, the settling time of the amplifier will disappear before the output reaches its correct value.
AD5380 interface
The AD5380 contains parallel and serial interfaces. Additionally, the serial interface can be programmed to be compatible with SPI, DSP, MICROWIRE or IC. The SE/PAR pin selects parallel and serial interface modes. In serial mode, the SPI/IC pins are used to select DSP, SPI, MICROWIRE or IC interface mode.
These devices use an internal FIFO memory that allows high-speed sequential writes in parallel interface mode. While executing the write command, the user can continue to write new data to the device. The BUSY signal represents the current state of the device and goes low when executing instructions in the FIFO. In parallel mode, up to 128 consecutive instructions can be written to the FIFO at maximum speed. When the FIFO is full, any further writes to the device are ignored. To minimize device power consumption and on-chip digital noise, the active interface is only fully powered up when writing to the device, that is, on the falling edge of WR or the falling edge of SYNC.
Serial interface compatible with DSP, SPI, MICROWIRE
The serial interface can operate with at least three wires in standalone mode or four wires in daisy-chain mode. Daisy chaining allows many devices to be cascaded together to increase the system channel count. The SER/PAR pin must be tied high and the SPI/IC pin (pin 97) should be tied low to enable the DSP's SPI compatible serial interface. In serial interface mode, the user does not need to drive the parallel input data pins. The control pins for the serial interface are Sync, DIN, SCLK - standard 3-wire interface pins.
DCEN - Choose standalone mode or daisy-chain mode. SDO data output pin for daisy chain mode.
Figure 3 and Figure 5 show the timing diagrams for serial writes to the AD5380 in standalone and daisy-chain modes. The 24-bit data word format for the serial interface is shown in Table 17.
Company A/B. When toggle mode is enabled, this pin selects whether data is written to the A register or the B register. When toggle is disabled, this bit should be set to zero to select the A data register. Turning right is a read or write control bit.
A5 to A0 are used to address input channels.
REG1 and REG0 select the registers to which data is written, as shown in Table 9.
DB13 to DB0 contain input data words.
Ten is a state of indifference.
solo mode
Independent mode is enabled by connecting the DCEN (Daisy Chain Enable) pin low. The serial interface can work with both continuous and non-continuous serial clocks. The first falling edge of synchronization initiates the write cycle and resets the counter, which counts the number of serial clocks to ensure the correct number of bits is shifted into the serial shift register. Any other edge (except falling edge) while synchronizing will be ignored until 24 bits are in the register. Once shifted in 24 bits, SCLK will be ignored. For another serial transfer, the counter must be reset by a synchronous falling edge.
Daisy Chain Mode
For systems with multiple devices, the SDO pins can be used to chain multiple devices together. This daisy-chain mode can be used for system diagnostics and to reduce the number of serial interface lines.
By connecting the DCEN (Daisy Chain Enable) pin high, the daisy chain mode is enabled. The first falling edge of synchronization begins the write cycle. When sync is low, SCLK is continuously applied to the input shift register. If more than 24 clock pulses are applied, the data will fluctuate out of the shift register and appear on the SDO line. This data is clocked on the rising edge of SCLK and is valid on the falling edge. A multi-device interface is constructed by connecting the SDO of the first device to the DIN input of the next device in the chain. Each device in the system requires 24 clock pulses. Therefore, the total number of clock cycles must equal 24N, where N is the total number of AD538x devices in the chain.
Sync will be high when the serial transfer to all devices is complete. This locks the input data in each device in the daisy chain and prevents any further data from entering the input shift register.
If sync is set high before 24 clocks into the part, it is considered a bad frame and the data is discarded.
The serial clock can be a continuous clock or a gated clock. This source should only be used if the continuous SCLK source can be scheduled to be synchronized low for the correct number of clock cycles. In gated clock mode, a burst clock containing the exact number of clock cycles must be used, and a high sync must follow the final clock to lock the data.
readback mode
Readback mode is invoked by setting the R/W bit = 1 in the serial input register write. When R/W=1, bits A5 to A0, relative to bits REG1 and REG0, select the register to read. The remaining data bits in the write sequence are not important. During the next SPI write, the data appearing on the SDO output will contain the data from the previously addressed register. For single register reads, the NOP command can be used to clock out the data of the selected register on the SDO. Figure 30 shows the readback sequence. For example, to read back the m register of channel 0 on the AD5380, the following sequence should be implemented. First, write 0x404XXX to the AD5380 input registers. This configures the AD5380 in read mode and selects the m register for channel 0. Note that data bits DB13 to DB0 are not significant. Next is the second write, a NOP condition, 0x000000. During this write process, the data from the m register is clocked on the SDO line, i.e. the clocked data will contain the data from the m register (in bits DB13 to DB0) and the first 10 bits contain the previously written address information . In readback mode, the sync signal must frame the data. Data is clocked on the rising edge of SCLK and valid on the falling edge of the SCLK signal. If SCLK idles high between write and read operations for a readback operation, the first bit of data will be clocked on the falling edge of sync.
IC serial interface
The AD5380 has an IC-compatible 2-wire interface consisting of a serial data line (SDA) and a serial clock line (SCL). SDA and SCL facilitate communication between the AD5380 and the host at rates up to 400 kHz. Figure 6 shows a timing diagram for a 2-wire interface that includes three different modes of operation. When selecting the IC operating mode, first configure the serial operating mode (SE/PAR=1), then select the IC mode by configuring the SPI/IC pin to logic 1. The device is connected to the IC bus as a slave (ie, the AD5380 does not generate a clock).
The AD5380 has a 7-bit slave address of 10101 (AD1) (AD0). The 5 msbs are hardcoded and the 2 lsbs are determined by the state of the AD1 and AD0 pins. Hardware configuration AD1 and AD0 allow four of these devices to be configured on the bus.
I2C data transfer
One data bit is transferred every SCL clock cycle. During the high period of the SCL clock pulse, the data on SDA must remain stable. A change in SDA while SCL is high is the control signal that configures the start and stop conditions. Both SDA and SCL are pulled high by external pull-up resistors when the IC bus is not busy.
start and stop conditions
The master device initiates communication by issuing a start condition. The start condition is a high-to-low transition on SDA with SCL high. A stop condition is a low-to-high transition on SDA while SCL is high. The start-up state of the master device signals the AD5380 to start a transfer. Parking conditions left the bus empty. If a Repeated Start condition (Sr) is generated instead of a Stop condition, the bus will remain active.
Repeated Start Condition
A Repeated Start (Sr) condition indicates a change in data direction on the bus. Sr can be used when a bus master is writing to multiple IC devices and wants to maintain control of the bus.
Acknowledgement Bit (ACK)
The Acknowledgement Bit (ACK) is the 9th bit appended to any 8-bit data word. ACK is always generated by the receiving device. The AD5380 device generates an ACK by pulling SDA low during the ninth clock cycle when receiving an address or data. Monitoring ACK allows detection of unsuccessful data transfers. Unsuccessful data transfers can occur if the receiving device is busy or has a system failure. If the data transfer is unsuccessful, the bus master should retry the communication.
AD5380 slave address
The bus master initiates communication with the slave by issuing a START condition preceded by a 7-bit slave address. When idle, the AD5380 waits for a start condition, followed by the slave address. The LSB of the address word is the read/write (R/W) bit. The AD5380 is a receive-only device; when communicating with the AD5380, R/W=0. After receiving the correct address 10101 (AD1) (AD0), the AD5380 issues an ACK by pulling SDA low for one clock cycle.
The AD5380 has four different user-programmable addresses determined by the AD1 and AD0 bits.
write operation
There are three specific modes for writing data to the AD5380 DAC.
4-byte mode
When writing to the AD5380 DAC, the user must start with an address byte (R/W = 0), after which the DAC confirms that it is ready to receive data by pulling SDA low. The address byte is followed by the pointer byte; this indicates the specific channel in the DAC to be addressed, which the DAC also acknowledges. Two bytes of data are then written to the DAC, as shown in Figure 31. A stop condition then occurs. This allows the user to update a single channel within the AD5380 at any time and requires four bytes of data to be transferred from the master node.
3-byte mode
In 3-byte mode, the user can update multiple channels in one write sequence without writing the device address byte each time. The device address byte is required only once; subsequent channel updates require pointer bytes and data bytes. In 3-byte mode, the user starts with an address byte (R/W=0), after which the DAC will confirm that it is ready to receive data by pulling SDA low. The address byte is followed by the pointer byte. This will address the specific channel to be addressed in the DAC, which will also be acknowledged by the DAC. Next are two data bytes. REG1 and REG0 determine which registers to update.
If the stop condition is not after the data byte, the other channel can be updated by sending a new pointer byte and data byte. This mode requires only three bytes of address to be sent and reduces the software overhead of updating the AD5380 channel. Anytime there is a stop state exiting this mode. Figure 32 shows a typical configuration.
2-byte mode
After initializing the 2-byte mode, the user can update the channels sequentially. The device address byte is only needed once, and the pointer address pointer is configured in auto-increment or burst mode.
The user must start with an address byte (R/W=0), after which the DAC will confirm that it is ready to receive data by pulling SDA low. The address byte is followed by a specific pointer byte (0xFF) which initiates burst mode of operation. The address pointer is initialized to channel 0, the data behind the pointer is loaded into channel 0, and the address pointer is automatically incremented to the next address. The REG0 and REG1 bits in the data byte determine which register is updated. In this mode, after initialization, only two data bytes are required to update the channel. The channel address is auto-incremented from address 0 to channel 39, then returns to normal 3-byte mode of operation. This mode allows data transfer to all channels in a block and reduces software overhead when configuring all channels. Anytime there is a stop state exiting this mode. Toggle mode is not supported in 2-byte mode.
Figure 33 shows a typical configuration.
Parallel interface
The SE/PAR pin must be tied low to enable the parallel interface and disable the serial interface. Figure 7 shows the timing diagram for parallel writes. The parallel interface is controlled by the following pins:
CS pin
Active low device select pin.
WR pin
On the rising edge of WR, with CS low, the address on pins A5 to A0 is latched; the data on the data bus is loaded into the selected input register.
REG0, REG1 pins
The REG0 and REG1 pins determine the destination register for data written to the AD5380. See Table 9.
Pins A5 to A0
Each of the 40 DAC channels can be individually addressed.
Pins DB13 to DB0
The AD5380 accepts a direct 14-bit parallel word on DB13 to DB0, where DB13 is the most significant bit and DB0 is the least significant bit.
Microprocessor interface
Parallel interface
The AD5380 can be connected to various 16-bit microcontrollers or digital signal processors. Figure 35 shows the AD5380 family interfacing with a general-purpose 16-bit microcontroller/DSP processor. The lower address lines from the processor are connected to A0 to A5 on the AD5380. The upper address lines are decoded to provide CS, LDAC signals to the AD5380. The fast interface timing of the AD5380 allows direct interfacing with a wide variety of microcontrollers and DSPs, as shown in Figure 35.
AD5380 to MC68HC11
The Serial Peripheral Interface (SPI) on the MC68HC11 is configured in master mode (MSTR=1), clock polarity bit (CPOL)=0 and clock phase bit (CPHA)=1. SPI is configured by writing to the SPI Control Register (SPCR) - see the 68HC11 User Manual. The SCK of the 68HC11 drives the SCLK of the AD5380, the MOSI output drives the serial data line (DIN) of the AD5380, and the MISO input is driven by SDO.
The sync signal comes from the port line (PC7). When data is transferred to the AD5380, the sync line is taken low. Data displayed on the MOSI output is valid on the falling edge of SCK. Serial data for the 68HC11 is transmitted in 8-bit bytes, with only 8 falling clock edges during the transmission cycle.
AD5380 to PIC16C6x/7x
The PIC16C6x/7x Synchronous Serial Port (SSP) is configured as an SPI master with the clock polarity bit set to 0. This is done by writing to the Synchronous Serial Port Control Register (SSPCON). See the PIC16/17 Microcontroller User's Manual. In this example, I/O port RA1 is used for pulse synchronization and enables the serial port of the AD5380. The microcontroller transfers only 8 bits of data during each serial transfer operation; therefore, depending on the mode, three consecutive read/write operations may be required. Figure 36 shows the connection diagram.
AD5380 to 8051
The AD5380 requires a clock that is synchronized with the serial data. Therefore, the 8051 serial interface must operate in mode 0. In this mode, serial data is entered and exited through RXD, and a shift clock is output on TXD. Figure 37 shows how the 8051 is connected to the AD5380. Because the AD5380 shifts out data on the rising edge of the shift clock and latches the data on the falling edge, the shift clock must be inverted. The AD5380 requires its data to be MSB first. Because the 8051 outputs the LSB first, the transmit routine must take this into account.
AD5380 to ADSP-BF527
Figure 38 shows the AD5380 and ADSP-BF527. The ADSP-BF527 should be set to transmit alternate frame mode in motion. The ADSP-BF527 SPORT is programmed through motion control registers and should be configured as follows: internal clock operation, active low frame, and 16-bit word length. After enabling motion, a transfer is initiated by writing a word to the Tx register.
application information
Power decoupling
In any circuit where accuracy is important, careful consideration of power and ground return layout helps ensure rated performance. The printed circuit board on which the AD5380 is mounted should be designed so that the analog and digital sections are separated and confined to certain areas of the board. If the AD5380 is in a system and multiple devices require an AGND to DGND connection, this connection should only be made at one point, a star ground point as close as possible to the devices.
For power supplies with multiple pins (AVDD, DVD), the pins should be tied together. The AD5380 should have ample supply bypassing of 10µF, in parallel with 0.1µF on each supply, as close to the package as possible, ideally close to the device. The 10µF capacitors are of the tantalum bead type. The 0.1µF capacitor should have low effective series resistance (ESR) and effective series inductance (ESI), like common ceramic types that provide a high frequency, low impedance path to ground to handle transient currents from internal logic switches.
The power lines to the AD5380 should use as large traces as possible to provide a low impedance path and reduce the effect of faults on the power lines. Fast switching signals such as clocks should use a digital ground shield to avoid radiating noise to other parts of the board and must not run near the reference input. A ground wire routed between the DIN and SCLK lines will help reduce crosstalk between them (this is not necessary on multilayer boards as there will be a separate ground plane, but separating the lines will help reduce crosstalk). Noise on the re-export/re-entry lines must be minimized.
Avoid crossover of digital and analog signals. The traces on opposite sides of the board should be at right angles to each other. This reduces feedthrough effects through the board. Micro-strip technology is the best, but double-sided panels are not always possible. In this technique, the component side of the board is dedicated to the ground plane, while the signal lines are placed on the solder side.
Power sequence
For AD5380 to work properly, use DVD first, then AVDD at the same time, or within 10ms of DVD. This sequence ensures that the power-on reset circuit sets the registers to their default values and holds the analog outputs at 0 V until a valid write occurs. A hardware reset is issued when AVDD cannot be applied within 10 ms of DVDD. This will trigger the power-on reset circuit and load the default register values. For the case where the initial power supply has the same or lower voltage as the second power supply, a Schottky diode can be used to temporarily supply power until the second power supply is turned on. Table 18 lists the power supply sequence and recommended diode connections.
Alternatively, a load switch such as the ADP196 can be used to delay the first power supply until the second power supply is turned on. Figure 41 shows a typical configuration using the ADP196. In this case, AVDD is applied first. This voltage does not appear at the AVDD pin of the AD5380 until DVD is applied and the EN pin is raised. The result is that both AVDD and DVD are applied to the AD5380 at the same time.
Typical Configuration Circuit
Figure 43 shows a typical configuration of the AD5380-5 when used with external references. In the circuit shown, all a GND, SIGNAL-GND, and DAC-GND pins are connected to a common AGND. AGND and DGND are connected together on the AD5380 device. At power-up, the AD5380 defaults to external reference operation. All AVDD lines are tied together and driven from the same 5 V supply. A 0.1µF ceramic and 10µF tantalum capacitor is recommended for decoupling close to the device. In this application, the reference for the AD5380-5 is provided externally from the ADR421 or ADR431 2.5 V reference. Suitable external references for the AD5380-3 include the ADR3412 1.2 V reference. The reference should be disconnected at the re-output/re-input pins of devices with 0.1µF capacitors.
Figure 44 shows a typical configuration when using internal references. At power-up, the AD5380 defaults to an external reference; therefore, the internal reference needs to be configured and turned on by writing to the AD5380 control register. Control register bit CR12 allows the user to select the reference value; bit CR10 is used to select the internal reference. It is recommended to use 2.5V reference voltage when AVDD=5V, and 1.25V reference voltage when AVDD=3V.
Numerical connections are omitted for clarity. The AD5380 contains an internal power-on reset circuit with a 10-millisecond power-up time. If the power supply ramp rate exceeds 10 ms, the user should reset the AD5380 during initialization to ensure that the calibration data is properly loaded into the device.
AD5380 monitoring function
The AD5380 includes a channel monitor function consisting of a multiplexer addressed through the interface, allowing any channel output to be routed to this pin for monitoring with an external ADC. In channel monitor mode, VOUT39 becomes the MON U OUT pin to which all monitored signals are routed. Before routing any channel to MON U OUT, the channel monitor function must be enabled in the control register.
Table 16 contains the decoding information needed to route any channel to MON_OUT. Select channel address 63 to tri-state MON_OUT. Figure 45 shows a typical supervisory circuit implemented using a 12-bit SAR ADC in a 6-lead SOT-23 package. The controller output port selects the channel to be monitored, and the input port reads the converted data from the ADC.
Switch mode function
The toggle mode feature allows the output signal to be generated using the LDAC control signal that toggles between the two DAC data registers. This function uses the SFR control register to configure as follows. A write of REG1=REG0=0 and A5 to A0=001100 specifies the control register write. The toggle mode function is enabled in groups of eight channels using bits CR6 to CR2 in the control register. See the AD5380 control register description. Figure 46 shows a block diagram of the switching mode implementation. Each of the 40 DAC channels on the AD5380 contains A and B data registers. Note that the B register can only be loaded when toggle mode is enabled. The sequence of events when configuring the AD5380 for switching mode is
1. Enable toggle mode for the desired channel via the control register.
2. Load the data into the register.
3. Load the data into the B register.
4. Apply LDAC.
LDAC is used in determining the analog output. The first LDAC configures the output to reflect the data in the A register. This mode offers a significant advantage if the user wishes to generate square waves at the outputs of all 40 channels, as a liquid crystal-based variable optical attenuator may need to be driven. In this case, the user writes to the control register and enables the toggle function by setting CR6 to CR2=1, thus enabling five groups of eight for toggle mode operation. The user must then load data into all 40 A and B registers. Toggling the LDAC will set the output value to reflect the data in the A and B registers.
The frequency of the LDAC will determine the frequency of the square wave output.
The toggle mode is disabled through the control register. The first LDAC after the toggle mode is disabled will update the output with the data contained in the A register.
Thermal monitoring function
The AD5380 has a temperature shutdown feature to protect the chip when multiple outputs are shorted. The short-circuit current of each output amplifier is typically 40 mA. Operating the AD5380 at 5 volts produces 200 megawatts of power dissipation per shorted amplifier. This will provide additional watts of power dissipation with five channels shorted. For 100-lead LQFP, theta is typically 44°C/W.
The thermal monitor is enabled by the user via CR8 in the control register. The output amplifier on the AD5380 automatically powers down if the die temperature exceeds about 130°C. After thermal shutdown, if the temperature drops below 130°C or the thermal monitor function is turned off through the control register, the user can re-enable the section by performing soft power.
AD5380 in MEMS-Based Optical Switches
In their feedforward control path, MEMS-based optical switches require high-resolution DACs that provide high channel density and 14-bit monotonic behavior. The 40-channel, 14-bit AD5380 DAC meets these requirements. The circuit in Figure 47 amplifies the 0V to 5V output of the AD5380 to achieve a 0V to 200V output range, which is used to control the driver to position the MEMS mirror in the optical switch. The exact position of each mirror is measured with sensors. The sensor output is multiplexed into a high-resolution ADC to determine mirror position. The control loop consists of the ADSP-21065L, a 32-bit SHARC® digital signal processor with an SPI-compatible motion interface. The ADSP-21065L writes data to the DAC, controls the multiplexer, and reads data from the ADC through the serial interface.
Optical attenuator
Based on its high channel count, high resolution, monotonicity, and high level of integration, the AD5380 is ideal for optical attenuation applications in dynamic gain equalizers, variable optical attenuators (VOAs), and optical add-drop multiplexers (OADMs). In these applications, each wavelength is extracted individually using an arrayed waveguide; in a closed-loop control system, its power is monitored using a photodiode, transimpedance amplifier, and ADC. The AD5380 controls the optical attenuator for each wavelength, ensuring that the power at all wavelengths is equalized before multiplexing onto the fiber. This prevents information loss and saturation from occurring during further amplification stages along the fiber.
Using the AD5380 FIFO
The AD5380 FIFO mode optimizes the overall system update rate in applications that need to update a large number of channels. FIFO mode is only available when parallel interface mode is selected. The FIFO EN pin is used to enable the FIFO. The state of FIFO EN is sampled during initialization. Therefore, the FIFO state can only be changed by resetting the device. For example, in a telescope capable of removing atmospheric distortions, a large number of channels need to be updated in a short period of time.
In such a system, up to 400 channels need to be updated within 40 microseconds. 400 channels require the use of 10 AD5380s. With FIFO mode enabled, the data write cycle time is 40 ns; therefore, each group of 40 channels can be fully loaded in 1.6 microseconds. In FIFO mode, a complete group of 40 channels will be updated in 14.4 microseconds. The time used to update all 400 channels is 14.4 μs+9×1.6 μs=28.8 μs. Figure 49 shows the FIFO operation scheme.