DLPU057A March 2018 – April 2022
This command is used to set the dimming level which is expressed as a percentage of full scale of factory calibrated maximum brightness.
Byte | Description |
1 | Command Byte (00h) |
2 | Length (02h) |
3 | Backlight Level (lsb) |
4 | Backlight Level (msb) |
5 | Checksum (Sum of bytes 1 to 4) |
The figure below shows the bit order and weighing for the Backlight Level relative to the full scale.
b15 | b14 | b13 | b12 | b11 | b10 | b9 | b8 | b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 |
2-1 | 2-2 | 2-3 | 2-4 | 2-5 | 2-6 | 2-7 | 2-8 | 2-9 | 2-10 | 2-11 | 2-12 | 2-13 | 2-14 | 2-15 | 2-16 |
The Backlight Level can range from almost 1 (when all bits are set to 1) to 1/216. The maximum brightness will be multiplied by this value to set the backlight. In other words, a value of 65535 (all bits set to 1) indicates the brightest value of the system.
The range (65535 to 0) is same as (1 to 0) when the binary representation is treated as unsigned 0.16 fixed point number. As such, the software uses the (65535 to 0) as the backlight range for all purposes.
A backlight value of 35000 should be sent as:
Byte 3 = Backlight (lsb) = lsb 8 bits (35000) = 0xB8
Byte 4 = Backlight (msb) = msb 8 bits (35000) = 0x88