SLASES7A July 2019 – December 2019 DAC43401 , DAC53401
PRODUCTION DATA.
The DAC sets the source current of a MOSFET using the integrated buffer, as shown in Figure 64. Connect the LED between the power supply and the drain of the MOSFET. This configuration allows the DAC to control or set the amount of current through the LED. The integrated buffer controls the gate-source voltage of the MOSFET inside the feedback loop, thus compensating this drop and corresponding drift due to temperature, current, and ageing of the MOSFET. Calculate the value of the LED current set by the DAC using Equation 6. In order to generate 0 mA to 20 mA from a 0-V to 2.4-V DAC output range, the value of RSET resistor is 120-Ω. Select the internal reference with a span of 2x. Given a VGS of 1.2 V, the VDD of the DAC must be at least 3.6 V. Select a VDD of 5 V to allow variation of VGS across temperature. When the VDD headroom is a constraint, use a bipolar junction transistor (BJT) in place of the MOSFET. BJTs have much less VBE drop as compared to a VGS of a MOSFET. A MOSFET provides a much better match between the current through the set register and the LED current, as compared to a BJT.
The pseudocode for getting started with an LED biasing application is as follows:
//SYNTAX: WRITE <REGISTER NAME (Hex code)>, <MSB DATA>, <LSB DATA>
//Power-up the device, enable internal reference with 2x output span
WRITE GENERAL_CONFIG(0xD1), 0x11, 0xE5
//Write DAC code (12-bit aligned)
WRITE DAC_DATA(0x21), 0x07, 0xFC
//Write settings to the NVM
WRITE TRIGGER(0xD3), 0x00, 0x10