SNAS806 September 2020 TPL1401
PRODUCTION DATA
The TPS92692 data sheet provides the equation for the voltage required to set a given LED current limit. Use a sense resistor of 1-Ω for the TPS92692.The voltage at the IADJ pin, VIADJ, must be 1.4 V for an LED current of 100 mA. The range for VIADJ is 2.5 V. Enable the internal reference with 2x gain to set the digipot output range to 2.42 V that will fairly be in the range of current adjustment for the LED driver. Calculate the code needed to set the digipot output to 1.4 V using the following equation:
The hex value for 148 is 0x94. Shift this value by 4 bits before writing to the DPOT_POSITION register, resulting in 0x940.
The pseudocode for the programmable current limit 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 digipot code (12-bit aligned)
WRITE DPOT_POSITION(0x21), 0x09, 0x40
//Write settings to the NVM
WRITE PROTECT(0xD3), 0x00, 0x10