-
2022-09-23 10:24:11
The AD5382 is a 32-channel, 3 V/5 V, single-supply, 14-bit identical DAC
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; power-down mode; package type: 100 Leaded LQFP (14 mm x 14 mm); User Interface; Parallel; Serial (SPI-/QSPI-/MICROWIRE-/DSP Compatible with Data Readback); I2C Compatible; Rugged 6.5kV HBM and 2K Volt FICDM ESD rating.
Comprehensive function
Channel monitor; synchronous output update via LDAC; clear function to optimize slew rate in user-programmable code amplifier boost mode; user-programmable offset and gain adjustment; toggle mode to enable square wave generation; thermal monitor.
application
Variable Optical Attenuators; Level Setting (ATE); Optical Micro-Electro-Mechanical Systems (MEMS); Control Systems; Instrumentation.
General Instructions
The AD5382 is a complete, single-supply, 32-channel, 14-bit DENSADAC® available in a 100-lead LQFP package. All 32 channels have an on-chip output amplifier with rail-to-rail operation. The AD5382 includes an internal software selectable 1.25 V/2.5 V, 10 ppm/°C reference voltage, an on-chip channel monitor function that multiplexes the analog output to the common MON_OUT pin for external monitoring, and an Output amplifier boost mode that allows optimization of amplifier slew rate.
The AD5382 contains a double-buffered parallel interface with a 20 ns-WR pulse width, SPI-, QSPI-, MICROWIRE-, DSP compatible serial interface (interface speeds over 30 MHz) and an IC compatible with a 400 kHz data transfer rate 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. With boost mode disabled, the power consumption per channel is typically 0.25mA.
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, with all 0s loaded into the DAC, m=all 1s, c=2n–1, VOUT(Zero-Scale)=0 V, the zero-scale error is the difference between VOUT(real) and VOUT(ideal) Measured value 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 measurement transfer function, expressed in mV. Offset error is measured on the AD5382-5 and AD5382-3, code 32 is loaded into the DAC register, and code 64 is loaded on the AD5382-3.
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.
Output voltage settling 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 0x2000.
DAC-to-DAC crosstalk
DAC-to-DAC crosstalk is a glitch pulse that occurs in the output of one DAC due to a digital change and a subsequent change in the analog output 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 a measure of internally generated random noise.
Random noise is characterized by 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 AD5382 is a complete, single-supply, 32-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/degree Celsius 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 internal reference is selected, CR12 selects the reference amplitude. All channels have an on-chip output amplifier with rail-to-rail output capable of driving 5 kΩ in parallel with a 200 pF load.
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 26 shows a block diagram of a single channel on the AD5382. The digital input transfer function of each DAC can be expressed as:
Where: x2 are the data words 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 AD5382). 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 AD5382). c is a 14-bit offset coefficient (default 0x2000).
The complete transfer function of these devices can be expressed as:
Where: x2 is the data word loaded into the resistor string DAC and V is the internal reference voltage, or the reference voltage externally applied to the DAC re-out/re-in pins. For the specified performance, an external reference voltage of 2.5 V is recommended for the AD5382-5 and an external reference voltage of 1.25 V is recommended for the AD5382-3.
data decoding
The AD5382 contains a 14-bit data bus DB13–DB0. Depending on the value of REG1 and REG0 (see Table 9), this data is loaded into the addressed DAC input register (x1), offset (c) register, or gain (m) register. Format data, offset (c) and gain (m) registers.
On-chip Special Purpose Function Registers (SFRs)
The AD5382 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 A4 to A0.
SFR command
NOP (no operation)
REG1=REG0=0, A4-A0=00000
Does nothing but is useful in serial readback mode to time out data on DOUT for diagnostics. During NOP operation, the busy pulse is low.
write clear code
REG1=REG0=0, A4-A0=00001
DB13–DB0=Contain clear code data
Bringing the CLR line low or performing a soft clear function loads the contents of the DAC register with the data contained in the user-configurable clear register and sets VOUT0 to VOUT31 accordingly. This is useful for setting a specific output voltage under clear conditions. This is also beneficial for calibration; the user can load full-scale or zero-scale into the clear code register and then issue a hardware or software clear to load this code to all DACs, eliminating the need to write to each DAC individually need. Defaults to all zeros at boot.
soft and transparent
REG1=REG0=0, A4-A0=00010 DB13-DB0=don't care
Executing this instruction performs a software clear, which has the same function as that provided by the external CLR pin. The DAC output is loaded with the data in the clear code. registers (Table 13). It takes 35 microseconds to fully perform a soft clear, and is running out of time indicated by BUSY.
soft power off
REG1=REG0=0, A4-A0=01000 DB13-DB0=don't care
Executing this command performs 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 with a 100 kΩ load 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, A4-A0=01001 DB13-DB0=don't care
This command is used to power up the output amplifier and internal reference. The time to exit the power supply is 8 μs. Hardware power off and software functions are combined internally in a single number or function.
soft reset
REG1=REG0=0, A4-A0=01111 DB13-DB0=don't care
This command is used to implement a software reset. All internal registers are reset to their default values, which correspond to m at full scale and c at zero scale. The contents of the DAC registers are cleared, setting all analog outputs to 0 V. The soft reset activation time is up to 135 microseconds. A soft reset is only performed when the AD5382 is not in power down mode.
Control Register Read/Write
REG1=REG0=0, A4-A0=01100, the R/W state determines whether the operation is write (R/W=0) or 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 AD5382's operating internal reference.
CR12=1: The internal reference voltage is 2.5V (default value of AD5382-5), the recommended operating reference voltage of AD5382-5.
CR12=0: The internal reference voltage is 1.25 V (default value of AD5382-3), the recommended operating reference voltage of AD5382-3.
CR11: Current boost control. This bit is used to increase the current in the output amplifier, thereby changing its slew rate.
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 enable. 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.
CR9=0: Monitor disabled (default is powered). When the monitor is disabled, MON_OUT is three states.
CR8: Thermal monitoring function. This function is used to monitor the internal die temperature of the AD5382 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 when multiple output channels are shorted at the same time when power consumption may be exceeded. If the die temperature falls below 130°C, soft power-on will re-enable the output amplifier.
CR8=1: Thermal monitoring enabled.
CR8=0: Thermal monitor disabled (default is powered). CR7 and CR6: Never mind.
CR5 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 CR5 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 that the decoding of toggle contains channels 24 to 31, and CR5=1 enables these channels.
CR1 and CR0: Never mind.
Channel monitoring function
REG1=REG0=0, A4–A0=01010
DB13–DB8=Contains data used to address monitored channels
A channel monitor function is provided on the AD5382. This feature includes a multiplexer that is addressed through the interface, allowing any channel output or signal connected to the MON U input to be routed to the MON U output pin for monitoring with an external ADC. Before routing any channel to MON U OUT, the channel monitor function must be enabled in the control register. On the AD5382, 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 VOUT31 to 0 V. This sequence takes up to 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. When BUSY returns high, the part resumes normal operation and ignores the state of the reset pin until the next falling edge is detected. Perform a hardware reset only when the AD5382 is not in shutdown mode.
Asynchronous clear function
Turning the CLR line low will clear the contents of the DAC register to the data contained in the user-configurable CLR register and set VOUT0 to VOUT31 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 AD5382. 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 output is updated as soon as the DAC busy state 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 AD5382 includes an additional feature that the DAC register is not updated unless its x2 register has been 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 AD5382 only updates the DAC registers when the x2 data changes, eliminating unnecessary digital crosstalk.
FIFO operation in parallel mode
The AD5382 contains a FIFO to optimize operation when operating in parallel interface mode. FIFO EN pin (level sensitive, high) is used to enable the internal FIFO. When connected to a DVDD, 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 a clear 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 tied low. Up to 128 consecutive instructions can be written to the FIFO at the highest speed in parallel mode. When the FIFO is full, further writes to the device are ignored. Figure 28 shows a comparison of channel update time between FIFO mode and non-FIFO mode. Figure 28 also shows the digit loading times.
power-on reset
The AD5382 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 AD5382 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 powered off, the settling time of the amplifier disappears before the output reaches its correct value.
AD5382 interface
The AD5382 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.
The device uses 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, further writes to the device are ignored.
To minimize device power consumption and on-chip digital noise, the active interface is fully powered up only 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. SE/PAR pin must be tied high and SPI/IC pin (pin 97) should be tied low to make DSP, SPI, Microwire 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 as follows: Sync, DIN, SCLK - standard 3-wire interface pins.
DCEN - Select standalone mode or daisy-chain mode. SDO data output pin for daisy chain mode. Timing diagram for serial writing to the AD5382 in standalone and daisy-chain modes. The 24-bit data word format for the serial interface is shown in Table 17.
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 0 to select the A data register. Turning right is a read or write control bit.
Levels A4–A0 are used to address input channels. REG1 and REG0 select the register to which data is written.
DB13–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 edge other than a falling edge in sync is ignored until 24 bits are clocked. Once the 24 bits are in, SCLK will be ignored. To make another serial transfer, the counter must go through synchronization.
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 further data from being clocked into 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. A continuous SCLK source should only be used if synchronization can be kept at the correct number of clock cycles low. In gated clock mode, a burst clock containing the exact number of clock cycles must be used, and a high sync must be done after the last 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 A4 to A0, combined with bits REG1 and REG0, select the register to be read. The remaining data bits in the write sequence are not important. During the next SPI write, the data appearing on the SDO output contains 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 29 shows the readback sequence. For example, to read back the m register of channel 0 on the AD5382, the following sequence should be implemented. First, write 0x404XXX to the AD5382 input registers. This configures the AD5382 in read mode and selects the m register for channel 0. The data bits from DB13 to DB0 are irrelevant. Next is the second write, a NOP condition, 0x000000. During this write process, the data from the m register is clocked on the DOUT line, that is, the clocked data contains 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 AD5382 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 AD5382 and the host at rates up to 400khz. 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 (the AD5382 does not generate a clock). The AD5382 has a 7-bit slave address 1010 1AD1AD0. The 5 MSBs are hardcoded and the 2 LSBs are determined by the state of the AD1 and AD0 pins. Device-to-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. A start condition from the master device signals the AD5382 to begin 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 can indicate a change in the direction of data 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 AD5382 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.
AD5382 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 AD5382 waits for a start condition, followed by the slave address. The LSB of the address word is the read/write (R/W) bit. The AD5382 is a receive-only device; when communicating with the AD5382, R/W=0. After receiving the correct address 1010 1AD1AD0, the AD5382 issues an ACK by pulling SDA low for one clock cycle.
The AD5382 has four different user-programmable addresses determined by the AD1 and AD0 bits.
write operation
Data can be written to the AD5382 DAC in three specific modes.
4-byte mode
When writing to the AD5382 DAC, the user must begin 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 30. A stop condition then occurs. This allows the user to update a single channel within the AD5382 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 the 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 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 to be sent to update any channel after the device is initially addressed, and reduces software overhead when updating AD5382 channels. Anytime there is a stop state exiting this mode. Figure 31 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 confirms 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 31, 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 32 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 A4 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 AD5382.
Pins A4 to A0
Each of the 40 DAC channels can be individually addressed.
Pins DB13 to DB0
The AD5382 accepts a direct 14-bit parallel word from DB13 to DB0, where DB13 is the most significant bit and DB0 is the least significant bit.
Microprocessor interface
Parallel interface
The AD5382 can be connected to various 16-bit microcontrollers or digital signal processors. Figure 34 shows the AD5382 family interfacing with a general-purpose 16-bit microcontroller/DSP processor. The lower address lines from the processor are connected to A0–A4 on the AD5382. The upper address lines are decoded to provide the CS, LDAC signals to the AD5382. The fast interface timing of the AD5382 allows direct interface to a variety of microcontrollers and DSPs, as shown in Figure 34.
AD5382 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 AD5382, the MOSI output drives the serial data line (DIN) of the AD5382, and the MISO input is driven by DOUT. The sync signal comes from the port line (PC7). When data is sent to the AD5382, the sync line is taken low (PC7). 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.
AD5382 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 AD5382. 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 35 shows the connection diagram.
AD5382 to 8051
The AD5382 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 36 shows how the 8051 is connected to the AD5382. Because the AD5382 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 AD5382 requires its data to be MSB first. Because the 8051 outputs the LSB first, the transmit routine must take this into account.
AD5382 to ADSP-BF527
Figure 37 shows the serial interface between the AD5382 and the ADSP-BF527. The ADSP-BF527 should be set to operate in motion transmission alternate frame mode. 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 AD5382 is mounted should be designed so that the analog and digital sections are separated and confined to certain areas of the board. If the AD5382 is in a system where multiple devices require an AGND to DGND connection, the connection should be made at only 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 AD5382 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 facing 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 AD5382 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 between the D and SCLK lines helps reduce crosstalk between them. This is not needed on multi-layer boards because there is a separate ground plane, but separating the lines can help. Noise on the VIN and refill 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. Microstrip technology is by far the best, but double sided is 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
To make the AD5382 work properly, apply the DVD first, then apply AVDD at the same time or within 10 ms of the 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. In 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 40 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 AD5382 until DVD is applied and the EN pin is raised. The result is that both AVDD and DVDD are applied to the AD5382.
Typical Configuration Circuit
Figure 42 shows a typical configuration of the AD5382-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 AD5382 device. At power-up, the AD5382 defaults to external reference operation. All AVDD lines are tied together and driven from the same 5 V supply. 0.1µF ceramic and 10µF tantalum capacitors are recommended for decoupling close to the device.
In this application, the reference for the AD5382-5 is provided externally from the ADR421 or ADR431 2.5 V reference. Suitable external references for the AD5382-3 include the ADR3412 1.2 V reference. The reference should be disconnected at the re-output/re-input pins of the device using a 0.1µF capacitor.
Figure 43 shows a typical configuration when using internal references. At power-up, the AD5382 defaults to an external reference; therefore, the internal reference needs to be configured and turned on by writing to the AD5382 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 AD5382 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 AD5382 during initialization to ensure that the calibration data is properly loaded into the device.
Monitoring function
The AD5382 channel monitor feature includes a multiplexer addressable through the interface, allowing any channel output to be routed to this pin for monitoring with an external ADC. 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. External signals within the absolute maximum input range of the AD532 can be connected to the Munayin pins and monitored at MuniOUT. Select channel address 63 to tri-state MON_OUT. Figure 44 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. Use the write of REG1=REG0=0 and A4-A0=01100 to specify the control register write. The toggle mode function is enabled in groups of eight channels using bits CR5 to CR2 in the control register. See the AD5382 control register contents in Table 14. Figure 45 shows a block diagram of the switching mode implementation. Each of the 32 DAC channels on the AD5382 contains A and B data registers. caution
average cost
The B register can only be loaded when toggle mode is enabled. The sequence of events when configuring the AD5382 for switching mode is as follows:
1. Enable toggle mode for the desired channel via the control register.
2. Load the data into the A register.
3. Load the data into the B register.
4. Apply LDAC.
The LDAC is used to switch between the A and B registers to determine the analog output. The first LDAC configures the output to reflect the data in the A register. This mode offers significant advantages if the user wishes to generate square waves at the outputs of all 32 channels (as may be required to drive liquid crystal based variable optical attenuators). In this case, the user sets the control register and enables the toggle function by setting CR5 to CR2=1, thus enabling four groups of eight for toggle mode operation. The user must then load data into all 32 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 determines the frequency of the square wave output.
The toggle mode is disabled through the control register. After the first LDAC disables toggle mode, the output is updated with the data contained in the A register.
Thermal monitoring function
The AD5382 has a temperature shutdown feature that protects the chip when multiple outputs are shorted. The short-circuit current of each output amplifier is typically 40 mA. Operating the AD5382 at 5V results in a power dissipation of 200mW per shorted amplifier. This results in additional watts of power dissipation when five channels are 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 AD582 automatically powers down if the temperature exceeds about 130°C. After thermal shutdown, if the temperature falls below 130°C or the thermal monitor function is turned off through the control register, the user can re-enable the section by performing a soft-start.
AD5382 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 32-channel, 14-bit AD5382 DAC meets these requirements. In the circuit in Figure 46, the 0 V to 5 V output of the AD5382 is amplified to achieve a 0 V to 200 V 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 is closed and driven by the ADSP-21065L, 32-bit SHARC® digital signal processor with 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 AD5382 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 AD5382 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.
Dimensions