HOME

TheInfoList



OR:

Charlieplexing (also known as tristate multiplexing, reduced pin-count LED multiplexing, complementary LED drive and crossplexing) is a technique for driving a
multiplexed display Multiplexed displays are electronic display devices where the entire display is not driven at one time. Instead, sub-units of the display (typically, rows or columns for a dot matrix display or individual characters for a character oriented dis ...
in which relatively few I/O pins on a
microcontroller A microcontroller (MCU for ''microcontroller unit'', often also MC, UC, or μC) is a small computer on a single VLSI integrated circuit (IC) chip. A microcontroller contains one or more CPUs (processor cores) along with memory and programmable i ...
are used e.g. to drive an array of
LED A light-emitting diode (LED) is a semiconductor Electronics, device that Light#Light sources, emits light when Electric current, current flows through it. Electrons in the semiconductor recombine with electron holes, releasing energy i ...
s. The method uses the
tri-state logic In digital electronics, a tri-state or three-state buffer is a type of digital buffer that has three stable states: a high output state, a low output state, and a high-impedance state. In the high-impedance state, the output of the buffer is discon ...
capabilities of microcontrollers in order to gain efficiency over traditional multiplexing. Although it is more efficient in its use of I/O, there are issues that cause it to be more complicated to design and render it difficult for larger displays. These issues include
duty cycle A duty cycle or power cycle is the fraction of one period in which a signal or system is active. Duty cycle is commonly expressed as a percentage or a ratio. A period is the time it takes for a signal to complete an on-and-off cycle. As a formu ...
, current requirements and the forward voltages of the LEDs. As with any multiplexing, there is a requirement to cycle through the in-use LEDs rapidly so that the persistence of the human eye perceives the display to be lit as a whole. Multiplexing can generally be seen by a strobing effect and skewing if the eye's focal point is moved past the display rapidly.


Origin

The Charlieplexing technique was introduced by
Maxim Integrated Maxim Integrated, a subsidiary of Analog Devices, designs, manufactures, and sells analog and mixed-signal integrated circuits for the automotive, industrial, communications, consumer, and computing markets. Maxim's product portfolio includes p ...
in 2001 as a reduced pin-count LED multiplexing scheme in their MAX6951 LED display driver. The name "Charlieplexing", however, first occurred in a 2003 application note. It was named after Charles "Charlie" M. Allen, an applications engineer of
MAX232 The MAX232 is an integrated circuit by Maxim Integrated Products, now a subsidiary of Analog Devices, that converts signals from a TIA-232 (RS-232) serial port to signals suitable for use in TTL-compatible digital logic circuits. The MAX232 ...
fame, who had proposed this method internally. Also in 2001,
Don Lancaster Donald E. Lancaster is an American author, inventor, and microcomputer pioneer. Background Lancaster is a writer and engineer, who authored multiple articles for computer and electronics magazines of the 1970s, including ''Popular Electronics' ...
illustrated the method as part of his musings about the "
N-connectedness In algebraic topology, homotopical connectivity is a property describing a topological space based on the dimension of its holes. In general, low homotopical connectivity indicates that the space has at least one low-dimensional hole. The concep ...
" problem, referring to
Microchip Technology Microchip Technology Inc. is a publicly-listed American corporation that manufactures microcontroller, mixed-signal, analog and Flash-IP integrated circuits. Its products include microcontrollers ( PIC, dsPIC, AVR and SAM), Serial EEPROM ...
, who had already discussed it as "complementary LED drive technique" in a 1998 application note and would later include it in a tips & tricks booklet. While Microchip did not mention the origin of the idea, they might have picked it up in the PICLIST, a
mailing list A mailing list is a collection of names and addresses used by an individual or an organization to send material to multiple recipients. The term is often extended to include the people subscribed to such a list, so the group of subscribers is re ...
on Microchip
PIC microcontroller PIC (usually pronounced as ''"pick"'') is a family of microcontrollers made by Microchip Technology, derived from the PIC1650"PICmicro Family Tree", PIC16F Seminar Presentation originally developed by General Instrument's Microelectronics ...
s, where, also in 1998, Graham Daniel proposed it to the community as a method to drive rows and columns of
bidirectional LED A light-emitting diode (LED) is a semiconductor device that emits light when current flows through it. Electrons in the semiconductor recombine with electron holes, releasing energy in the form of photons. The color of the light (cor ...
s. Daniel at the time had created simple circuits with PIC 12C508 chips driving 12 LEDs off 5 pins with a mini command set to set various lighting displays in motion. The method, however, was known and utilized by various parties much earlier in the 1980s, and has been described in detail as early as in 1979 in a patent by Christopher W. Malinowski, Heinz Rinderle and Martin Siegle of the Department of Research and Development, AEG-Telefunken, Heilbronn, Germany for what they called a "three-state signaling system". Reportedly, similar techniques were already in use as early as 1972 for track signaling applications in
model railroading Railway modelling (UK, Australia, New Zealand, and Ireland) or model railroading (US and Canada) is a hobby in which rail transport systems are modelled at a reduced scale. The scale models include locomotives, rolling stock, streetcars, t ...
.


Traditional multiplexing

Display multiplexing is very different from multiplexing used in data transmission, although it has the same basic principles. In display multiplexing, the data lines of the displays* are connected in parallel to a common databus on the microcontroller. Then, the displays are turned on and addressed individually. This allows use of fewer I/O pins than it would normally take to drive the same number of displays directly. Here, each "display" could, for instance, be one calculator digit, not the complete array of digits. When using Charlieplexing, ''n'' drive pins can drive ''n'' digits with ''n'' − 1 segments. When simplified, it equates to ''n'' pins being able to drive ''n''2 − n segments or LEDs. Traditional multiplexing takes many more pins to drive the same number of LEDs; 2''n'' pins must be used to drive ''n''2 LEDs (though a 1-of-''n'' decoder chip can be used to reduce the number of microcontroller I/O pins to n + \lceil\log_2n\rceil). If the number of LEDs is known, then the previous equation can be worked backwards to determine the number of pins required. That is, ''L'' LEDs can be driven by \left\lceil\frac\left(1 + \sqrt \right)\right\rceil pins.


Complementary drive

Charlieplexing in its simplest form works by using a
diode matrix A diode matrix is a two-dimensional grid of wires: each "intersection" wherein one-row crosses over another has either a diode connecting them, or the wires are isolated from each other. It is one of the most popular techniques for implementing a ...
of complementary pairs of LEDs. The simplest possible Charlieplexed matrix would look like this: By applying a positive voltage to pin X1 and grounding pin X2, LED1 will light. Since current cannot flow through LEDs in reverse direction at this low voltage, LED2 will remain unlit. If the voltages on pin X1 and pin X2 are reversed, LED2 will light and LED1 will be unlit. The Charlieplexing technique does not actually make a larger matrix possible when only using two pins, because two LEDs can be driven by two pins without any matrix connections, and without even using tri-state mode. In this two-LED example, Charlieplexing would save one ground wire, which would be needed in a common 2-pin driver situation. However, the 2-pin circuit serves as a simple example to show the basic concepts before moving on to larger circuits where Charlieplexing actually shows an advantage.


Expanding: tri-state logic

If the circuit above were to be expanded to accommodate 3 pins and 6 LEDs, it would look like this: This presents a problem, however. In order for this circuit to act like the previous one, one of the pins must be disconnected before applying charge to the remaining two. If, for example, LED5 was intended to be lit, X1 must be charged and X3 must be grounded. However, if X2 is also charged, LED3 would illuminate as well. If X2 was instead grounded, LED1 would illuminate, meaning that LED5 cannot be lit by itself. This can be solved by utilizing the tri-state logic properties of microcontroller pins. Microcontroller pins generally have three states: "high" (5 V), "low" (0 V) and "input". Input mode puts the pin into a
high-impedance In electronics, high impedance means that a point in a circuit (a node) allows a relatively small amount of current through, per unit of applied voltage at that point. High impedance circuits are low current and potentially high voltage, whereas l ...
state, which, electrically speaking, "disconnects" that pin from the circuit, meaning little or no current will flow through it. This allows the circuit to see any number of pins connected at any time, simply by changing the state of the pin. In order to drive the six-LED matrix above, the two pins corresponding to the LED to be lit are connected to 5 V (I/O pin "high" =
binary number A binary number is a number expressed in the base-2 numeral system or binary numeral system, a method of mathematical expression which uses only two symbols: typically "0" (zero) and "1" ( one). The base-2 numeral system is a positional notatio ...
1) and 0 V (I/O pin "low" = binary 0), while the third pin is set in its input state. In doing so, current leakage out of the third pin is prevented, ensuring that the LED wished to be lit is the only one lit. Because the desired LED reduces the voltage available after the resistor, current will not flow across alternate paths (an alternate 2-LED path exists for every pair of pins in the 3-pin diagram, for example), so long as the voltage drop in the desired LED path is less than the total voltage drop across each string of alternative LEDs. However, in the variant with individual resistors this voltage-regulating effect does not affect the alternative paths so you must ensure that all LEDs used will not light with half the supply voltage applied because this variant does not benefit from the voltage-regulating effect of the desired path LED. By using tri-state logic, the matrix can theoretically be expanded to any size, as long as pins are available. For ''n'' pins, ''n''(''n'' − 1) LEDs can be in the matrix. Any LED can be lit by applying 5 V and 0 V to its corresponding pins and setting all of the other pins connected to the matrix to input mode. Under the same constraints as discussed above up to ''n'' − 1 LEDs sharing a common positive or negative path can be lit in parallel.


Expanding

The 3-wire circuit can be rearranged to this near-equivalent matrix (resistors have been relocated). This emphasizes the similarities between ordinary grid multiplex and Charlieplex, and demonstrates the pattern that leads to "the ''n''-squared minus ''n''" rule. In typical usage on a circuit board the resistors would be physically located at the top of the columns and connected to the input pin. The rows would then be connected directly to the input pin bypassing the resistor. The first setup in the image on the left is suitable only when identical LEDs are used since a single resistor is used for current-limiting through more than one LED (though not at the same time—rather, one resistor limits current through only one LED in a given column at one time). This is contrasted to the second configuration with individual resistors for each LED, as shown in the image on the right. In this second configuration, each LED has a unique resistor paired with it. This makes it possible to mix different kinds of LEDs by providing each with its appropriate resistor value. In both of these configuration, as shown in both the left and the right image, the relocated resistors make it possible to light multiple LEDs at the same time row-by-row, instead of requiring that they be lit individually. The row current capacity could be boosted by an NPN
emitter follower In electronics, a common collector amplifier (also known as an emitter follower) is one of three basic single-stage bipolar junction transistor (BJT) amplifier topologies, typically used as a voltage buffer. In this circuit the base terminal ...
BJT A bipolar junction transistor (BJT) is a type of transistor that uses both electrons and electron holes as charge carriers. In contrast, a unipolar transistor, such as a field-effect transistor, uses only one kind of charge carrier. A bipolar ...
transistor instead of driving the current directly with the typically much weaker I/O pin alone.


Problems with Charlieplexing


Refresh rate

Because only a single set of LEDs, all having a common anode or cathode, can be lit simultaneously without turning on unintended LEDs, Charlieplexing requires frequent output changes, through a method known as
multiplexing In telecommunications and computer networking, multiplexing (sometimes contracted to muxing) is a method by which multiple analog or digital signals are combined into one signal over a shared medium. The aim is to share a scarce resource - a ...
. When multiplexing is done, not all LEDs are lit quite simultaneously, but rather one set of LEDs is lit briefly, then another set, and eventually the cycle repeats. If it is done fast enough, they will appear to all be on, all the time, to the human eye because of
persistence of vision Persistence of vision traditionally refers to the optical illusion that occurs when visual perception of an object does not cease for some time after the rays of light proceeding from it have ceased to enter the eye. The illusion has also been d ...
. In order for a display to not have any noticeable flicker, the
refresh rate The refresh rate (or "vertical refresh rate", "vertical scan rate", terminology originating with the cathode ray tubes) is the number of times per second that a raster-based display device displays a new image. This is independent from frame rate ...
for each LED must be greater than 50 Hz. Suppose 8 tri-state pins are used to control 56 LEDs through Charlieplexing, which is enough for 8
7-segment display A seven-segment display is a form of electronic display device for displaying decimal numeral system, numerals that is an alternative to the more complex dot matrix displays. Seven-segment displays are widely used in digital clocks, electronic ...
s (without decimal points). Typically 7-segment displays are made to have a common cathode, sometimes a common anode, but without loss of generality suppose it is a common cathode. All LEDs in all 8 7-segment displays cannot be turned on simultaneously in any desired combination using Charlieplexing. It is impossible to get 56 bits of information directly from 8 trits (the term for a base-3 character, as the pins are 3-state) of information, as 8 trits fundamentally comprises 8 log23, or about 12.7 bits of information, which falls far short of the 56 bits required to turn all 56 LEDs on or off in any arbitrary combination. Instead, the human eye must be fooled by use of multiplexing. Only one 7-segment display, one set of 7 LEDs can be active at any time. The way this would be done is for the 8 common cathodes of the 8 displays to each get assigned to its own unique pin among the 8 I/O ports. At any time, one and only one of the 8 controlling I/O pins will be actively low, and thus only the 7-segment display with its common cathode connected to that actively low pin can have any of its LEDs on. That is the active 7-segment display. The anodes of the 7 LED segments within the active 7-segment display can then be turned on in any combination by having the other 7 I/O ports either high or in high-impedance mode, in any combination. They are connected to the remaining 7 pins, but through resistors (the common cathode connection is connected to the pin itself, not through a resistor, because otherwise the current through each individual segment would depend on the number of total segments turned on, as they would all have to share a single resistor). But to show a desired number using all 8 digits, only one 7-segment display can be shown at a time, so all 8 must be cycled through separately, and in a 50th of a second for the entire period of 8. Thus the display must be refreshed at 400 Hz for the period-8 cycle through all 8 segments to make the LEDs flash no slower than 50 times per second. This requires constant interruption of whatever additional processing the controller performs, 400 times per second.


Peak current

Due to the decreased
duty cycle A duty cycle or power cycle is the fraction of one period in which a signal or system is active. Duty cycle is commonly expressed as a percentage or a ratio. A period is the time it takes for a signal to complete an on-and-off cycle. As a formu ...
, the
current Currents, Current or The Current may refer to: Science and technology * Current (fluid), the flow of a liquid or a gas ** Air current, a flow of air ** Ocean current, a current in the ocean *** Rip current, a kind of water current ** Current (stre ...
requirement of a Charlieplexed display increases much faster than it would with a traditionally multiplexed display. As the display gets larger, the average current flowing through the LED must be (roughly) constant in order for it to maintain constant brightness, thus requiring the peak current to increase proportionally. This causes a number of issues that limit the practical size of a Charlieplexed display. * LEDs often have a maximum peak current rating as well as an average current rating. * If the microcontroller code crashes, and a one-led-at-a-time Charlieplex is being used, the single LED left lit is under much higher stress than it would be in a row-at-a-time Charlieplexed display or in a traditionally multiplexed display, increasing the risk of a failure before the fault is spotted.


Requirement for tristate

All the outputs used to drive a Charlieplexed display must be tristate. If the current is low enough to drive the displays directly by the I/O pins of the microcontroller, this is not a problem, but if external tristates must be used, then each tristate will generally require two output lines to control, eliminating most of the advantage of a Charlieplexed display. Since the current from microcontroller pins is typically limited to 20 mA or so, this severely restricts the practical size of a Charlieplexed display. However, it can be done by enabling one segment at a time.


Complexity

Charlieplex matrices are significantly more complicated, both in the required PCB layout and microcontroller programming, than using prebuilt multiplex matrices. This increases design time. Soldering components can also be more time-consuming than for multiplexed LED arrays. A balance between complexity and pin use can be achieved by Charlieplexing several pre-built multiplexed LED arrays together.


Forward voltage

When using LEDs with different forward
voltage Voltage, also known as electric pressure, electric tension, or (electric) potential difference, is the difference in electric potential between two points. In a static electric field, it corresponds to the work needed per unit of charge to m ...
s, such as when using different color LEDs, some LEDs can light when not desired. In the diagram above it can be seen that if LED 6 has a 4 V forward voltage, and LEDs 1 and 3 have forward voltages of 2 V or less, they will light when LED 6 is intended to, as their current path is shorter. This issue can easily be avoided by comparing forward voltages of the LEDs used in the matrix and checking for compatibility issues. Or, more simply, using LEDs that all have the same forward voltage. This is also a problem where the LEDs are using individual resistors instead of shared resistors, if there is a path through two LEDs that has less LED drop than the supply voltage these LEDs may also illuminate at unintended times.


LED failure

If a single LED fails, by becoming either open-circuit, short-circuit, or leaky (developing a parasitic parallel resistance, which allows current in both directions), the impact will be catastrophic for the display as a whole. Furthermore, the actual problematic LED may be very difficult to identify, because potentially a large set of LEDs which should not be lit may all come on together, and—without detailed knowledge of the circuit—the relation between which LED is bad and what set of LEDs all come on together cannot be easily established. If the failed LED becomes an open circuit, the voltage between the LED's 2 electrodes may build up until it finds a path through two other LEDs. There are as many such paths as there are pins used to control the array minus 2; if the LED with anode at node ''m'' and cathode at node ''n'' fails in this way, it may be that every single pair of LEDs in which one's anode is node ''m'', cathode is ''p'' for any value of ''p'' (with the exceptions that ''p'' cannot be ''m'' or ''n'', so there are as many possible choices for ''p'' as the number of pins controlling the array minus 2), along with the LED whose anode is ''p'' and cathode is ''n'', will all light up. If there are 8 I/O pins controlling the array, this means that there will be 6 parasitic paths through pairs of 2 LEDs, and 12 LEDs may be unintentionally lit, but fortunately this will only happen when the one bad LED is supposed to come on, which may be a small fraction of the time and will exhibit no deleterious symptoms when the problem LED is not supposed to be lit. If the problem is a short between nodes ''x'' and ''y'', then every time any LED ''U'' with either ''x'' or ''y'' as its anode or cathode and some node ''z'' as its other electrode is supposed to come on (without loss of generality, suppose ''Us cathode is connected to ''x''), the LED ''V'' with cathode ''y'' and anode ''z'' will light as well, so any time either node ''x'' or ''y'' is activated as an anode OR a cathode, two LEDs will come on instead of one. In this case, it lights only one additional LED unintentionally, but it does it far more frequently; not merely when the failed LED is supposed to come on, but when ''any'' LED that has a pin in common with the failed LED is supposed to come on. The problematic elements become especially difficult to identify if there are two or more LEDs at fault. What this means is that unlike most methods in which the loss of a single LED merely causes a single burned-out segment, when Charlieplexing is used, one or two burned-out LEDs, whatever the mode of failure, will almost certainly cause a catastrophic cascade of unintended lightings of the LEDs that still work, very likely rendering the entire device completely and immediately unusable. This must be taken into account when considering the required lifetime and failure characteristics of the device being designed.


Alternative use cases and variants


Input data multiplexing

Charlieplexing can also be used to multiplex digital input signals into a microcontroller. The same diode circuits are used, except a switch is placed in series with each diode. To read whether a switch is open or closed, the microcontroller configures one pin as an input with an internal pull-up resistor. The other pin is configured as an output and set to the low logic level. If the input pin reads low, then the switch is closed, and if the input pin reads high, then the switch is open. One potential application for this is to read a standard (4×3) 12-key numeric keypad using only 4 I/O lines. The traditional row-column scan method requires 4 + 3 = 7 I/O lines. Thus Charlieplexing saves 3 I/O lines; however it adds the expense of 12 diodes, (since the diodes are only free when LEDs are used). A variation of the circuit with only 4 diodes is possible, however this reduces the rollover of the keyboard. The microcontroller can always detect when the data is corrupt, but there is no guarantee it can sense the original key presses, unless only one button is pressed at a time. (However, it is probably possible to arrange the circuit so that if at most any two adjacent buttons are pressed, then no data loss will occur.) The input is only lossless in the 4-diode circuit if only one button is pressed at a time, or if certain problematic multiple key presses are avoided. In the 12-diode circuit, this is not an issue, and there is always a one-to-one correspondence between button presses and input data. However, there are so many diodes that are required to use the method (especially for larger arrays) that there is generally no cost savings over the traditional row-column scan method, unless the cost of a diode is only a fraction of the cost of an I/O pin, where that fraction is one over the number of I/O lines.


GuGaplexing

In 2008, Dhananjay V. Gadre devised ''Gugaplexing'', which is like Charlieplexing with multiple drive voltages.


Chipiplexing

In 2008, Guillermo Jaquenod's so called ''Chipiplexing'' adds emitter followers to boost the strength of the row drive allowing rows wider than a single microcontroller port could drive to be lit simultaneously.


Cross-plexing

In 2010, the Austrian chip manufacturer austriamicrosystems AG (named ams AG since 2012, and ams-OSRAM AG since 2020) introduced the multiplexing LED driver IC AS1119, followed by the AS1130 in 2011. Also, the analog & mixed signal (AMS) division (named Lumissil Microsystems since 2020) of
Integrated Silicon Solution Inc. Integration may refer to: Biology *Multisensory integration *Path integration * Pre-integration complex, viral genetic material used to insert a viral genome into a host genome *DNA integration, by means of site-specific recombinase technology, ...
(ISSI) introduced the IS31FL3731 in 2012 and the IS31FL3732 in 2015. They all use a technique they call ''cross-plexing'', a variant of Charlieplexing with automatic detection of open or shorted connections and anti-ghosting measures.


Tucoplexing

In 2019, Micah Elizabeth Scott developed a method to use 3 pins to run 4 LEDs and 4 switches called ''Tucoplexing''.


Pulse-width modulation

Charlieplexing can even be used with
pulse-width modulation Pulse-width modulation (PWM), or pulse-duration modulation (PDM), is a method of reducing the average power delivered by an electrical signal, by effectively chopping it up into discrete parts. The average value of voltage (and current) fed ...
to control the brightness of 12 LEDs with 4 pins.


Code example

In the following
Arduino Arduino () is an open-source hardware and software company, project, and user community that designs and manufactures single-board microcontrollers and microcontroller kits for building digital devices. Its hardware products are licensed unde ...
code example, the circuit uses
ATtiny ATtiny (also known as TinyAVR) is a subfamily of the popular 8-bit AVR microcontrollers, which typically has fewer features, fewer I/O pins, and less memory than other AVR series chips. The first members of this family were released in 1999 by ...
8-pin
microcontroller A microcontroller (MCU for ''microcontroller unit'', often also MC, UC, or μC) is a small computer on a single VLSI integrated circuit (IC) chip. A microcontroller contains one or more CPUs (processor cores) along with memory and programmable i ...
which has 5 I/O pins to create a 7 -segment display. Since a 7-segment display only requires control of 7 individual LEDs, we use 4 of the ATtiny I/O pins as charlieplexed outputs (n*(n-1)). Leaving the fifth I/O pin to be used as digital or analog input or another output. // ATtiny code // Reads analog (or digital) input from pin 4 and every time the input goes below a set threshold // it counts one and displays the increase in count either by activating up one of four LEDs (or transistors) // or one of twelve charlieplexed LEDs. // SET THESE VALUES: int threshold = 500; int maxCount = 7; //////////////////// boolean sensorTriggered = false; int count = 0; int sensorValue = 0; long lastDebounceTime = 0; // the last time the output pin was toggled long debounceDelay = 50; // the debounce time; increase if the output flickers //////////////////////////////////////////////////////////////////////////////// void setup() //////////////////////////////////////////////////////////////////////////////// void loop() void testDigits() //////////////////////////////////////////////////////////////////////////////// void readSensor() //////////////////////////////////////////////////////////////////////////////// void charlieLoop() //////////////////////////////////////////////////////////////////////////////// void charliePlexPin(int myLed) //////////////////////////////////////////////////////////////////////////////// void spwm(int freq, int pin, int sp)


See also

*
Anti-parallel (electronics) In electronics, two anti-parallel or inverse-parallel devices are connected in parallel but with their polarities reversed. One example is the TRIAC, which is comparable to two thyristors connected back-to-back (in other words, reverse paralle ...
*
Flicker fusion The flicker fusion threshold, critical flicker frequency (CFF) or flicker fusion rate, is a concept in the psychophysics of Visual perception, vision. It is defined as the frequency at which an intermittent light stimulus appears to be completely ...
*
N-connectedness In algebraic topology, homotopical connectivity is a property describing a topological space based on the dimension of its holes. In general, low homotopical connectivity indicates that the space has at least one low-dimensional hole. The concep ...
* Polarity reversing switch


Notes


References


Further reading

* * * {{cite magazine , title=Microcontroller drives 20 LEDs , author-first=Dhananjay V. , author-last=Gadre , magazine= EDN , date=2007-09-27 , id=CA6483826 , url=https://www.edn.com/video-design-idea-microcontroller-drives-20-leds/ , url-status=live , archive-url=https://web.archive.org/web/20211225220441/https://www.edn.com/video-design-idea-microcontroller-drives-20-leds/ , archive-date=2021-12-25 Digital circuits