SNOAA69 April 2021 LM36922 , LM36923 , LM3697
The following data is obtained using the LM369xx according to the 11-bit exponential dimming formula in Equation 1 and Equation 2:
Equation 1 shows the LM3697 Dimming Equation:
Equation 2 shows the LM36922_3 Dimming Equation:
Where:
Code Configuration sample: Control Brightness MSB and LSB registers. Full format of 11-bit brightness dimming code: 8-bit MSB(10:3) + 3Bit LSB(2:0) = 11 bit, in an actual design, the 11-bit value should be translated to decimal format .
Assumes target full brightness LED current of 30 mA, total 2048 step, or 11 bit:
Each step of the LED current in linear format is ILED_Step = 30 mA / 2048 = 14.6 µA.
Changing Equation 1 to ILED_FullScale = 30 mA, assumes DPWM = 1.
Then, it translates it from decimal code to Hex code.
Make a linear format excel table (Exponential Data to Linear Format Dimming Lookup Table) with the previous equations for quick calculation:
Full Brightness Current (mA) | Linear Format Dimming Step | Linear Format Dimming Current (mA) | Exponential Dimming Code Based on Linear Format, Decimal | Exponential Dimming Current in Linear Format (mA) |
---|---|---|---|---|
30 | 1 | 0.014648 | 0 | 0.024193 |
2 | 0.029297 | 55 | 0.029315 | |
3 | 0.043945 | 171 | 0.043953 | |
4 | 0.058594 | 253 | 0.058524 | |
5 | 0.073242 | 317 | 0.073178 | |
6 | 0.087891 | 369 | 0.087747 | |
… | ||||
2034 | 29.79492 | 2038 | 29.79123 | |
2035 | 29.80957 | 2038 | 29.79123 | |
2036 | 29.82422 | 2038 | 29.79123 | |
2037 | 29.83887 | 2038 | 29.79123 | |
2038 | 29.85352 | 2039 | 29.89543 | |
2039 | 29.86816 | 2039 | 29.89543 | |
2040 | 29.88281 | 2039 | 29.89543 | |
2041 | 29.89746 | 2039 | 29.89543 | |
2042 | 29.91211 | 2039 | 29.89543 | |
2043 | 29.92676 | 2039 | 29.89543 | |
2044 | 29.94141 | 2039 | 29.89543 | |
2045 | 29.95605 | 2040 | 30 | |
2046 | 29.9707 | 2040 | 30 | |
2047 | 29.98535 | 2040 | 30 | |
2048 | 30 | 2040 | 30 |
Because the minimum LED current that the LM3692x can support is 50 µA in exponential mode, keep all of the value that is less than 50 µA to 50 µA, then make the following change to Equation 2:
Then, translate decimal code to Hex code.
Make a linear format excel table (Exponential Data to Linear Format Dimming Lookup Table) with the previous equations for quick calculation:
Full Brightness Current (mA) | Linear Format Dimming Step | Linear Format Dimming Current (mA) | Exponential Dimming Code Based on Linear Format, Decimal | Exponential Dimming Current in Linear Format (mA) |
---|---|---|---|---|
30 | 1 | 0.014648 | 0 | 0.05 |
2 | 0.029297 | 0 | 0.05 | |
3 | 0.043945 | 0 | 0.05 | |
4 | 0.058594 | 52 | 0.058551 | |
5 | 0.073242 | 126 | 0.0733 | |
6 | 0.087891 | 186 | 0.087945 | |
… | ||||
2037 | 29.83887 | 2105 | 29.81349 | |
2038 | 29.85352 | 2105 | 29.81349 | |
2039 | 29.86816 | 2106 | 29.90414 | |
2040 | 29.88281 | 2106 | 29.90414 | |
2041 | 29.89746 | 2106 | 29.90414 | |
2042 | 29.91211 | 2106 | 29.90414 | |
2043 | 29.92676 | 2106 | 29.90414 | |
2044 | 29.94141 | 2106 | 29.90414 | |
2045 | 29.95605 | 2107 | 29.99507 | |
2046 | 29.9707 | 2107 | 29.99507 | |
2047 | 29.98535 | 2107 | 29.99507 | |
2048 | 30 | 2107 | 29.99507 |
When dimming begins, the AP(Application Processor) can lookup this table according to linear dimming steps to easily get the target exponential mode brightness code. An example is made to show its working process:
In some user cases, the AP cannot handle exponential dimming processes directly for Software Dimming Module limits, so this method helps designers keep the AP dimming code linearity and take the use of smoother dimming performance in expo dimming. Furthermore, this Lookup Table could be integrated into software platform, it could be used as a general tool in all projects in which LM369xx family is designed-in. This solution is acceptable from all sides: easy dimming compatibility and better performance.