SLASEQ4A October 2018 – December 2018 DAC43608 , DAC53608
PRODUCTION DATA.
Figure 66 provides an example in which single DAC channel is used to compare both high and low thresholds. A dual comparator is used per DAC channel as shown. A voltage divider formed by resistors RA and RB are used in order to bring the signal level within the DAC range. Another pair of resistors R1 and R2 are used for setting the low threshold as a factor of the high threshold. This configuration allows the use of a single DAC channel for monitoring both high and low threshold levels. The comparators should be open-drain in order to provide the following advantages.
In the circuit depicted in Figure 66 the output of the circuit remains HIGH as long as the signal input remains within the high and low threshold levels. Upon violation of any one threshold, the output goes LOW. Equation 3 provides the derivation of the low threshold voltage from the high threshold set by the DAC.
In order to monitor a power supply of 5 V within ±10%, it is recommended to place the nominal value at the DAC mid code. The output range of DACx3608 to be 0 – 5 V, thus the mid code voltage output is 2.5 V. Hence, RA and RB can be chosen in such a way that the voltage to be compared is 2.5 V. For this example, RA is equal to RB and we can use 10-kΩ resistors for both of them. One channel of the DACx3608 must be programmed to VTHLD-HI, for example 2.5 V + 5% = 2.625 V. This corresponds to a 10-bit DAC code of (210÷5 V) × 2.625 V = 537.6 (0x21 Ah). In order to generate VTHLD-LO(for example, 2.5 V – 5% = 2.405 V) from 2.625 V, the values of R1 and R2 can be calculated as 7.5 kΩ and 82 kΩ, respectively using Equation 3. The pseudocode for getting started with the programmable window comparator application with the desired DAC value is given below.
//SYNTAX: WRITE <REGISTER NAME(Hex Code)>, <DATA>
//Power-up the device and channels
WRITE DEVICE_CONFIG(0x01), 0x0000
//Program 2.625V on channel A
WRITE DACA_DATA(0x08), 0x0868 //10-bit MSB aligned