## Serially Interfaced, 8-Digit LED Display Drivers

## General Description

The MAX7219/MAX7221 are compact, serial input/ output common-cathode display drivers that interface microprocessors (μPs) to 7-segment numeric LED displays of up to 8 digits, bar-graph displays, or 64 individual LEDs. Included on-chip are a BCD code-B decoder, multiplex scan circuitry, segment and digit drivers, and an 8x8 static RAM that stores each digit. Only one external resistor is required to set the segment current for all LEDs. The MAX7221 is compatible with SPI™, QSPI™, and MICROWIRE™, and has slew-rate-limited segment drivers to reduce EMI.

A convenient 4-wire serial interface connects to all common μPs. Individual digits may be addressed and updated without rewriting the entire display. The MAX7219/MAX7221 also allow the user to select code-B decoding or no-decode for each digit.

The devices include a 150μA low-power shutdown mode, analog and digital brightness control, a scan-limit register that allows the user to display from 1 to 8 digits, and a test mode that forces all LEDs on.

For applications requiring 3V operation or segment blinking, refer to the MAX6951 data sheet.

## Applications

● Bar-Graph Displays

● Panel Meters

● Industrial Controllers

● LED Matrix Displays

## Pin Configuration

![](https://www.embedr.app/api/datasheets/ds_1008993dc61d2780cd70/asset?path=images%2F7408fbdd4d72eb3b752fe6dc18078cfa67e9a01bc7ee6d3f1dce12e6f9790bb4.jpg)

## Features

● 10MHz Serial Interface

● Individual LED Segment Control

● Decode/No-Decode Digit Selection

● 150μA Low-Power Shutdown (Data Retained)

● Digital and Analog Brightness Control

● Display Blanked on Power-Up

● Drive Common-Cathode LED Display

Slew-Rate Limited Segment Drivers for Lower EMI (MAX7221)

● SPI, QSPI, MICROWIRE Serial Interface (MAX7221)

● 24-Pin DIP and SO Packages

## Ordering Information

<table><tr><td>PART</td><td>TEMP RANGE</td><td>PIN-PACKAGE</td></tr><tr><td>MAX7219CNG</td><td>0°C to +70°C</td><td>24 Narrow Plastic DIP</td></tr><tr><td>MAX7219CWG</td><td>0°C to +70°C</td><td>24 Wide SO</td></tr><tr><td>MAX7219C/D</td><td>0°C to +70°C</td><td>Dice*</td></tr><tr><td>MAX7219ENG</td><td>-40°C to +85°C</td><td>24 Narrow Plastic DIP</td></tr><tr><td>MAX7219EWG</td><td>-40°C to +85°C</td><td>24 Wide SO</td></tr><tr><td>MAX7219ERG</td><td>-40°C to +85°C</td><td>24 Narrow CERDIP</td></tr></table>

Ordering Information continued at end of data sheet.  
\*Dice are specified at $T _ { A } = + 2 5 ^ { \circ } C .$

Typical Application Circuit  
![](https://www.embedr.app/api/datasheets/ds_1008993dc61d2780cd70/asset?path=images%2F1da0a4e1d40ed0eebc6e7971cfc7853e61634dfc1050dfe1c9e8c5378d061776.jpg)  
SPI and QSPI are trademarks of Motorola Inc. MICROWIRE is a trademark of National Semiconductor Corp.

## Serially Interfaced, 8-Digit LED Display Drivers

## Absolute Maximum Ratings

Voltage (with respect to GND) V+ .. .-0.3V to 6V DIN, CLK, LOAD, CS . .-0.3V to 6V All Other Pins.... ..-0.3V to (V+ + 0.3V) Current DIG 0–DIG 7 Sink Current... .500mA SEG A–G, DP Source Current .. .100mA Continuous Power Dissipation (T<sub>A</sub> = +85°C) Narrow Plastic DIP (derate 13.3mW/°C above +70°C) ... .1066mW Wide SO (derate 11.8mW/°C above +70°C) ...............941mW Narrow CERDIP (derate 12.5mW/°C above +70°C)... 1000mW

Operating Temperature Ranges (T<sub>MIN</sub> to T<sub>MAX</sub>) MAX7219C\_G/MAX7221C\_G . ..0°C to +70°C MAX7219E\_G/MAX7221E\_G.. . -40°C to +85°C Storage Temperature Range ... .-65°C to +160°C Lead Temperature (soldering, 10s) ....... ...+300°C

Stresses beyond those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. These are stress ratings only, and functional operation of the device at these or any other conditions beyond those indicated in the operational sections of the specifications is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.

## Electrical Characteristics

(V+ = 5V ±10%, R<sub>SET</sub> = 9.53kΩ ±1%, T<sub>A</sub> = T<sub>MIN</sub> to T<sub>MAX</sub>, unless otherwise noted.)

<table><tr><td>PARAMETER</td><td>SYMBOL</td><td>CONDITIONS</td><td>MIN</td><td>TYP</td><td>MAX</td><td>UNITS</td></tr><tr><td>Operating Supply Voltage</td><td>V+</td><td></td><td>4.0</td><td></td><td>5.5</td><td>V</td></tr><tr><td>Shutdown Supply Current</td><td>I+</td><td>All digital inputs at V+ or GND, TA=+25°C</td><td></td><td></td><td>150</td><td>μA</td></tr><tr><td rowspan="2">Operating Supply Current</td><td rowspan="2">I+</td><td>RSET=open circuit</td><td></td><td></td><td>8</td><td rowspan="2">mA</td></tr><tr><td>All segments and decimal point on, ISEG=-40mA</td><td></td><td>330</td><td></td></tr><tr><td>Display Scan Rate</td><td>fOSC</td><td>8 digits scanned</td><td>500</td><td>800</td><td>1300</td><td>Hz</td></tr><tr><td>Digit Drive Sink Current</td><td>IDIGIT</td><td>V+=5V, VOUT=0.65V</td><td>320</td><td></td><td></td><td>mA</td></tr><tr><td>Segment Drive Source Current</td><td>ISEG</td><td>TA=+25°C, V+=5V, VOUT=(V+-1V)</td><td>-30</td><td>-40</td><td>-45</td><td>mA</td></tr><tr><td>Segment Current Slew Rate (MAX7221 only)</td><td>ΔISEG/Δt</td><td>TA=+25°C, V+=5V, VOUT=(V+-1V)</td><td>10</td><td>20</td><td>50</td><td>mA/μs</td></tr><tr><td>Segment Drive Current Matching</td><td>ΔISEG</td><td></td><td></td><td>3.0</td><td></td><td>%</td></tr><tr><td>Digit Drive Leakage (MAX7221 only)</td><td>IDIGIT</td><td>Digit off, VDIGIT=V+</td><td></td><td></td><td>-10</td><td>μA</td></tr><tr><td>Segment Drive Leakage (MAX7221 only)</td><td>ISEG</td><td>Segment off, VSEG=0V</td><td></td><td></td><td>1</td><td>μA</td></tr><tr><td>Digit Drive Source Current (MAX7219 only)</td><td>IDIGIT</td><td>Digit off, VDIGIT=(V+-0.3V)</td><td>-2</td><td></td><td></td><td>mA</td></tr><tr><td>Segment Drive Sink Current (MAX7219 only)</td><td>ISEG</td><td>Segment off, VSEG=0.3V</td><td>5</td><td></td><td></td><td>mA</td></tr><tr><td colspan="7">LOGIC INPUTS</td></tr><tr><td>Input Current DIN, CLK, LOAD,  $\overline{CS}$ </td><td> $I_{IH}, I_{IL}$ </td><td> $V_{IN}=0V or V+$ </td><td>-1</td><td></td><td>1</td><td>μA</td></tr><tr><td>Logic High Input Voltage</td><td> $V_{IH}$ </td><td></td><td>3.5</td><td></td><td></td><td>V</td></tr><tr><td>Logic Low Input Voltage</td><td> $V_{IL}$ </td><td></td><td></td><td></td><td>0.8</td><td>V</td></tr><tr><td>Output High Voltage</td><td> $V_{OH}$ </td><td>DOUT,  $I_{SOURCE}=-1mA$ </td><td>V+ - 1</td><td></td><td></td><td>V</td></tr><tr><td>Output Low Voltage</td><td> $V_{OL}$ </td><td>DOUT,  $I_{SINK}=1.6mA$ </td><td></td><td></td><td>0.4</td><td>V</td></tr><tr><td>Hysteresis Voltage</td><td> $\Delta V_I$ </td><td>DIN, CLK, LOAD,  $\overline{CS}$ </td><td></td><td>1</td><td></td><td>V</td></tr><tr><td colspan="7">TIMING CHARACTERISTICS</td></tr><tr><td>CLK Clock Period</td><td> $t_{CP}$ </td><td></td><td>100</td><td></td><td></td><td>ns</td></tr><tr><td>CLK Pulse Width High</td><td> $t_{CH}$ </td><td></td><td>50</td><td></td><td></td><td>ns</td></tr><tr><td>CLK Pulse Width Low</td><td> $t_{CL}$ </td><td></td><td>50</td><td></td><td></td><td>ns</td></tr><tr><td> $\overline{CS}$  Fall to SCLK Rise Setup Time (MAX7221 only)</td><td> $t_{CSS}$ </td><td></td><td>25</td><td></td><td></td><td>ns</td></tr><tr><td>CLK Rise to  $\overline{CS}$  or LOAD Rise Hold Time</td><td> $t_{CSH}$ </td><td></td><td>0</td><td></td><td></td><td>ns</td></tr><tr><td>DIN Setup Time</td><td> $t_{DS}$ </td><td></td><td>25</td><td></td><td></td><td>ns</td></tr><tr><td>DIN Hold Time</td><td> $t_{DH}$ </td><td></td><td>0</td><td></td><td></td><td>ns</td></tr><tr><td>Output Data Propagation Delay</td><td> $t_{DO}$ </td><td> $C_{LOAD}=50pF$ </td><td></td><td></td><td>25</td><td>ns</td></tr><tr><td>Load-Rising Edge to Next Clock Rising Edge (MAX7219 only)</td><td> $t_{LDCK}$ </td><td></td><td>50</td><td></td><td></td><td>ns</td></tr><tr><td>Minimum  $\overline{CS}$  or LOAD Pulse High</td><td> $t_{CSW}$ </td><td></td><td>50</td><td></td><td></td><td>ns</td></tr><tr><td>Data-to-Segment Delay</td><td> $t_{DSPD}$ </td><td></td><td></td><td></td><td>2.25</td><td>ms</td></tr></table>

Typical Operating Characteristics (V+ = +5V, T<sub>A</sub> = +25°C, unless otherwise noted.)

![](https://www.embedr.app/api/datasheets/ds_1008993dc61d2780cd70/asset?path=images%2F8c35f34275786a77156d95e6704bc68b0c0900d8a50b90d4555a1e9df70a0efe.jpg)

![](https://www.embedr.app/api/datasheets/ds_1008993dc61d2780cd70/asset?path=images%2F1ca6c684d19865e23ed5e9bbce09a74e0e29a24dbabd71c47809074da97e49a5.jpg)

![](https://www.embedr.app/api/datasheets/ds_1008993dc61d2780cd70/asset?path=images%2Fac46c92602e84a85efd1fed258aeec763aed1521e149817b8e503ea6f8abe698.jpg)

![](https://www.embedr.app/api/datasheets/ds_1008993dc61d2780cd70/asset?path=images%2F227b01f012f2c3e7c420ca0f9dd720a929989378669ac7a7766b2d87c8fe64c6.jpg)

Pin Description

<table><tr><td>PIN</td><td>NAME</td><td>FUNCTION</td></tr><tr><td>1</td><td>DIN</td><td>Serial-Data Input. Data is loaded into the internal 16-bit shift register on CLK&#x27;s rising edge.</td></tr><tr><td>2, 3, 5–8, 10, 11</td><td>DIG 0–DIG 7</td><td>Eight-digit drive lines that sink current from the display common cathode. The MAX7219 pulls the digit outputs to V+ when turned off. The MAX7221&#x27;s digit drivers are high-impedance when turned off.</td></tr><tr><td>4, 9</td><td>GND</td><td>Ground. Both GND pins must be connected.</td></tr><tr><td rowspan="2">12</td><td>LOAD (MAX7219)</td><td>Load-Data Input. The last 16 bits of serial data are latched on LOAD&#x27;s rising edge.</td></tr><tr><td> $\overline{CS}$ (MAX7221)</td><td>Chip-Select Input. Serial data is loaded into the shift register while  $\overline{CS}$  is low. The last 16 bits of serial data are latched on  $\overline{CS}$ &#x27;s rising edge.</td></tr><tr><td>13</td><td>CLK</td><td>Serial-Clock Input. 10MHz maximum rate. On CLK&#x27;s rising edge, data is shifted into the internal shift register. On CLK&#x27;s falling edge, data is clocked out of DOUT. On the MAX7221, the CLK input is active only while  $\overline{CS}$  is low.</td></tr><tr><td>14–17, 20–23</td><td>SEG A–SEG G, DP</td><td>Seven Segment Drives and Decimal Point Drive that source current to the display. On the MAX7219, when a segment driver is turned off it is pulled to GND. The MAX7221 segment drivers are high-impedance when turned off.</td></tr><tr><td>18</td><td>ISET</td><td>Connect to  $V_{DD}$  through a resistor ( $R_{SET}$ ) to set the peak segment current (Refer to Selecting  $R_{SET}$  Resistor and Using External Drivers section).</td></tr><tr><td>19</td><td>V+</td><td>Positive Supply Voltage. Connect to +5V.</td></tr><tr><td>24</td><td>DOUT</td><td>Serial-Data Output. The data into DIN is valid at DOUT 16.5 clock cycles later. This pin is used to daisy-chain several MAX7219/MAX7221&#x27;s and is never high-impedance.</td></tr></table>

## Functional Diagram

![](https://www.embedr.app/api/datasheets/ds_1008993dc61d2780cd70/asset?path=images%2Ff9c852a7b29baef69c69b091504534b135c515c42154b5adbce531f438a0d64e.jpg)

![](https://www.embedr.app/api/datasheets/ds_1008993dc61d2780cd70/asset?path=images%2F361ecc99ef6bf0acbc5881931968ad7d138d9b8e1837c031aa0827c5fb0935a4.jpg)  
Figure 1. Timing Diagram

Table 1. Serial-Data Format (16 Bits)

<table><tr><td>D15</td><td>D14</td><td>D13</td><td>D12</td><td>D11</td><td>D10</td><td>D9</td><td>D8</td><td>D7</td><td>D6</td><td>D5</td><td>D4</td><td>D3</td><td>D2</td><td>D1</td><td>D0</td></tr><tr><td>X</td><td>X</td><td>X</td><td>X</td><td colspan="4">ADDRESS</td><td colspan="8">MSB DATA LSB</td></tr></table>

## Detailed Description

## MAX7219/MAX7221 Diferences

The MAX7219 and MAX7221 are identical except for two parameters: the MAX7221 segment drivers are slew-rate limited to reduce electromagnetic interference (EMI), and its serial interface is fully SPI compatible.

## Serial-Addressing Modes

For the MAX7219, serial data at DIN, sent in 16-bit packets, is shifted into the internal 16-bit shift register with each rising edge of CLK regardless of the state of LOAD. For the MAX7221, CS must be low to clock data in or out. The data is then latched into either the digit or control registers on the rising edge of LOAD/CS. LOAD/CS must go high concurrently with or after the 16th rising clock edge, but before the next rising clock edge or data will be lost. Data at DIN is propagated through the shift register and appears at DOUT 16.5 clock cycles later. Data is clocked out on the falling edge of CLK. Data bits are labeled D0–D15 (Table 1). D8–D11 contain the register address. D0–D7 contain the data, and D12–D15 are “don’t care” bits. The first received is D15, the most significant bit (MSB).

## Digit and Control Registers

Table 2 lists the 14 addressable digit and control registers. The digit registers are realized with an on-chip, 8x8 dual-port SRAM. They are addressed directly so that individual digits can be updated and retain data as long as V+ typically exceeds 2V. The control registers consist of decode mode, display intensity, scan limit (number of scanned digits), shutdown, and display test (all LEDs on).

## Shutdown Mode

When the MAX7219 is in shutdown mode, the scan oscillator is halted, all segment current sources are pulled to ground, and all digit drivers are pulled to V+, thereby blanking the display. The MAX7221 is identical, except the drivers are high-impedance. Data in the digit and control registers remains unaltered. Shutdown can be used to save power or as an alarm to flash the display by successively entering and leaving shutdown mode. For minimum supply current in shutdown mode, logic inputs should be at ground or V+ (CMOS-logic levels).

Typically, it takes less than 250μs for the MAX7219/ MAX7221 to leave shutdown mode. The display driver can be programmed while in shutdown mode, and shutdown mode can be overridden by the display-test function.

Table 2. Register Address Map

<table><tr><td rowspan="2">REGISTER</td><td colspan="5">ADDRESS</td><td rowspan="2">HEX CODE</td></tr><tr><td>D15–D12</td><td>D11</td><td>D10</td><td>D9</td><td>D8</td></tr><tr><td>No-Op</td><td>X</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0xX0</td></tr><tr><td>Digit 0</td><td>X</td><td>0</td><td>0</td><td>0</td><td>1</td><td>0xX1</td></tr><tr><td>Digit 1</td><td>X</td><td>0</td><td>0</td><td>1</td><td>0</td><td>0xX2</td></tr><tr><td>Digit 2</td><td>X</td><td>0</td><td>0</td><td>1</td><td>1</td><td>0xX3</td></tr><tr><td>Digit 3</td><td>X</td><td>0</td><td>1</td><td>0</td><td>0</td><td>0xX4</td></tr><tr><td>Digit 4</td><td>X</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0xX5</td></tr><tr><td>Digit 5</td><td>X</td><td>0</td><td>1</td><td>1</td><td>0</td><td>0xX6</td></tr><tr><td>Digit 6</td><td>X</td><td>0</td><td>1</td><td>1</td><td>1</td><td>0xX7</td></tr><tr><td>Digit 7</td><td>X</td><td>1</td><td>0</td><td>0</td><td>0</td><td>0xX8</td></tr><tr><td>Decode Mode</td><td>X</td><td>1</td><td>0</td><td>0</td><td>1</td><td>0xX9</td></tr><tr><td>Intensity</td><td>X</td><td>1</td><td>0</td><td>1</td><td>0</td><td>0xXA</td></tr><tr><td>Scan Limit</td><td>X</td><td>1</td><td>0</td><td>1</td><td>1</td><td>0xXB</td></tr><tr><td>Shutdown</td><td>X</td><td>1</td><td>1</td><td>0</td><td>0</td><td>0xXC</td></tr><tr><td>Display Test</td><td>X</td><td>1</td><td>1</td><td>1</td><td>1</td><td>0xXF</td></tr></table>

## Initial Power-Up

On initial power-up, all control registers are reset, the display is blanked, and the MAX7219/MAX7221 enter shutdown mode. Program the display driver prior to display use. Otherwise, it will initially be set to scan one digit, it will not decode data in the data registers, and the intensity register will be set to its minimum value.

## Decode-Mode Register

The decode-mode register sets BCD code B (0-9, E, H, L, P, and -) or no-decode operation for each digit. Each bit in the register corresponds to one digit. A logic high selects code B decoding while logic low bypasses the decoder. Examples of the decode mode control-register format are shown in Table 4.

When the code B decode mode is used, the decoder looks only at the lower nibble of the data in the digit registers (D3–D0), disregarding bits D4–D6. D7, which sets the decimal point (SEG DP), is independent of the decoder and is positive logic (D7 = 1 turns the decimal point on). Table 5 lists the code B font.

When no-decode is selected, data bits D7–D0 correspond to the segment lines of the MAX7219/MAX7221. Table 6 shows the one-to-one pairing of each data bit to the appropriate segment line.

Table 3. Shutdown Register Format (Address (Hex) = 0xXC)

<table><tr><td rowspan="2">MODE</td><td rowspan="2">ADDRESS CODE (HEX)</td><td colspan="8">REGISTER DATA</td></tr><tr><td>D7</td><td>D6</td><td>D5</td><td>D4</td><td>D3</td><td>D2</td><td>D1</td><td>D0</td></tr><tr><td>Shutdown Mode</td><td>0xXC</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Normal Operation</td><td>0xXC</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>1</td></tr></table>

Table 4. Decode-Mode Register Examples (Address (Hex) = 0xX9)

<table><tr><td rowspan="2">DECODE MODE</td><td colspan="8">REGISTER DATA</td><td rowspan="2">HEX CODE</td></tr><tr><td>D7</td><td>D6</td><td>D5</td><td>D4</td><td>D3</td><td>D2</td><td>D1</td><td>D0</td></tr><tr><td>No decode for digits 7–0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0x00</td></tr><tr><td>Code B decode for digit 0No decode for digits 7–1</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>1</td><td>0x01</td></tr><tr><td>Code B decode for digits 3–0No decode for digits 7–4</td><td>0</td><td>0</td><td>0</td><td>0</td><td>1</td><td>1</td><td>1</td><td>1</td><td>0x0F</td></tr><tr><td>Code B decode for digits 7–0</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>0xFF</td></tr></table>

![](https://www.embedr.app/api/datasheets/ds_1008993dc61d2780cd70/asset?path=images%2Facefa27fd6ff0b39217dae78ea5657dd853c5801250bd74e425fab7cb5b29341.jpg)

Table 5. Code B Font

<table><tr><td rowspan="2">7-SEGMENT CHARACTER</td><td colspan="6">REGISTER DATA</td><td colspan="8">ON SEGMENTS = 1</td></tr><tr><td>D7*</td><td>D6-D4</td><td>D3</td><td>D2</td><td>D1</td><td>D0</td><td>DP*</td><td>A</td><td>B</td><td>C</td><td>D</td><td>E</td><td>F</td><td>G</td></tr><tr><td>0</td><td></td><td>X</td><td>0</td><td>0</td><td>0</td><td>0</td><td></td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>0</td></tr><tr><td>1</td><td></td><td>X</td><td>0</td><td>0</td><td>0</td><td>1</td><td></td><td>0</td><td>1</td><td>1</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>2</td><td></td><td>X</td><td>0</td><td>0</td><td>1</td><td>0</td><td></td><td>1</td><td>1</td><td>0</td><td>1</td><td>1</td><td>0</td><td>1</td></tr><tr><td>3</td><td></td><td>X</td><td>0</td><td>0</td><td>1</td><td>1</td><td></td><td>1</td><td>1</td><td>1</td><td>1</td><td>0</td><td>0</td><td>1</td></tr><tr><td>4</td><td></td><td>X</td><td>0</td><td>1</td><td>0</td><td>0</td><td></td><td>0</td><td>1</td><td>1</td><td>0</td><td>0</td><td>1</td><td>1</td></tr><tr><td>5</td><td></td><td>X</td><td>0</td><td>1</td><td>0</td><td>1</td><td></td><td>1</td><td>0</td><td>1</td><td>1</td><td>0</td><td>1</td><td>1</td></tr><tr><td>6</td><td></td><td>X</td><td>0</td><td>1</td><td>1</td><td>0</td><td></td><td>1</td><td>0</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td></tr><tr><td>7</td><td></td><td>X</td><td>0</td><td>1</td><td>1</td><td>1</td><td></td><td>1</td><td>1</td><td>1</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>8</td><td></td><td>X</td><td>1</td><td>0</td><td>0</td><td>0</td><td></td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td></tr><tr><td>9</td><td></td><td>X</td><td>1</td><td>0</td><td>0</td><td>1</td><td></td><td>1</td><td>1</td><td>1</td><td>1</td><td>0</td><td>1</td><td>1</td></tr><tr><td>—</td><td></td><td>X</td><td>1</td><td>0</td><td>1</td><td>0</td><td></td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>1</td></tr><tr><td>E</td><td></td><td>X</td><td>1</td><td>0</td><td>1</td><td>1</td><td></td><td>1</td><td>0</td><td>0</td><td>1</td><td>1</td><td>1</td><td>1</td></tr><tr><td>H</td><td></td><td>X</td><td>1</td><td>1</td><td>0</td><td>0</td><td></td><td>0</td><td>1</td><td>1</td><td>0</td><td>1</td><td>1</td><td>1</td></tr><tr><td>L</td><td></td><td>X</td><td>1</td><td>1</td><td>0</td><td>1</td><td></td><td>0</td><td>0</td><td>0</td><td>1</td><td>1</td><td>1</td><td>0</td></tr><tr><td>P</td><td></td><td>X</td><td>1</td><td>1</td><td>1</td><td>0</td><td></td><td>1</td><td>1</td><td>0</td><td>0</td><td>1</td><td>1</td><td>1</td></tr><tr><td>blank</td><td></td><td>X</td><td>1</td><td>1</td><td>1</td><td>1</td><td></td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr></table>

\*The decimal point is set by bit $D 7 = 1$

Table 6. No-Decode Mode Data Bits and Corresponding Segment Lines

<table><tr><td rowspan="2"></td><td colspan="8">REGISTER DATA</td></tr><tr><td>D7</td><td>D6</td><td>D5</td><td>D4</td><td>D3</td><td>D2</td><td>D1</td><td>D0</td></tr><tr><td>Corresponding Segment Line</td><td>DP</td><td>A</td><td>B</td><td>C</td><td>D</td><td>E</td><td>F</td><td>G</td></tr></table>

## Intensity Control and Interdigit Blanking

The MAX7219/MAX7221 allow display brightness to be controlled with an external resistor (R<sub>SET</sub>) connected between V+ and ISET. The peak current sourced from the segment drivers is nominally 100 times the current entering ISET. This resistor can either be fixed or variable to allow brightness adjustment from the front panel. Its minimum value should be 9.53kΩ, which typically sets the segment current at 40mA. Display brightness can also be controlled digitally by using the intensity register.

Digital control of display brightness is provided by an internal pulse-width modulator, which is controlled by the lower nibble of the intensity register. The modulator scales the average segment current in 16 steps from a maximum of 31/32 down to 1/32 of the peak current set by R<sub>SET</sub> (15/16 to 1/16 on MAX7221). Table 7 lists the intensity register format. The minimum interdigit blanking time is set to 1/32 of a cycle.

Table 7. Intensity Register Format (Address (Hex) = 0xXA)

<table><tr><td colspan="2">DUTY CYCLE</td><td rowspan="2">D7</td><td rowspan="2">D6</td><td rowspan="2">D5</td><td rowspan="2">D4</td><td rowspan="2">D3</td><td rowspan="2">D2</td><td rowspan="2">D1</td><td rowspan="2">D0</td><td rowspan="2">HEX CODE</td></tr><tr><td>MAX7219</td><td>MAX7221</td></tr><tr><td>1/32(min on)</td><td>1/16(min on)</td><td>X</td><td>X</td><td>X</td><td>X</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0xX0</td></tr><tr><td>3/32</td><td>2/16</td><td>X</td><td>X</td><td>X</td><td>X</td><td>0</td><td>0</td><td>0</td><td>1</td><td>0xX1</td></tr><tr><td>5/32</td><td>3/16</td><td>X</td><td>X</td><td>X</td><td>X</td><td>0</td><td>0</td><td>1</td><td>0</td><td>0xX2</td></tr><tr><td>7/32</td><td>4/16</td><td>X</td><td>X</td><td>X</td><td>X</td><td>0</td><td>0</td><td>1</td><td>1</td><td>0xX3</td></tr><tr><td>9/32</td><td>5/16</td><td>X</td><td>X</td><td>X</td><td>X</td><td>0</td><td>1</td><td>0</td><td>0</td><td>0xX4</td></tr><tr><td>11/32</td><td>6/16</td><td>X</td><td>X</td><td>X</td><td>X</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0xX5</td></tr><tr><td>13/32</td><td>7/16</td><td>X</td><td>X</td><td>X</td><td>X</td><td>0</td><td>1</td><td>1</td><td>0</td><td>0xX6</td></tr><tr><td>15/32</td><td>8/16</td><td>X</td><td>X</td><td>X</td><td>X</td><td>0</td><td>1</td><td>1</td><td>1</td><td>0xX7</td></tr><tr><td>17/32</td><td>9/16</td><td>X</td><td>X</td><td>X</td><td>X</td><td>1</td><td>0</td><td>0</td><td>0</td><td>0xX8</td></tr><tr><td>19/32</td><td>10/16</td><td>X</td><td>X</td><td>X</td><td>X</td><td>1</td><td>0</td><td>0</td><td>1</td><td>0xX9</td></tr><tr><td>21/32</td><td>11/16</td><td>X</td><td>X</td><td>X</td><td>X</td><td>1</td><td>0</td><td>1</td><td>0</td><td>0xXA</td></tr><tr><td>23/32</td><td>12/16</td><td>X</td><td>X</td><td>X</td><td>X</td><td>1</td><td>0</td><td>1</td><td>1</td><td>0xXB</td></tr><tr><td>25/32</td><td>13/16</td><td>X</td><td>X</td><td>X</td><td>X</td><td>1</td><td>1</td><td>0</td><td>0</td><td>0xXC</td></tr><tr><td>27/32</td><td>14/16</td><td>X</td><td>X</td><td>X</td><td>X</td><td>1</td><td>1</td><td>0</td><td>1</td><td>0xXD</td></tr><tr><td>29/32</td><td>15/16</td><td>X</td><td>X</td><td>X</td><td>X</td><td>1</td><td>1</td><td>1</td><td>0</td><td>0xXE</td></tr><tr><td>31/32</td><td>15/16(max on)</td><td>X</td><td>X</td><td>X</td><td>X</td><td>1</td><td>1</td><td>1</td><td>1</td><td>0xXF</td></tr></table>

Table 8. Scan-Limit Register Format (Address (Hex) = 0xXB)

<table><tr><td rowspan="2">SCAN LIMIT</td><td colspan="8">REGISTER DATA</td><td rowspan="2">HEX CODE</td></tr><tr><td>D7</td><td>D6</td><td>D5</td><td>D4</td><td>D3</td><td>D2</td><td>D1</td><td>D0</td></tr><tr><td>Display digit 0 only*</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>0</td><td>0</td><td>0</td><td>0xX0</td></tr><tr><td>Display digits 0 &amp; 1*</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>0</td><td>0</td><td>1</td><td>0xX1</td></tr><tr><td>Display digits 0 1 2*</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>0</td><td>1</td><td>0</td><td>0xX2</td></tr><tr><td>Display digits 0 1 2 3</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>0</td><td>1</td><td>1</td><td>0xX3</td></tr><tr><td>Display digits 0 1 2 3 4</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>1</td><td>0</td><td>0</td><td>0xX4</td></tr><tr><td>Display digits 0 1 2 3 4 5</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>1</td><td>0</td><td>1</td><td>0xX5</td></tr><tr><td>Display digits 0 1 2 3 4 5 6</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>1</td><td>1</td><td>0</td><td>0xX6</td></tr><tr><td>Display digits 0 1 2 3 4 5 6 7</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>1</td><td>1</td><td>1</td><td>0xX7</td></tr></table>

\*See Scan-Limit Register section for application.

## Scan-Limit Register

The scan-limit register sets how many digits are displayed, from 1 to 8. They are displayed in a multiplexed manner with a typical display scan rate of 800Hz with 8 digits displayed. If fewer digits are displayed, the scan rate is

8f<sub>OSC</sub>/N, where N is the number of digits scanned. Since the number of scanned digits affects the display brightness, the scan-limit register should not be used to blank portions of the display (such as leading zero suppression). Table 8 lists the scan-limit register format.

# Serially Interfaced, 8-Digit LED Display Drivers

If the scan-limit register is set for three digits or less, individual digit drivers will dissipate excessive amounts of power. Consequently, the value of the R<sub>SET</sub> resistor must be adjusted according to the number of digits displayed, to limit individual digit driver power dissipation. Table 9 lists the number of digits displayed and the corresponding maximum recommended segment current when the digit drivers are used.

## Display-Test Register

The display-test register operates in two modes: normal and display test. Display-test mode turns all LEDs on by overriding, but not altering, all controls and digit registers (including the shutdown register). In display-test mode, 8 digits are scanned and the duty cycle is 31/32 (15/16 for MAX7221). Table 10 lists the display-test register format.

Table 9. Maximum Segment Current for 1-, 2-, or 3-Digit Displays

<table><tr><td>NUMBER OF DIGITS DISPLAYED</td><td>MAXIMUM SEGMENT CURRENT (mA)</td></tr><tr><td>1</td><td>10</td></tr><tr><td>2</td><td>20</td></tr><tr><td>3</td><td>30</td></tr></table>

Table 10. Display-Test Register Format (Address (Hex) = 0xXF)

<table><tr><td rowspan="2">MODE</td><td colspan="8">REGISTER DATA</td></tr><tr><td>D7</td><td>D6</td><td>D5</td><td>D4</td><td>D3</td><td>D2</td><td>D1</td><td>D0</td></tr><tr><td>Normal Operation</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>0</td></tr><tr><td>Display Test Mode</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>1</td></tr></table>

Note: The MAX7219/MAX7221 remain in display-test mode (all LEDs on) until the display-test register is reconfigured for normal operation.

## No-Op Register

The no-op register is used when cascading MAX7219s or MAX7221s. Connect all devices’ LOAD/CS inputs together and connect DOUT to DIN on adjacent devices. DOUT is a CMOS logic-level output that easily drives DIN of successively cascaded parts. (Refer to the Serial Addressing Modes section for detailed information on serial input/output timing.) For example, if four MAX7219s are cascaded, then to write to the fourth chip, sent the desired 16-bit word, followed by three no-op codes (hex 0xX0XX, see Table 2). When LOAD/CS goes high, data is latched in all devices. The first three chips receive no-op commands, and the fourth receives the intended data.

## Applications Information

## Supply Bypassing and Wiring

To minimize power-supply ripple due to the peak digit driver currents, connect a 10μF electrolytic and a 0.1μF ceramic capacitor between V+ and GND as close to the device as possible. The MAX7219/MAX7221 should be placed in close proximity to the LED display, and connections should be kept as short as possible to minimize the effects of wiring inductance and electro-magnetic interference. Also, both GND pins must be connected to ground.

## Selecting RSET Resistor and Using External Drivers

The current per segment is approximately 100 times the current in ISET. To select R<sub>SET</sub>, see Table 11. The MAX7219/MAX7221’s maximum recommended segment current is 40mA. For segment current levels above these levels, external digit drivers will be needed. In this application, the MAX7219/MAX7221 serve only as controllers for other high-current drivers or transistors. Therefore, to conserve power, use R<sub>SET</sub> = 47kΩ when using external current sources as segment drivers.

The example in Figure 2 uses the MAX7219/MAX7221’s segment drivers, a MAX394 single-pole double-throw analog switch, and external transistors to drive 2.3” AND2307SLC common-cathode displays. The 5.6V zener diode has been added in series with the decimal point LED because the decimal point LED forward voltage is typically 4.2V. For all other segments the LED forward voltage is typically 8V. Since external transistors are used to sink current (DIG 0 and DIG 1 are used as logic switches), peak segment currents of 45mA are allowed even though only two digits are displayed. In applications where the MAX7219/MAX7221’s digit drivers are used to sink current and fewer than four digits are displayed, Table 9 specifies the maximum allowable segment current. R<sub>SET</sub> must be selected accordingly (Table 11).

Refer to the Continuous Power Dissipation section of the Absolute Maximum Ratings to calculate acceptable limits for ambient temperature, segment current, and the LED forward-voltage drop.

Table 11. RSET vs. Segment Current and LED Forward Voltage

<table><tr><td rowspan="2"> $I_{SEG}$  (mA)</td><td colspan="5"> $V_{LED}$  (V)</td></tr><tr><td>1.5</td><td>2.0</td><td>2.5</td><td>3.0</td><td>3.5</td></tr><tr><td>40</td><td>12.2</td><td>11.8</td><td>11.0</td><td>10.6</td><td>9.69</td></tr><tr><td>30</td><td>17.8</td><td>17.1</td><td>15.8</td><td>15.0</td><td>14.0</td></tr><tr><td>20</td><td>29.8</td><td>28.0</td><td>25.9</td><td>24.5</td><td>22.6</td></tr><tr><td>10</td><td>66.7</td><td>63.7</td><td>59.3</td><td>55.4</td><td>51.2</td></tr></table>

Note: $R _ { S E T }$ values are in Kilo Ohms (kΩ)

## Computing Power Dissipation

The upper limit for power dissipation (PD) for the MAX7219/MAX7221 is determined from the following equation:

$$
P D = (V + x 8 m A) + (V + - V _ {L E D}) (D U T Y x I _ {S E G} x N)
$$

where:

V+ = supply voltage

DUTY = duty cycle set by intensity register

N = number of segments driven (worst case is 8)

$$
V _ {\text { LED }} = \text { LED   forward   voltage }
$$

I<sub>SEG</sub> = segment current set by R<sub>SET</sub>

Dissipation example:

I<sub>SEG</sub> = 40mA, N = 8, DUTY = 31/32, V<sub>LED</sub> = 1.8V at 40mA, V+ = 5.25V

$$
\begin{array}{l} \mathrm{PD} = (5. 2 5 \mathrm{V} \times 8 \mathrm{mA}) + (5. 2 5 \mathrm{V} - 1. 8 \mathrm{V}) (3 1 / 3 2 \times \\ 4 0 \mathrm{mA} \times 8) = 1. 1 1 \mathrm{W} \end{array}
$$

Thus, for a CERDIP package $( \Theta _ { \mathrm { J A } } = + 8 0 ^ { \circ } \mathsf { C } N$ from Table 12), the maximum allowed ambient temperature $\mathsf { T } _ { \mathsf { A } }$ is given by:

$$
T _ {J (M A X)} = T _ {A} + P D \times \theta_ {J A}
$$

$$
1 5 0 ^ {\circ} \mathrm{C} = T _ {A} + 1. 1 1 \mathrm{W} \times 8 0 ^ {\circ} \mathrm{C} / \mathrm{W}
$$

where $\mathsf { T } _ { \mathsf { A } } = + 6 1 . 2 ^ { \circ } \mathsf { C } .$

The $\mathsf { T } _ { \mathsf { A } }$ limits for PDIP and SO packages in the dissipation example above are $+ 6 6 . 7 ^ { \circ } \mathrm { C }$ and $+ 5 5 . 6 ^ { \circ } C$ , respectively.

Table 12. Package Thermal Resistance Data

<table><tr><td>PACKAGE</td><td>THERMAL RESISTANCE ( $\theta_{JA}$ )</td></tr><tr><td>24 Narrow DIP</td><td>+75°C/W</td></tr><tr><td>24 Wide SO</td><td>+85°C/W</td></tr><tr><td>24 CERDIP</td><td>+80°C/W</td></tr><tr><td colspan="2">Maximum Junction Temperature ( $T_J$ ) = +150°C</td></tr><tr><td colspan="2">Maximum Ambient Temperature ( $T_A$ ) = +85°C</td></tr></table>

## Cascading Drivers

The example in Figure 3 drives 16 digits using a 3-wire μP interface. If the number of digits is not a multiple of 8, set both drivers’ scan limits registers to the same number so one display will not appear brighter than the other. For example, if 12 digits are need, use 6 digits per display with both scan-limit registers set for 6 digits so that both displays have a 1/6 duty cycle per digit. If 11 digits are needed, set both scan-limit registers for 6 digits and leave one digit driver unconnected. If one display for 6 digits and the other for 5 digits, the second display will appear brighter because its duty cycle per digit will be 1/5 while the first display’s will be 1/6. Refer to the No-Op Register section for additional information.

![](https://www.embedr.app/api/datasheets/ds_1008993dc61d2780cd70/asset?path=images%2Fc2fb585102be72ad5c7cb19e9b8414c2448cc29ecf12de7812002f5ec957623b.jpg)  
Figure 2. MAX7219/MAX7221 Driving 2.3in Displays

![](https://www.embedr.app/api/datasheets/ds_1008993dc61d2780cd70/asset?path=images%2Ff882afaeb69048ca864b9b82c50c0cb50e0eadfddc4273475230e07b2e922adf.jpg)  
Figure 3. Cascading MAX7219/MAX7221s to Drive 16 Seven-Segment LED Digits

Serially Interfaced, 8-Digit LED Display Drivers

Ordering Information (continued)

<table><tr><td>PART</td><td>TEMP RANGE</td><td>PIN-PACKAGE</td></tr><tr><td>MAX7221CNG</td><td>0°C to +70°C</td><td>24 Narrow Plastic DIP</td></tr><tr><td>MAX7221CWG</td><td>0°C to +70°C</td><td>24 Wide SO</td></tr><tr><td>MAX7221C/D</td><td>0°C to +70°C</td><td>Dice*</td></tr><tr><td>MAX7221ENG</td><td>-40°C to +85°C</td><td>24 Narrow Plastic DIP</td></tr><tr><td>MAX7221EWG</td><td>-40°C to +85°C</td><td>24 Wide SO</td></tr><tr><td>MAX7221ERG</td><td>-40°C to +85°C</td><td>24 Narrow CERDIP</td></tr></table>

\*Dice are specified at $T _ { A } = + 2 5 ^ { \circ } C .$

## Package Information

For the latest package outline information and land patterns (footprints), go to www.maximintegrated.com/packages. Note that a “+”, “#”, or “-” in the package code indicates RoHS status only. Package drawings may show a different suffix character, but the drawing pertains to the package regardless of RoHS status.

<table><tr><td>PACKAGE TYPE</td><td>PACKAGE CODE</td><td>OUTLINE NO.</td><td>LAND PATTERN NO.</td></tr><tr><td>24 PDIP</td><td>N24+1</td><td>21-0043</td><td>—</td></tr><tr><td>24 SOIC</td><td>W24+1</td><td>21-0042</td><td>90-0182</td></tr></table>

Chip Topography  
![](https://www.embedr.app/api/datasheets/ds_1008993dc61d2780cd70/asset?path=images%2Fd88d26c13f331cd107fe07c3e316f87259d9c3664e8acde4807c447b722b230a.jpg)  
TRANSISTOR COUNT: 5267 SUBSTRATE CONNECTED TO GND

## Serially Interfaced, 8-Digit LED Display Drivers

## Revision History

<table><tr><td>REVISION NUMBER</td><td>REVISION DATE</td><td>DESCRIPTION</td><td>PAGES CHANGED</td></tr><tr><td>5</td><td>8/19</td><td>Updated No-Op Register section</td><td>10</td></tr><tr><td>6</td><td>8/21</td><td>Added Note to Table 11 and updated Package Information section</td><td>11, 14</td></tr></table>

For pricing, delivery, and ordering information, please visit Maxim Integrated’s online storefront at https://www.maximintegrated.com/en/storefront/storefront.html.