Академический Документы
Профессиональный Документы
Культура Документы
ers
The MAX7219/MAX7221 are compact, serial input/out- put common10MHz Serial Interface c cathode display drivers that interface microprocessors (Ps) to 7-segment numeric LED I Individual LED Segment Control dis- plays of up to 8 digits, bar-graph displays, or 64 indiD Decode/No-Decode Digit Selection vidual LEDs. Included on-chip are a BCD code-B decoder, 150A Low-Power Shutdown (Data multiplex scan circuitry, segment and digit drivers, and R Retained) an 8x8 static RAM that stores each digit. Only one external resistor is required to set the seg- ment current D Digital and Analog Brightness Control f for all LEDs. The MAX7221 is compatible Display Blanked on Power-Up w with SPI, QSPI, and MICROWIRE, and has slew- Drive Common-Cathode LED Display rate-limited segment drivers to reduce EMI. ew-Rate Limited Segment A convenient 4-wire serial interface connects to Drivers for Lower EMI all common Ps. Individual digits may be addressed (MAX7221) S and updated without rewriting the entire display. The l SPI, QSPI, MICROWIRE Serial Interface (MAX7221) MAX7219/MAX7221 also allow the user to select code- B 24-Pin DIP and SO Packages d decoding or no-decode for each digit. The devices include a 150A low-power shutdown mode, analog and digital brightness control, a scan-
Features
ormation Ordering Inf limit register that allows the user to display from 1 to 8
PACKAGE
PART
TEMP RANGEPIN-
digits, and a test mode that forces all LEDs on. For applications requiring 3V operation or segment
MAX7219CNG MAX7219CWG0C to +70C 0C to +70C24 Narrow Plastic DIP 24 Wide SO blinking, refer to the
Applications
-40C to +85C
24 Wide
ation
+25C.
it
*Dice are speci
A=
Pin Configur
TOP VIEW
DIN DIG 0 DIG 4 3 422 21 20SEG DP SEG E 9 9.53kSEG C 19 V+ GND DIG 6 1 2 24 23
18+5V
MAX72195 MAX7221
DIG 0 DIG 7 DIG 3 DIG 2 6 7 19 V+ DIGITS 18 ISET 1
ISET
MAX7219
MOSIDINMAX7221 17 12 16 SEG B
r Corp.
13 SCK CLK SEG AG, DIG 5 10 1115 14SEG F SEG Al Semiconducto 9 GNDark of
Nationa
13 CLK
D IP/SO
) MAX7221 ONLY 8-DIGIT P DISPLAY
ers
MINto TMAX) Operating Temperature Ranges (T MAX7219C_G/MAX7221C_G..............................0C to +70C MAX7219E_G/MAX7221E_G............................-40C to +85C nctional
DIG 0DIG 7 Sink Current..............................................500mA SEG AG, DP Source Current........................................100mA Continuous Power Dissipation (TA= +85C) Narrow Plastic DIP (derate 13.3mW/C above +70C)..............................................................1066mW
manent dama ay cause perin the operati o s
e stress rating implied. Expo ice. These ar ations is not ge to the dev of the specific
other conditio
n s
ELECTRICAL CHARACTERISTICS
(V+ = 5V 10%, RSET = 9.53k1%, TA= TMINto TMAX, unless otherwise noted.) PARAMETER CONDITIONS MINTYPMAX Operating Supply Voltage UNITS V+ 4.0 5.5 I+ 150 RSET= open circuit Operating Supply Current segments and decimal point on, ISEG_= -40mA Display Scan Rate digits scanned 5008001300 Digit Drive Sink Current = 5V, VOUT= 0.65V Segment Drive Source Current
+25C, V+ = 5V, VOUT= (V+ - 1V)
SYMBOL
V All A All
I+ 330 mA fOSC
Segment Current Slew R Rate (MAX7221 only) S Segment Drive Current Matching Digit Drive Leakage (MAX7221 only) IDIGITDigit off, VDIGIT= V+-10A Segment Drive Leakage (MAX7221 only) ISEGSegment off, VSEG= 0V1A Digit Drive Source Current (MAX7219 only) IDIGITDigit off, V -2DIGIT= (V+ - 0.3V)mA Segment
T
+25C, V+ = 5V, VOUT= (V+ - 1V)
ers
MINTYPMAX
UNIT S
100 50 50 t
CSW
ns ns ns n s 50 2. n 25 s ns ns m 25 ns s ns ns
t
DS
t
DSPD
t
DH
25 0 C 25 0 50
t
DO LOAD= 50pF
t
LDCK
isplay Driv Digit LED D racteristics erfaced, 8erating Cha __Typical Op Serially Int ______________
_____________ _____________
(V+ = +5V, T
A = +25C, unless otherwise noted.) 810 800 790 780 760 20 10RSET = 40k 750 740 730 0 4.04.44.85.25.66.0 012345 POSITIVE SUPPLY VOLTAGE (V) OUTPUT VOLTAGE (V) RSET = 20k 30770 830 70 820 60
ers
RSET = 10k 50 40
/21 02
10mA/div 0
ers
PIN NAMEFUNCTI ON 1 DINSerial-Data Input. Data is loaded into the internal 16bit shift register on CLKs rising edge. 3, 58, DIG 0DIG 7 11 9 GND (MAX7219) 12 LOAD CS (MAX7221) 13 CLK 1417, SEG ASEG G, 2023 18
Selecting
SETResistor and section). 19 V+Positive Supply Voltage. Connect to +5V. 24 DOUTSerial-Data Output. The data into DIN is valid at DOUT 16.5 clock cycles later. This pin is used to daisy-chain several MAX7219/MAX7 221s and is never highimpedance.
DIGIT DRIVERS 8 SHUTDOWN REGISTER V+ CODE B ROM WITH BYPASSMODE REGISTER INTENSITY REGISTER SCAN-LIMIT REGISTERINTENSITY PULSE-
ers
t
CSW
t
CL
t
CH
t
CP
t
LDCK
cription
rs ntrol Registe
Detailed Des
X7221 Differ
ences Digit and Co Table 2 lists the 14 addressable digit and control r
egisMAX7219/MA ters. The digit registers are The MAX7219 and MAX7221 are identical except for two parameters: the MAX7221 segment drivers are slew-rate limited to reduce electromagnetic interfer- ence (EMI), and its serial interface is fully SPI compati- ble. sing Modes Serial-Addres For the MAX7219, serial data at DIN, sent in 16bit 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, CSmust 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/CSmust 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). D8D11 contain the register address. D0D7 contain the data, and D12D15 are dont care bits. The first received is D15, the most significant bit (MSB). 8x8 dual-port SRAM. They are addressed directly realized with an on-chip, 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). de Shutdown Mo When the MAX7219 is in shutdown mode, the scan oscil- lator 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 250s 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.
ers
-Up
Map
HEX
MAX7219/MAX7221 enter
REGISTER
Program the prior to D11D10 D9 CODE display driver D12 D8 display use. Otherwise, it will initially be set to scan one No-Op X 0 0 0 0 0xX0 the intensity register will be set to its minimum value. Digit 0 Register
X 0 0 0 1 0xX1
D15
shutdow n mode.
Decode-Mode
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 (D3D0), disregarding bits D4D6. 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 D7D0 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.
Digit 2 X0 Digit 3 X01 10 00 10xX4 0xX5 Digit 4 X0 Digit 5 X01 11 10
10xX6 0xX7 Digit 6 X0 Digit 7 X10 00 00 10xX8 0xX9 Decode Mode X1 Intensity X10 01 10 10xXA 0xXB Scan Limit X1 Shutdown X11 10 10 10xXC 0xXF Display Test X1
D0
111111110xFF
ers
ON SEGMENTS = 0 0 0 1 0 1 0 0 1 1 1 1 F 1 0 0 0 1 1 1 0 1 1 0 1 1 11 1 G1 0 0 1 1 1 1 1 0 1 1 0 1 1
trol
Bits and
The MAX7219/MAX7221 allow display brightness to controlled with an external resistor (R SET)
connected
The peak current sourced from the segment drivers is nominally 100 times the current adjustment from the front p panel. Its minimum value should be 9.53k , which typically sets the segment current at 40mA. Display brightusing the intensity register. m Digital control of display brightness is provided byo an internal pulse-width modulator, which isd controlled by u the lower nibble of the intensity register. The
entering ISET. This resistor can either be fixed or vari- able to allow brightness
ED C DP
be by
lator
D7 D6 D5 D4 Corresponding D 3 D 2 D 1 D 0
m a it y
scales the average segment current in 16 steps from a ximum of 31/32 down to 1/32 of the peak current set
SET(15/16 to 1/16 on the MAX7221). Table 7 lists
by R
Segment Line DP A B C D E F G
i n
t e
n s
register format. The minimum interdigit blanking time is set to 1/32 of a cycle.
ers
HEX
MAX7219 MAX7221D6D 5D4D3D2D1D 0CODE 1/32 (min on) 1/16 X(min on)XXX00000x X0 3/32 2/16 XXXX00010xX1 5/32 3/16 XXXX00100xX2 7/32 4/16 XXXX00110xX3 9/32 5/16 XXXX01000xX4 11/32 6/16 XXXX01010xX5 13/32 7/16 XXXX01100xX6 15/32 8/16 XXXX01110xX7 17/32 9/16 XXXX10000xX8 19/32 10/16 XXXX10010xX9 21/32 11/16 XXXX10100xXA 23/32 12/16 XXXX10110xXB 25/32 13/16 XXXX11000xXC 27/32 14/16 XXXX11010xXD 29/32 15/16 XXXX11100xXE 31/32
15/16
X(max on)XXX11110xXF
= 0xXB)
SCAN LIMIT DATA D7 D6 Display digit 0 only* Display digits 0 & 1* X XX XX XX XX X0 00 00 10xX0 0xX1 Display digits 0 1 2* Display digits 0 1 2 3 X XX XX XX XX X0 01 10 10xX2 0xX3 Display digits 0 1 2 3 4 Display digits 0 1 2 3 4 5 X XX XX XX XX X1 10 00 10xX4 0xX5 Display digits 0 1 2 3 4 5 6 Display digits 0 1 2 3 4 5 6 7 X X plication.X XX XX XX X1 11 10 10xX6 0xX7 See Scan-Limit Register
section for ap
egister Scan-Limit R scanned. Since the number of scanned The scan-limit register sets how many digits are dis- played, 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
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.
OSC/N, where N is the number of digits
ers
must be adjusted according to the number of digits dis- played, to limit individual digit driver power
dissipation. Table 9 lists the number of digits displayed and the corresponding maximum recommended segment cur- rent when the digit drivers are used.
al Driv fourth chip, sent the desired 16-bit word, followed by three no-op codes (hex 0xXX0X, see Using E
Table 2). When LOAD/CSgoes high, data is latched in all devices. The first three chips receive no-op commands, and the fourth receives the intended data.
1-,
2-,
or
3-Digit Selecti
SETRes
Information
iring
Register Display-Test The display-test register operates in two modes: normal and display test. Display-test mode turns all
Applications
LEDs on by overriding, but not altering, all controls and digit reg- isters (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 reg- ister format.
ssing and W Supply Bypa To minimize power-supply ripple due to the peak digit driver currents, connect a 10F electrolytic and a
0.1F 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 electromagnetic interference. Also, both GND pins must be connected to ground.
Table
9.
Maximum
Segment
MAXIMUM SEGMENT
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 RSET= 47k when using external current sources as segment dri- 1
10 20 2 3
vers.
MODE
.6V
Normal X Operation Display Test X Mode D5 X X X X X X X X X X X X 0 1
ner diode has been added in series with the decimal point LED because the decimal point LED
forward volt- age is typically 4.2V. For all other segments the LED forward voltage is typically 8V. Since external transis- tors are used to sink current (DIG 0 and DIG 1 are used
D D D D D ze 4 3 2 1 0 Note: The MAX7219/MAX7221 remain in display-test mode (all LEDs on) until the display-test register is reconfigured for normal operation.
as logic switches), peak segment currents ofR 45mA are allowed even though only two digits aretion
ter No-Op Regis The no-op register is used when cascading MAX7219s ingly (Table 11). or MAX7221s. Connect all devices LOAD/CSinputs
together and connect DOUT to DIN on adjacent devices. DOUT is a
displayed. In applications where the MAX7219/MAX7221s digit dri- vers are used to sink current and fewer than four digits are displayed, Table 9 specifies the maximum allow- able segment current. CMOS logic-level output that easily to calcu sing Modes
SETmust be selected accord-
ower Dissipa imum Ratings Refer to the Continuous P section of the Absolute Max drives DIN of successively cascaded parts. (Refer to limits for ambient temperature, segment current, and the Serial Addres section for detailed infor- the LED forward-voltage drop. mation on serial input/output timing.) For example, if four MAX7219s are cascaded, then to write to the
ers
10
66.7
63.7
51.2
= +85C
tion ower Dissipa Computing P The upper limit for power dissipation (PD) for the MAX7219/MAX7221 is determined from the following equation: PD = (V+ x 8mA) + (V+ - V
LED)(DUTY x ISEGx N)
rivers Cascading D unconnected. If one display for 6 digits and the other for 5 digits, the sec- ond display will appear brighter because its duty cycle ter
where: = supply voltage DUTY = duty cycle set by intensity register N = number of segments driven (worst case is 8) V The example in Figure 3 drives 16 digits using a 3-wire P interface. If the number of digits is not a multiple of 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 scanlimit 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
LED= LED forward voltage
ISEG= segment current set by RSET 1/6. Dissipation example: ISEG= 40mA, N = 8, DUTY = 31/32, VLED= 1.8V at 40mA, V+ = 5.25V PD = (5.25V x 8mA) + (5.25V - 1.8V) (31/32 x 40mA x 8) = 1.11W T Thus, for a CERDIP package ( JA= +80C/W
from
Table 12), the maximum allowed ambient temperature TAis given by: T
J(MAX)= TA+ PD x JA
150C = T
A+1.11W x 80C/W
where T
+61.2C.
The T
Alimits for PDIP and SO packages in the dissipation
example above are +66.7C and +55.6C, respectively. Refer to the No-Op Regis mation. section for additional infor-
ers
AND2307SLC 5 ANODE DP 5 7 9 6ANODE DP ANODE A ANODE F ANODE B 7 ANODE A 9 ANODE F 6 ANODE B 10 ANODE G 10 4 2ANODE G ANODE C ANODE E 4 ANODE C 2 ANODE E 1N5524B 5.6V 5%
AND2307SLC
3 ANODE D
CATHODE 8 8
5V ANODE D CATHODE
15 SEG B SEG F MAX7221 4 4.7k 14 SEG A 0.1F 22 3 30k SEG DP 18 16 4 4.7k 4 9 GND 4NC1 * 2 11 LOAD (CS) 13 1 NC2IRF540 DATA IN 10 IN1MAX394 LOAD (CS) 2 IN2COM2 CLOCK 12 DIG 1 CLK 9 NO1 NO2 5 1 DIN * GND
MAX7219
V+ 19
I 7 COM1 DIG 0 8
SFT
-5V
IRF540
ers
88 DATA IN DIN DIG 0 DIG 4 GND DIG 6 DIG 2 DOUT SEG D SEG DP SEG E DIG 3 ISET 9 9.53k DIG 7 SEG G GND SEG B DIG 5 SEG F DIG 1 SEG A ) MAX7221 ONLYCLOCK LOAD DATA 0.1F DIG 3 ISET 5V SEG C V+ DIN DIG 0 DIG 4 GND DIG 6
DIG 2
8
SEG DP SEG E SEG C V+
5V
DOUT
SEG D
0 MAX7221 DIG 5
9 9.53k
ers
aphy
TEMP RANGEPIN-PACKAGE MAX7221CNG MAX7221CWG MAX7221C/D 0C to +70C 0C to +70C 0C to +70C24 Narrow Plastic DIP 24 Wide SO Dice*GNDDIG 7DIG 3DIG 2DIG 6GND MAX7221ENG MAX7221EWG MAX7221ERG -40C to +85C -40C to +85C -40C to +85C24 Narrow Plastic DIP 24 Wide SO 24 Narrow CERDIPDIG 5DIG 4 fied at T
*Dice are
speci
DIN DOUT
+25C.
DIG 1
DIG 0
LOAD OR 0.093" (2.36mm) CS CLK SEG A SEG D SEG F SEG B ISETSEG C SEG G
ers
DIM A A1 B C MIN 0.093 0.004 0.014 0.009 E E 0.2910.2997.40 7.60 H 0.3940.41910.00 10.65 L
1
MILLIMETERS 0.104 MIN 0.35 0.019 2.35 0.23 0.10 MAX e0.050
0.32
1.27
0.0160.0500.40 1.27 VARIATIONS: INCHES MILLIMETERS DIM MIN MIN MAX NMS013 0.447 0.46311.3511.7 D D D A e B A1 FRONT VIEW C L MAX
TOP VIEW
D 0.398 0.41310.1010.5016AA D 518AB 0.512 13.00 0.496 12.60 20 AC 0.598 0.614 15.20 15.60 AD 18.10 AE 28 0.697 0.713 17.70
SIDE VIEW
0-8
21-0042
REV.
11 B
ers
ntinued)
(The package drawing(s) in this data sheet may not reflect the most current specifications. For the latest package outline information go to www.maxim-ic.com/packages.)
ers