Zibb

Design Idea

Charlieplexing at high duty cycle

Increase the number of LEDs you can illuminate

Luke Sangalli, Digital Designs, Melbourne, Australia; Edited by Martin Rowe and Fran Granville -- EDN, 6/25/2009

A few articles have recently appeared describing novel ways to increase the number of LEDs a microprocessor can drive with a limited number of pins (Reference 1). The standard multiplexing technique made popular by multidigit seven-segment displays has, in pin-scarce designs, given way to “Charlieplexing.”

Charlie Allen devised this technique while working at Maxim, which has since introduced ICs using the technique (Reference 2). Allen used the high-impedance third input state available to most microprocessors for turning off LEDs in a matrix; the LEDs’ respective microprocessor pins’ high or low states individually turn on these LEDs. Using this method, you can drive nine seven-segment LED displays using only nine microprocessor pins rather than the usual 17. For N pins, you can individually address N×(N–1) LEDs using Charlieplexing.

One of the gripes people often level at Charlieplexing regards its poor duty cycle. A previous Design Idea compares the standard multiplexing method with Charlieplexing (Reference 3). Using Charlieplexing, the maximum duty cycle for a 20-LED display is only 5%. The poor duty-cycle figure is due not to the method, however, but rather to the driving capability of the microprocessor and the parasitic-leakage paths. A single pin cannot usually sink the current a number of LEDs require to effectively light up, so these designs often require one source pin and one sink pin to light only one LED at any time. However, adding a transistor or two resistors allows you to circumvent these issues.

If you rearrange the LEDs in the familiar cross-point array and add a transistor to each column to carry the common current, you’ll see the duty cycle of the Charlieplexing method does not differ much from standard multiplexing (Figure 1). For a 20-LED, five-column matrix, each LED remains on for 20% of the time compared with 25% for standard multiplexing, but now using only five pins instead of nine (Table 1).

One of the drawbacks of adding the transistor and resistors to each column is that you need additional components to achieve a reasonable LED brightness when a large number of LEDs is involved. This approach, however, is a better alternative to using a costly IC and no worse than standard multiplexing or “Gugaplexing,” which also requires additional transistors and resistors. From a cost and benefits point of view, consider that, by the time you get to 90 LEDs, the PCB (printed-circuit-board) real estate and cost of the additional 10 transistor/resistor sets pale in comparison to the display itself.

See all of EDN's
Design Ideas

Examining the circuit in detail, you’ll notice that it has five microprocessor pins, P1 through P5, available, for a total of N×(N–1)=20 LEDs. When P3, for example, is high, the emitter of Q3 is at approximately 4.4V, and you can turn off D13, D23, D43, or D53 if you make P1, P2, P3, or P5 low. Any pin that you set to input, or high impedance, alternatively turns off the corresponding LED. When P1 and P4 are low, P3 is high, and P2 and P5 are in high-impedance states. With P3 high, transistor Q3 biases on, all the other transistor bases are either low, which ensures that no current will flow, or high-impedance, which supplies no current into the base to allow the transistor to conduct. All the diodes in the third column can turn on, but only D13 and D43 have a path directly to ground through P1 and P4, which are low and through the 100Ω current-limiting resistors.

D23 and D53 connect to the high-impedance input pins and can conduct only through the 100Ω resistors attempting to turn on Q2 and Q5. Because of their forward-voltage drop—typically, 2.2V—the emitters of Q2 and Q5 will be less than 1.6V, as the following equation shows: 5VCC–0.6V (Q3)–2.2V (D23 or D53)–0.6V (Q3 or Q5)–ILED×100Ω<1.6V, where ILED is the current of the LEDs. This scenario does not allow any LED in Column 2 or Column 5 to light up to any level that would have an undesirable effect.


References
  1. Lancaster, Don, Tech Musings, August 2001.
  2. Charlieplexing—Reduced Pin-Count LED Display Multiplexing,” Application Note 1880, Maxim, Feb 10, 2003.
  3. Gupta, Saurabh, and Dhananjay V Gadre, “Multiplexing technique yields a reduced-pin-count LED display,” EDN, Oct 16, 2008, pg 68.



Reed Business Information Resource Center

Featured Company


Related Resources

ADVERTISEMENT

ADVERTISEMENT

Feedback Loop


Post a CommentPost a Comment

There are no comments posted for this article.

Related Content

 

By This Author

There are no additional articles written by this author.


ADVERTISEMENT

Knowledge Center


Events

Oxford University Practical RF/Microwave Design Short Course
Dates: 1/18/2010 - 1/22/2010
Location: Oxford, United Kingdom

Phosphor Global Summit 2010
Dates: 3/23/2010 - 3/25/2010
Location: San Diego, CA

Submit an EventSubmit an Event




Technology Quick Links

EDN Marketplace


©1997-2009 Reed Business Information, a division of Reed Elsevier Inc. All rights reserved.
Use of this Web site is subject to its Terms of Use | Privacy Policy

Please visit these other Reed Business sites