280-20519-0-MAX7219
280-20519-0-MAX7219
280-20519-0-MAX7219
MAX7219/MAX7221
The MAX7219/MAX7221 are compact, serial input/out- ♦ 10MHz Serial Interface
put common-cathode display drivers that interface
microprocessors (µPs) to 7-segment numeric LED dis- ♦ Individual LED Segment Control
plays of up to 8 digits, bar-graph displays, or 64 indi- ♦ Decode/No-Decode Digit Selection
vidual LEDs. Included on-chip are a BCD code-B
decoder, multiplex scan circuitry, segment and digit ♦ 150µA Low-Power Shutdown (Data Retained)
drivers, and an 8x8 static RAM that stores each digit. ♦ Digital and Analog Brightness Control
Only one external resistor is required to set the seg-
ment current for all LEDs. The MAX7221 is compatible ♦ Display Blanked on Power-Up
with SPI™, QSPI™, and Microwire™, and has slew-rate- ♦ Drive Common-Cathode LED Display
limited segment drivers to reduce EMI.
A convenient 3-wire serial interface connects to all ♦ Slew-Rate Limited Segment Drivers
common µPs. Individual digits may be addressed and for Lower EMI (MAX7221)
updated without rewriting the entire display. The ♦ SPI, QSPI, Microwire Serial Interface (MAX7221)
MAX7219/MAX7221 also allow the user to select code-
B decoding or no-decode for each digit. ♦ 24-Pin DIP and SO Packages
The devices include a 150µA low-power shutdown
mode, analog and digital brightness control, a scan- ______________Ordering Information
limit register that allows the user to display from 1 to 8 PART TEMP. RANGE PIN-PACKAGE
digits, and a test mode that forces all LEDs on. MAX7219CNG 0°C to +70°C 24 Narrow Plastic DIP
________________________Applications MAX7219CWG 0°C to +70°C 24 Wide SO
MAX7219C/D 0°C to +70°C Dice*
Bar-Graph Displays
MAX7219ENG -40°C to +85°C 24 Narrow Plastic DIP
7-Segment Displays
MAX7219EWG -40°C to +85°C 24 Wide SO
Industrial Controllers MAX7219ERG -40°C to +85°C 24 Narrow CERDIP
Panel Meters Ordering Information continued at end of data sheet.
LED Matrix Displays *Dice are specified at TA = +25°C.
DIG 0 2 23 SEG D
SPI and QSPI are trademarks of Motorola Inc. Microwire is a trademark of National Semiconductor Corp.
For free samples & the latest literature: http://www.maxim-ic.com, or phone 1-800-998-8800.
For small orders, phone 408-737-7600 ext. 3468.
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%, RSET = 9.53kΩ ±1%, TA = TMIN to TMAX, unless otherwise noted.)
2 _______________________________________________________________________________________
Serially Interfaced, 8-Digit LED Display Drivers
MAX7219/MAX7221
(V+ = 5V ±10%, RSET =9.53kΩ ±1%, TA = TMIN to TMAX, unless otherwise noted.)
_______________________________________________________________________________________ 3
Serially Interfaced, 8-Digit LED Display Drivers
MAX7219/21 01
MAX7219/21 02
820
60
810
RSET = 10kΩ
800 50
790
40
780 RSET = 20kΩ
770 30
MAX7219 MAX7221
SEGMENT OUTPUT CURRENT SEGMENT OUTPUT CURRENT
MAX7219/21 03
MAX7219/21 04
MAXIMUM INTENSITY = 31/32 MAXIMUM INTENSITY = 15/16
10mA/div 10mA/div
0 0
5µs/div 5µs/div
4 _______________________________________________________________________________________
Serially Interfaced, 8-Digit LED Display Drivers
______________________________________________________________Pin Description
MAX7219/MAX7221
PIN NAME FUNCTION
1 DIN Serial-Data Input. Data is loaded into the internal 16-bit shift register on CLK’s rising edge.
Eight-Digit Drive Lines that sink current from the display common cathode. The MAX7219 pulls
2, 3, 5–8,
DIG 0–DIG 7 the digit outputs to V+ when turned off. The MAX7221’s digit drivers are high-impedance when
10, 11
turned off.
4, 9 GND Ground (both GND pins must be connected)
LOAD
Load-Data Input. The last 16 bits of serial data are latched on LOAD’s rising edge.
(MAX7219)
12
CS Chip-Select Input. Serial data is loaded into the shift register while CS is low. The last 16 bits of
(MAX7221) serial data are latched on CS’s rising edge.
Serial-Clock Input. 10MHz maximum rate. On CLK’s rising edge, data is shifted into the inter-
13 CLK nal shift register. On CLK’s falling edge, data is clocked out of DOUT. On the MAX7221, the
CLK input is active only while CS is low.
Seven Segment Drives and Decimal Point Drive that source current to the display. On the
14–17, SEG A–SEG G,
MAX7219, when a segment driver is turned off it is pulled to GND. The MAX7221 segment dri-
20–23 DP
vers are high-impedance when turned off.
Connect to VDD through a resistor (RSET) to set the peak segment current (Refer to Selecting
18 ISET
RSET Resistor section).
19 V+ Positive Supply Voltage. Connect to +5V.
Serial-Data Output. The data into DIN is valid at DOUT 16.5 clock cycles later. This pin is used
24 DOUT
to daisy-chain several MAX7219/MAX7221’s and is never high-impedance.
_________________________________________________________Functional Diagram
8 SHUTDOWN REGISTER
CODE B MODE REGISTER
V+ INTENSITY
ROM WITH
PULSE-
BYPASS INTENSITY REGISTER
WIDTH
RSET SCAN-LIMIT REGISTER MODULATOR
CLK
(LSB) (MSB)
( ) MAX7221 ONLY
_______________________________________________________________________________________ 5
Serially Interfaced, 8-Digit LED Display Drivers
MAX7219/MAX7221
CS tCSW
OR LOAD
tCSH
tCSS tCL tCH tCP tLDCK
CLK
tDH
tDS
tDO
DOUT
6 _______________________________________________________________________________________
Serially Interfaced, 8-Digit LED Display Drivers
MAX7219/MAX7221
On initial power-up, all control registers are reset, the
ADDRESS display is blanked, and the MAX7219/MAX7221 enter
HEX shutdown mode. Program the display driver prior to
REGISTER D15–
D11 D10 D9 D8 CODE display use. Otherwise, it will initially be set to scan one
D12
digit, it will not decode data in the data registers, and
No-Op X 0 0 0 0 X0 the intensity register will be set to its minimum value.
Digit 0 X 0 0 0 1 X1
Decode-Mode Register
Digit 1 X 0 0 1 0 X2 The decode-mode register sets BCD code B (0-9, E, H,
Digit 2 X 0 0 1 1 X3 L, P, and -) or no-decode operation for each digit. Each
bit in the register corresponds to one digit. A logic high
Digit 3 X 0 1 0 0 X4
selects code B decoding while logic low bypasses the
Digit 4 X 0 1 0 1 X5 decoder. Examples of the decode mode control-regis-
Digit 5 X 0 1 1 0 X6 ter format are shown in Table 4.
Digit 6 X 0 1 1 1 X7 When the code B decode mode is used, the decoder
looks only at the lower nibble of the data in the digit
Digit 7 X 1 0 0 0 X8 registers (D3–D0), disregarding bits D4–D6. D7, which
Decode sets the decimal point (SEG DP), is independent of the
X 1 0 0 1 X9
Mode decoder and is positive logic (D7 = 1 turns the decimal
Intensity X 1 0 1 0 XA
point on). Table 5 lists the code B font.
Scan Limit X 1 0 1 1 XB
When no-decode is selected, data bits D7–D0 corre-
spond to the segment lines of the MAX7219/MAX7221.
Shutdown X 1 1 0 0 XC Table 6 shows the one-to-one pairing of each data bit
Display to the appropriate segment line.
X 1 1 1 1 XF
Test
Shutdown
XC X X X X X X X 0
Mode
Normal
XC X X X X X X X 1
Operation
_______________________________________________________________________________________ 7
Serially Interfaced, 8-Digit LED Display Drivers
MAX7219/MAX7221
0 X 0 0 0 0 1 1 1 1 1 1 0
1 X 0 0 0 1 0 1 1 0 0 0 0
2 X 0 0 1 0 1 1 0 1 1 0 1
3 X 0 0 1 1 1 1 1 1 0 0 1
4 X 0 1 0 0 0 1 1 0 0 1 1
5 X 0 1 0 1 1 0 1 1 0 1 1
6 X 0 1 1 0 1 0 1 1 1 1 1
7 X 0 1 1 1 1 1 1 0 0 0 0
8 X 1 0 0 0 1 1 1 1 1 1 1
9 X 1 0 0 1 1 1 1 1 0 1 1
— X 1 0 1 0 0 0 0 0 0 0 1
E X 1 0 1 1 1 0 0 1 1 1 1
H X 1 1 0 0 0 1 1 0 1 1 1
L X 1 1 0 1 0 0 0 1 1 1 0
P X 1 1 1 0 1 1 0 0 1 1 1
blank X 1 1 1 1 0 0 0 0 0 0 0
8 _______________________________________________________________________________________
Serially Interfaced, 8-Digit LED Display Drivers
MAX7219/MAX7221
DUTY CYCLE HEX
D7 D6 D5 D4 D3 D2 D1 D0
MAX7219 MAX7221 CODE
1/32 1/16
X X X X 0 0 0 0 X0
(min on) (min on)
3/32 2/16 X X X X 0 0 0 1 X1
5/32 3/16 X X X X 0 0 1 0 X2
7/32 4/16 X X X X 0 0 1 1 X3
9/32 5/16 X X X X 0 1 0 0 X4
11/32 6/16 X X X X 0 1 0 1 X5
13/32 7/16 X X X X 0 1 1 0 X6
15/32 8/16 X X X X 0 1 1 1 X7
17/32 9/16 X X X X 1 0 0 0 X8
19/32 10/16 X X X X 1 0 0 1 X9
21/32 11/16 X X X X 1 0 1 0 XA
23/32 12/16 X X X X 1 0 1 1 XB
25/32 13/16 X X X X 1 1 0 0 XC
27/32 14/16 X X X X 1 1 0 1 XD
29/32 15/16 X X X X 1 1 1 0 XE
15/16
31/32 X X X X 1 1 1 1 XF
(max on)
_______________________________________________________________________________________ 9
Serially Interfaced, 8-Digit LED Display Drivers
If the scan-limit register is set for three digits or less, fourth chip, sent the desired 16-bit word, followed by
MAX7219/MAX7221
individual digit drivers will dissipate excessive amounts three no-op codes (hex XX0X, see Table 2). When
of power. Consequently, the value of the RSET resistor LOAD/CS goes high, data is latched in all devices. The
must be adjusted according to the number of digits dis- first three chips receive no-op commands, and the
played, to limit individual digit driver power dissipation. fourth receives the intended data.
Table 9 lists the number of digits displayed and the
corresponding maximum recommended segment cur- __________Applications Information
rent when the digit drivers are used. Supply Bypassing and Wiring
Display-Test Register To minimize power-supply ripple due to the peak digit
The display-test register operates in two modes: normal driver currents, connect a 10µF electrolytic and a 0.1µF
and display test. Display-test mode turns all LEDs on ceramic capacitor between V+ and GND as close to
by overriding, but not altering, all controls and digit reg- the device as possible. The MAX7219/MAX7221 should
isters (including the shutdown register). In display-test be placed in close proximity to the LED display, and
mode, 8 digits are scanned and the duty cycle is 31/32 connections should be kept as short as possible to
(15/16 for MAX7221). Table 10 lists the display-test reg- minimize the effects of wiring inductance and electro-
ister format. magnetic interference. Also, both GND pins must be
connected to ground.
Table 9. Maximum Segment Current for Selecting RSET Resistor and
1-, 2-, or 3-Digit Displays Using External Drivers
The current per segment is approximately 100 times
MAXIMUM SEGMENT the current in ISET. To select RSET, see Table 11. The
NUMBER OF DIGITS
CURRENT
DISPLAYED MAX7219/MAX7221’s maximum recommended seg-
(mA)
ment current is 40mA. For segment current levels
1 10 above these levels, external digit drivers will be need-
2 20 ed. In this application, the MAX7219/MAX7221 serve
only as controllers for other high-current drivers or tran-
3 30
sistors. Therefore, to conserve power, use RSET = 47kΩ
when using external current sources as segment dri-
Table 10. Display-Test Register Format vers.
(Address (Hex) = XF) The example in Figure 2 uses the MAX7219/MAX7221’s
segment drivers, a MAX394 single-pole double-throw
REGISTER DATA analog switch, and external transistors to drive 2.3”
MODE AND2307SLC common-cathode displays. The 5.6V
D7 D6 D5 D4 D3 D2 D1 D0
zener diode has been added in series with the decimal
Normal point LED because the decimal point LED forward volt-
X X X X X X X 0
Operation age is typically 4.2V. For all other segments the LED
Display Test forward voltage is typically 8V. Since external transis-
X X X X X X X 1
Mode tors are used to sink current (DIG 0 and DIG 1 are used
as logic switches), peak segment currents of 45mA are
Note: The MAX7219/MAX7221 remain in display-test mode allowed even though only two digits are displayed. In
(all LEDs on) until the display-test register is reconfigured applications where the MAX7219/MAX7221’s digit dri-
for normal operation. vers are used to sink current and fewer than four digits
No-Op Register are displayed, Table 9 specifies the maximum allow-
The no-op register is used when cascading MAX7219s able segment current. RSET must be selected accord-
or MAX7221s. Connect all devices’ LOAD/CS inputs ingly (Table 11).
together and connect DOUT to DIN on adjacent Refer to the Power Dissipation section of the Absolute
devices. DOUT is a CMOS logic-level output that easily Maximum Ratings to calculate acceptable limits for
drives DIN of successively cascaded parts. (Refer to ambient temperature, segment current, and the LED
the Serial Addressing Modes section for detailed infor- forward-voltage drop.
mation on serial input/output timing.) For example, if
four MAX7219s are cascaded, then to write to the
10 ______________________________________________________________________________________
Serially Interfaced, 8-Digit LED Display Drivers
Table 11. RSET vs. Segment Current and Table 12. Package Thermal Resistance
MAX7219/MAX7221
LED Forward Voltage Data
VLED (V) THERMAL RESISTANCE
ISEG (mA) PACKAGE
(θJA)
1.5 2.0 2.5 3.0 3.5
40 12.2 11.8 11.0 10.6 9.69 24 Narrow DIP +75°C/W
10 66.7 63.7 59.3 55.4 51.2 Maximum Junction Temperature (TJ) = +150°C
Maximum Ambient Temperature (TA) = +85°C
______________________________________________________________________________________ 11
Serially Interfaced, 8-Digit LED Display Drivers
MAX7219/MAX7221
AND2307SLC AND2307SLC
5 5
ANODE DP ANODE DP
7 7
ANODE A ANODE A
9 9
ANODE F ANODE F
6 6
ANODE B ANODE B
10 10
ANODE G ANODE G
4 4
ANODE C ANODE C
2 2
ANODE E ANODE E
1N5524B 3 3
ANODE D CATHODE ANODE D CATHODE
5.6V ±5%
8 8
23
SEG D
21
SEG E
20
SEG C
17
SEG G
16 5V
SEG B
15 MAX7219 19
SEG F V+ 4.7k
14 MAX7221
SEG A
22 30k
SEG DP
4.7k
4 18 16
GND ISFT 4
9 NC1
GND 3
* * 7
COM1
NC2 IRF540
1 2 1
DATA IN DIN DIG 0
11 10 IN1 MAX394
12 8
LOAD (CS) LOAD (CS) DIG 1 IN2 COM2
13 2
CLOCK CLK NO1
9
NO2
12 ______________________________________________________________________________________
Serially Interfaced, 8-Digit LED Display Drivers
MAX7219/MAX7221
8 8 8 8
______________________________________________________________________________________ 13
Serially Interfaced, 8-Digit LED Display Drivers
SEG A SEG D
SEG F
14 ______________________________________________________________________________________
Serially Interfaced, 8-Digit LED Display Drivers
________________________________________________________Package Information
MAX7219/MAX7221
PDIPN.EPS
______________________________________________________________________________________ 15
Serially Interfaced, 8-Digit LED Display Drivers
SOICW.EPS
Maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim product. No circuit patent licenses are
implied. Maxim reserves the right to change the circuitry and specifications without notice at any time.
16 ____________________Maxim Integrated Products, 120 San Gabriel Drive, Sunnyvale, CA 94086 408-737-7600
© 1997 Maxim Integrated Products Printed USA is a registered trademark of Maxim Integrated Products.