Adding Panel LED Intensity Control to MAX6952 and MAX6953 5x7 Matrix LED Drivers
These display drivers already have 16-step individual digit current control. The additional control discussed here adds a master intensity control that reduces all the individual digit currents at once, in 4, 8, or 16 steps. This can be used to adjust for ambient lighting conditions, for instance.
A single external resistor RISET controls the peak segment current for all the segments. RISET sinks a current from the driver's internal voltage reference, and this small current is mirrored internally to set the peak segment current of up to 40mA. The peak segment current can be controlled on the fly by adjusting the effective value of RISET. Adjusting RISET adjusts the peak segment current of all the drivers at once, and therefore operates as a global intensity control. A panel intensity control can be built by adjusting RISET at the same time, to the same value, for all the drivers in a display panel.
Global intensity control can be achieved by replacing the fixed RISET resistor with a digital resistor, such as the 32-step MAX5160. If fewer steps are required, and spare GPIO ports are available, then these spare ports can be used to directly control the full-scale segment current. The ports drive discrete resistors to build a simple R-2R-4R type DAC directly at the RISET pin. The design software is an Excel spreadsheet which calculates the resistor values used for a 2-bit DAC (resistors RA and RB), for a 3-bit DAC (resistors RA, RB, and RC), and for a 4-bit DAC (resistors RA, RB, RC, and RD). These DACs provide 4, 8, and 16 steps of intensity control respectively (Figure 1). Each driver in a panel requires a separate resistor DAC; multiple ISET pins can be driven by one DAC. However, multiple DACs (and therefore, multiple drivers) can be controlled by one set of GPIO ports, because the current sunk into the port by each resistor is small.
Figure 1. Adding two, three, or four extra resistors to external GPIO ports to build a global intensity control DAC.
The DAC ports should be switched between a logic low output for a DAC code of 0, and high impedance for a DAC code of 1. Open-drain port outputs achieve this logic automatically. Standard microcontroller GPIO ports with push-pull outputs can be made high impedance condition by switching the port's configuration to logic input mode.
Figure 2. Screenshot of the 2-bit Excel spreadsheet.
Figure 3. Screenshot of the 3-bit Excel spreadsheet.
Figure 4. Screenshot of the 4-bit Excel spreadsheet.