Max 6958
Max 6958
MAX6958/MAX6959
The MAX6958/MAX6959 compact multiplexed com- ♦ 400kbps 2-Wire Serial Interface
mon-cathode display drivers interface microprocessors ♦ 3V to 5.5V Operation
to seven-segment numeric LED digits, or discrete LEDs
♦ Drive 4 Digits plus 4 or 8 Discrete LEDs
through an SMBus™- and I2C-compatible 2-wire serial
interface. The 2-wire serial interface uses fixed ♦ Drive Common-Cathode LED Digits
0.8V/2.1V logic thresholds for compatibility with 2.5V ♦ 23mA Constant-Current LED Segment Drive
and 3.3V systems when the display driver is powered ♦ Hexadecimal Decode/No-Decode Digit Selection
from a 5V supply.
♦ 64-Step Digital Brightness Control
The MAX6958/MAX6959 drive up to four 7-segment
♦ Slew-Rate-Limited Segment Drivers Reduced EMI
digits, with decimal points, plus four discrete LEDs, or
four 7-segment digits and eight discrete LEDs if the ♦ Debounces Up to Eight Switches with n-Key
digits’ decimal points are not used, or up to 36 discrete Rollover (MAX6959 Only)
LEDs. The MAX6959 also includes two input ports, one ♦ IRQ Output When a Key Input Is Debounced
or both of which may be configured as a key-switch (MAX6959 Only)
reader, which automatically scans and debounces a ♦ 20µA Low-Power Shutdown (Data Retained)
matrix of up to eight switches. Key-switch status is
obtained by polling internal status registers or by con- ♦ Automotive Temperature Range (-40°C to +125°C)
figuring the MAX6959 interrupt output. ♦ Compact 16-Pin PDIP and QSOP Packages
Other on-chip features include a hexadecimal font for Ordering Information
seven-segment displays, multiplex scan circuitry,
anode and cathode drivers, and static RAM that stores TEMP SLAVE PIN-
PART
each digit. The peak segment current for the display RANGE ADDRESS PACKAGE
digits is set internally to 23mA. Display intensity is
MAX6958AAEE -40°C to +125°C 0111000 16 QSOP-EP*
adjusted using a 64-step internal digital brightness con-
trol. The MAX6958/MAX6959 include a low-power shut- MAX6958AAPE -40°C to +125°C 0111000 16 DIP
down mode, a scan-limit register that allows the user to Ordering Information continued at end of data sheet.
display from one to four digits, and a test mode, which *EP = Exposed pad.
forces all LEDs on. The LED drivers are slew-rate-limit-
ed to reduce EMI. Typical Operating Circuit
The MAX6958/MAX6959 are available in 16-pin PDIP
and QSOP packages and are fully specified over the
-40°C to +125°C automotive temperature range. 8 8 8 8
µC
DIG0–DIG3 8
SDA SDA
Applications SCL SCL
SEG0–SEG8
5V
IRQ IRQ/SEG9 V+
Set-Top Boxes Audio/Video Equipment
MAX6959
Panel Meters Vending Machines INPUT1
INPUT2 GND
White Goods Industrial Controls
Key0
DIG0/SEG0
Key1
DIG1/SEG1
Key2
DIG2/SEG2
Key3
DIG3/SEG3
Key4
Pin Configuration, Functional Diagram, and Typical DIG4/SEG4
Key6
DIG6/SEG6
Key7
DIG7/SEG7
SMBus is a trademark of Intel Corp.
For pricing, delivery, and ordering information, please contact Maxim/Dallas Direct! at
1-888-629-4642, or visit Maxim’s website at www.maxim-ic.com.
2-Wire Interfaced, 3V to 5.5V, 4-Digit,
9-Segment LED Display Drivers with Keyscan
ABSOLUTE MAXIMUM RATINGS
MAX6958/MAX6959
DC ELECTRICAL CHARACTERISTICS
(V+ = 3V to 5.5V, TA = TMIN to TMAX, unless otherwise noted. Typical values are at V+ = 5V, TA = +25°C.) (Note 1)
2 _______________________________________________________________________________________
2-Wire Interfaced, 3V to 5.5V, 4-Digit,
9-Segment LED Display Drivers with Keyscan
DC ELECTRICAL CHARACTERISTICS (continued)
MAX6958/MAX6959
(V+ = 3V to 5.5V, TA = TMIN to TMAX, unless otherwise noted. Typical values are at V+ = 5V, TA = +25°C.) (Note 1)
TIMING CHARACTERISTICS
(V+ = 3V to 5.5V, TA = TMIN to TMAX, Figure 1, unless otherwise noted.) (Note 1)
Note 1: All parameters tested at TA =+25°C. Specifications over temperature are guaranteed by design.
Note 2: Guaranteed by design.
Note 3: A master device must provide a hold time of at least 300ns for the SDA signal (referred to VIL of the SCL signal) in order to
bridge the undefined region of SCL’s falling edge.
Note 4: CB = total capacitance of one bus line in pF. tR and tF measured between 0.3V+ and 0.7V+.
Note 5: ISINK ≤ 6mA. CB = total capacitance of one bus line in pF. tR and tF measured between 0.3V+ and 0.7V+.
Note 6: Input filters on the SDA and SCL inputs suppress noise spikes less than 50ns.
_______________________________________________________________________________________ 3
2-Wire Interfaced, 3V to 5.5V, 4-Digit,
9-Segment LED Display Drivers with Keyscan
MAX6958/MAX6959
SCAN RATE (fSCAN) KEYSCAN DEBOUNCE TIME (tDEBOUNCE) SCAN RATE (fSCAN)
vs. TEMPERATURE vs. TEMPERATURE vs. SUPPLY VOLTAGE
800 42.5 790
MAX6958/59 toc01
MAX6958/59 toc02
MAX6958/59 toc03
795 5.5V 3V
KEYSCAN DEBOUNCE TIME (ms) 785
790 5V 42.0
41.5 5V
780
3V 5.5V 775
775
41.0
770 770
765 40.5
765
760
KEYSCAN DEBOUNCE TIME (tDEBOUNCE) SEGMENT SOURCE CURRENT SEGMENT SOURCE CURRENT
vs. SUPPLY VOLTAGE vs. SUPPLY VOLTAGE vs. SUPPLY VOLTAGE
42.2 25 25
MAX6958/59 toc04
MAX6958/59 toc05
MAX6958/59 toc06
42.0
SEGMENT SOURCE CURRENT (mA)
41.8 20 20
41.6
15 15
41.4
41.2
10 10
41.0
40.8 5 5
40.6
VLED = 2.4V VLED = 2V
40.4 0 0
3.0 3.5 4.0 4.5 5.0 5.5 4.50 4.75 5.00 5.25 5.50 3.0 3.5 4.0 4.5 5.0 5.5
SUPPLY VOLTAGE (V) SUPPLY VOLTAGE (V) SUPPLY VOLTAGE (V)
40 5.5V
INPUT PULLUP CURRENT (µA)
35 5V
30 4.5V
25
20
15 3V
10
VDIG0/
SEG0 5
1V/div
0
200µs/div -40 -20 0 20 40 60 80 100 120
TEMPERATURE (°C)
4 _______________________________________________________________________________________
2-Wire Interfaced, 3V to 5.5V, 4-Digit,
9-Segment LED Display Drivers with Keyscan
Pin Description
MAX6958/MAX6959
PIN
NAME FUNCTION
MAX6958 MAX6959
1 1 SDA Serial Data I/O
2 2 SCL Serial Clock Input
3 — SEG9 Segment Output. Segment driver sourcing current to a display anode.
Interrupt or Segment Output. May be segment driver sourcing current to a display
— 3 IRQ/SEG9
anode, or open-drain interrupt output, or open-drain logic output.
Digit and Segment Drivers. Digit X outputs sink current from the display common
4–7, 11–15 4–7, 11–15 DIGX, SEGX cathode when acting as digit drivers. Segment X drivers source current to the display
anodes. Segment/digit drivers are high impedance when turned off.
8 8 GND Ground
9, 10 — N.C. No Connect. Connect to V+ or leave open.
General-Purpose Input Port 1 with Internal Pullup. May be configured as general-
— 9 INPUT1
purpose logic input or keyscan input. Connect to V+ or leave open if unused.
General-Purpose Input Port 2 with Internal Pullup. May be configured as general-
— 10 INPUT2
purpose logic input or keyscan input. Connect to V+ or leave open if unused.
16 16 V+ Positive Supply Voltage
_______________________________________________________________________________________ 5
2-Wire Interfaced, 3V to 5.5V, 4-Digit,
9-Segment LED Display Drivers with Keyscan
MAX6958/MAX6959
SDA
tBUF
tSU, DAT tSU, STA
tHD, DAT
tHD, STA tSU, STO
tLOW
SCL tHIGH
tHD, STA
tR tF
START REPEATED START STOP START
CONDITION CONDITION CONDITION CONDITION
6 _______________________________________________________________________________________
2-Wire Interfaced, 3V to 5.5V, 4-Digit,
9-Segment LED Display Drivers with Keyscan
MAX6958/MAX6959
SDA 0 1 1 1 0 0 A0 R/W ACK
MSB LSB
SCL
SCL 1 2 8 9
SDA
DATA STABLE, CHANGE OF
DATA VALID DATA ALLOWED
ACKNOWLEDGE
Figure 4. Bit Transfer
Figure 5. Acknowledge
Bit Transfer
One data bit is transferred during each clock pulse. The MAX6958/MAX6959 are available in one of two
The data on the SDA line must remain stable while SCL possible slave addresses (see Table 2 and Ordering
is high (Figure 4). Information). The first 6 bits (MSBs) of the MAX6958/
MAX6959 slave address are always 011100. Slave
Acknowledge address bit A0 is internally hardwired to either GND in
The acknowledge bit is a clocked 9th bit that the recipi- the MAX695_A_, or V+ in the MAX695_B_. A maximum
ent uses to handshake receipt of each byte of data of two MAX6958/MAX6959 devices can share a bus.
(Figure 5). Thus, each byte transferred effectively
requires 9 bits. The master generates the 9th clock Message Format for Writing
pulse, and the recipient pulls down SDA during the A write to the MAX6958/MAX6959 comprises the trans-
acknowledge clock pulse, such that the SDA line is sta- mission of the MAX6958/MAX6959s’ slave address with
ble low during the high period of the clock pulse. When the R/W bit set to zero, followed by at least 1 byte of
the master is transmitting to the MAX6958/MAX6959, information. The first byte of information is the com-
the MAX6958/MAX6959 generate the acknowledge bit mand byte, which determines the register that stores
because the MAX6958/MAX6959 are the recipients. the next byte written to the MAX6958/MAX6959. If a
When the MAX6958/MAX6959 are transmitting to the STOP condition is detected after the command byte is
master, the master generates the acknowledge bit received, the MAX6958/MAX6959 take no further action
because the master is the recipient. (Figure 6) beyond storing the command byte.
COMMAND BYTE IS STORED ON RECEIPT OF STOP CONDITION D15 D14 D13 D12 D11 D10 D9 D8
ACKNOWLEDGE FROM
MAX6958/MAX6959
ACKNOWLEDGE FROM
R/W
MAX6958/MAX6959
_______________________________________________________________________________________ 7
2-Wire Interfaced, 3V to 5.5V, 4-Digit,
9-Segment LED Display Drivers with Keyscan
MAX6958/MAX6959
R/W 1 BYTE
R/W n BYTES
R/W n BYTES
Bytes received after the command byte are data bytes. each data byte read using the same rules as for a write
The first data byte goes into the internal register of the (Table 3). A read is initiated by first configuring the
MAX6958/MAX6959 as selected by the command byte MAX6958/MAX6959s’ command byte with a write com-
(Figure 7). mand (Figure 6). The master can now read n consecu-
The address pointer in the MAX6958/MAX6959 autoin- tive bytes from the MAX6958/MAX6959. The master
crements after each data byte. If multiple data bytes acknowledges receipt of each read byte during the
are transmitted before a STOP condition is detected, acknowledge clock pulse. The master must acknowl-
these bytes are stored in subsequent MAX6958/ edge all consecutive bytes received except the last
MAX6959 internal registers (Figure 8), unless the byte. The final read byte must be followed by a not
address pointer has reached address 01111111. The acknowledge from the master and then a stop condi-
address pointer does not autoincrement once address tion (Figure 9). The first data byte is read from the reg-
01111111 has been reached (Table 3). ister addressed by the initialized command byte
(Figure 8). Reset the address pointer when performing
Message Format for Reading read-after-write verification because the stored byte
The MAX6958/MAX6959 are read using the internally address is autoincremented after the write. The
stored command byte as an address pointer the same address pointer does not autoincrement if it points to
way the stored command byte is used as an address register 01111111 (Table 3).
pointer for a write. The pointer autoincrements after Table 4 is the register address map.
8 _______________________________________________________________________________________
2-Wire Interfaced, 3V to 5.5V, 4-Digit,
9-Segment LED Display Drivers with Keyscan
Command Address Autoincrementing
MAX6958/MAX6959
Table 3. Command Address
Address autoincrementing allows the MAX6958/
Autoincrement Behavior MAX6959 to be configured with the shortest number of
COMMAND BYTE transmissions by minimizing the number of times the
AUTOINCREMENT BEHAVIOR
ADDRESS RANGE command byte needs to be sent. The address pointer
stored in the MAX6958/MAX6959 increments after each
00000000 to Command byte address autoincrements data byte is written or read, unless the address equals
01111110 after byte read or written
01111111 (Table 3).
Command byte address remains at
01111111 Digit Type Registers
01111111 after byte written or read
The MAX6958/MAX6959 store display data in five regis-
ters. The four digit registers each control the seven
Operation with Multiple Masters numeric segments of a seven-segment digit, but not
If the MAX6958/MAX6959 are operated on a 2-wire the DP segments. The segments register controls eight
interface with multiple masters, a master reading the individual LEDs, which can be any mix of discrete LEDs
MAX6958/MAX6959 should use a repeated start and any or all of the DP segments of the four 7-seg-
between the write, which sets the MAX6958/MAX6959s’ ment digits (Table 5) (Figure 10).
address pointer, and the read(s) that takes the data
from the location(s) set by the address pointer. It is
a
possible for master 2 to take over the bus after master
1 has set up the MAX6958/MAX6959s’ address pointer f b
but before master 1 has read the data. If master 2 sub- g
sequently changes the MAX6958/MAX6959s’ address
pointer, then master 1's delayed read may be from an e c
dp
unexpected location. d
_______________________________________________________________________________________ 9
2-Wire Interfaced, 3V to 5.5V, 4-Digit,
9-Segment LED Display Drivers with Keyscan
MAX6958/MAX6959
The digit registers and segments register use 1 bit to In hexadecimal code-decode mode, the decoder looks
set the state of one segment. Each bit is high to turn a only at the lower nibble of the data in the digit register
segment on, or low to turn it off (Table 6). (D3–D0), disregarding bits D7–D4. Table 7 lists the hexa-
decimal code font. When no decode is selected, data
Table 6. No-Decode Mode Data Bits and bits D7–D0 correspond to the segment lines of the
Corresponding Segment Lines MAX6958/MAX6959. Table 8 shows the one-to-one pair-
ing of each data bit to the appropriate segment line.
REGISTER BIT SEGMENT BEHAVIOR
Initial Power-Up
0 Segment off
On initial power-up, all control registers are reset, the
1 Segment on display is blanked, and the MAX6958/MAX6959 enter
shutdown mode (Table 9). At power-up, the MAX6958/
MAX6959 are initially set to scan four digits, do not
Decode-Mode Register
decode data in the digit registers or scan key switches
The decode-mode register sets hexadecimal code
(0–9, A–F) or no-decode operation for each digit. Each (MAX6959 only), and the intensity register is set to a
low value (4/64 intensity).
bit in the register corresponds to one digit. Logic high
selects hexadecimal decoding while logic low bypass-
es the decoder. Digits can be set for decode or no
decode in any combination. Bit assignment and exam-
ples of the decode mode control register format are
shown in Table 7.
Bit assignment for each digit 0x01 X X X X Digit 3 Digit 2 Digit 1 Digit 0 —
10 ______________________________________________________________________________________
2-Wire Interfaced, 3V to 5.5V, 4-Digit,
9-Segment LED Display Drivers with Keyscan
MAX6958/MAX6959
Table 8. Seven-Segment Mapping Decoder for Hexadecimal Font
7-SEGMENT REGISTER DATA ON SEGMENTS = 1
CHARACTER D7–D4 D3 D2 D1 D0 a b c d e f g
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
A X 1 0 1 0 1 1 1 0 1 1 1
B X 1 0 1 1 0 0 1 1 1 1 1
C X 1 1 0 0 1 0 0 1 1 1 0
D X 1 1 0 1 0 1 1 1 1 0 1
E X 1 1 1 0 1 0 0 1 1 1 1
F X 1 1 1 1 1 0 0 0 1 1 1
______________________________________________________________________________________ 11
2-Wire Interfaced, 3V to 5.5V, 4-Digit,
9-Segment LED Display Drivers with Keyscan
Configuration Register scanned. Since the number of scanned digits affects
MAX6958/MAX6959
Use the configuration register to enter and exit shut- the display brightness, the scan-limit register should
down, check device type, and globally clear the digit not be used to blank portions of the display (such as
data (Tables 10–13). The S bit selects shutdown or nor- leading zero suppression).
mal operation (read/write). The D bit reports whether
the device is a MAX6958 or a MAX6959 (read only). Intensity Register
The R bit clears all the digit and segment data (data is An internal pulse-width modulator controlled by the
not stored-transient bit) intensity register provides digital control of display
brightness. The modulator scales the average segment
Scan-Limit Register current in 63 steps from a maximum of 63/64 down to
The scan-limit register sets the number of digits dis- 1/64 of the 23mA peak current. The minimum interdigit
played, from one to four (Table 14). A bicolor digit is blanking time is set to 1/64 of a cycle (Figure 11 and
connected as two monocolor digits. The scan-limit reg- Table 15).
ister also limits the number of keys that can be
Table 13. Global Clear Digit Data (R Data Bit D5) Format
ADDRESS REGISTER DATA
MODE
CODE (HEX) D7 D6 D5 D4 D3 D2 D1 D0
Digit and segment data are unaffected 0x04 X X 0 X X X D S
Digit and segment data are cleared 0x04 X X 1 X X X D S
12 ______________________________________________________________________________________
2-Wire Interfaced, 3V to 5.5V, 4-Digit,
9-Segment LED Display Drivers with Keyscan
MAX6958/MAX6959
Table 15. Global Intensity Register Format
TYPICAL SEGMENT ADDRESS
DUTY CYCLE D7 D6 D5 D4 D3 D2 D1 D0 HEX CODE
CURRENT (mA) CODE (HEX)
1/64 (min on) 0.36 0x02 X X 0 0 0 0 0 0 0x00
2/64 0.72 0x02 X X 0 0 0 0 0 1 0x01
3/64 1.08 0x02 X X 0 0 0 0 1 0 0x02
4/64 1.44 0x02 X X 0 0 0 0 1 1 0x03
5/64 1.80 0x02 X X 0 0 0 1 0 0 0x04
6/64 2.16 0x02 X X 0 0 0 1 0 1 0x05
— — 0x02 X X — — — — — — —
60/64 21.56 0x02 X X 1 1 1 0 1 1 0x3B
61/64 21.92 0x02 X X 1 1 1 1 0 0 0x3C
62/64 22.28 0x02 X X 1 1 1 1 0 1 0x3D
63/64 22.64 0x02 X X 1 1 1 1 1 0 0x3E
63/64 (max on) 22.64 0x02 X X 1 1 1 1 1 1 0x3F
START OF
NEXT CYCLE
ONE COMPLETE 1.28ms MULTIPLEX CYCLE AROUND 4 DIGITS
DIGIT 0 CATHODE
DRIVER INTENSITY
SETTINGS DIGIT 0's 320µs MULTIPLEX TIMESLOT
HIGH-Z
LOW
1/64th
(MIN ON)
HIGH-Z
2/64th LOW
HIGH-Z
3/64th LOW
HIGH-Z
61/64th LOW
HIGH-Z
62/16th LOW
HIGH-Z
63/64th LOW
HIGH-Z
63/64th LOW
(MAX ON)
HIGH-Z
HIGH-Z
ANODE (UNLIT)
HIGH-Z
HIGH-Z
______________________________________________________________________________________ 13
2-Wire Interfaced, 3V to 5.5V, 4-Digit,
9-Segment LED Display Drivers with Keyscan
Ports and Key Scanning The keyscanning circuit utilizes the LED’s common-
MAX6958/MAX6959
(MAX6959 Only) cathode driver outputs as the keyscan drivers. The out-
The MAX6959 features two input ports, INPUT1 and puts DIG0/SEG0 to DIG3/SEG3 pulse low for nominally
INPUT2. These two ports can be used as general-pur- 320µs sequentially as the displays are multiplexed. The
pose logic inputs, or configured to perform automatic actual low time varies from 5µs to 315µs due to pulse-
keyscanning. Both ports have internal pullup resistors width modulation from 1/64th to 63/64th for intensity
enabled in shutdown and normal operation for both control. The timing diagram (Figure 14) shows the typi-
general-purpose input mode and keyscanning mode. cal situation when all four LED cathode drivers are used.
The ports can be read using the 2-wire interface. The maximum eight keys can be scanned only if the
The keyscan logic uses one or both of the INPUT1 and scan-limit register is set to scan the maximum four dig-
INPUT2 logic inputs (Figure 12). An interrupt output that its. If fewer than four digits are driven, then only (2 x n)
flags key presses is optional. The interrupt flag can be switches can be scanned, where n is the number of dig-
read (polled) through the serial interface instead, allow- its (1, 2, 3, or 4) set in the scan-limit register (Table 14).
ing IRQ/SEG9 to be used as an open-drain general- The keyscan cycle loops continuously over time, with
purpose logic output or as a segment driver. all eight keys experiencing a full keyscanning
One small-signal diode is required per key switch when debounce over 41ms (Figure 14). A key press is
more than one key is connected to INPUT1 or INPUT2. debounced and an interrupt issued if at least one key
The diodes prevent two simultaneous key switch that was not pressed in a previous cycle is found
depressions from shorting digit drivers together. For pressed during both sampling periods. The keyscan
example, if KEY0 and KEY1 were pressed together circuit detects any combination of keys pressed during
(Figure 12) and the diodes were not fitted, DIG0/SEG0 each debounce cycle (n-key rollover).
and DIG1/SEG1 would be shorted together and the Port Configuration Register
LED multiplexing would be incorrect. These diodes can (MAX6959 Only)
be common-anode dual diodes in SOT23 like BAW56. The port configuration register configures INPUT1,
A diode is not required for a single key connection to INPUT2, and IRQ/SEG9 ports for the MAX6959 (Table 16).
INPUT1 or INPUT2. Therefore, up to two key switches
can be automatically debounced without adding IRQ/SEG9 can be set to either an LED segment output
diodes (Figure 13). (driving four multiplexed LED segments), or an open-
drain logic output. The open-drain logic output can be
Resistors R1 and R2 are required if the MAX6959 is configured as either an IRQ output controlled by the
operated with V+ greater than 4V. R1 and R2 are keyscan circuitry, or as a general-purpose logic output
optional if V+ is between 3V and 4V. controlled through the 2-wire interface. Connect a
DIG0/SEG0
Key0 Key4
DIG1/SEG1 Key4
DIG0/SEG0
Key1 Key5
Key0
DIG2/SEG2
Key2 Key6 V+ R1
39kΩ
DIG3/SEG3 INPUT1 V+
Key3 Key7 R2
39kΩ
V+ R1 INPUT2 4.7kΩ
39kΩ
INPUT1 V+
R2
IRQ/SEG9
39kΩ
INPUT2 4.7kΩ MICROCONTROLLER INTERRUPT
IRQ/SEG9
MICROCONTROLLER INTERRUPT
Figure 12. Maximum Keyscan Configuration Figure 13. Keyscanning Two Keys Without Diodes
14 ______________________________________________________________________________________
2-Wire Interfaced, 3V to 5.5V, 4-Digit,
9-Segment LED Display Drivers with Keyscan
MAX6958/MAX6959
tDEBOUNCE
THE FIRST HALF OF A 41ms KEYSCAN CYCLE THE SECOND HALF OF A 41ms KEYSCAN CYCLE
1.28ms MULTIPLEX 1.28ms MULTIPLEX 1.28ms MULTIPLEX 1.28ms MULTIPLEX 1.28ms MULTIPLEX 1.28ms MULTIPLEX 1.28ms MULTIPLEX 1.28ms MULTIPLEX 1.28ms MULTIPLEX 1.28ms MULTIPLEX
CYCLE 1 CYCLE 2 CYCLE 3 CYCLE 4 CYCLE 15 CYCLE 16 CYCLE 1 CYCLE 2 CYCLE 15 CYCLE 16
DIG0/SEG0
DIG1/SEG1
DIG2/SEG2
DIG3/SEG3
A B C D E
A
FIRST TEST OF KEYS SECOND TEST OF KEYS INTERRUPT ASSERTED IF REQUIRED
KEY DEBOUNCED REGISTER UPDATED
pullup resistor from IRQ/SEG9 to a voltage no greater pullups are always enabled, even in shutdown. Ensure
than 5.5V when configuring IRQ/SEG9 as an interrupt these inputs are either close to V+ or open circuit for
or logic output. minimum shutdown supply current. If both INPUT1 and
INPUT1 and INPUT2 can be individually configured as INPUT2 are assigned to keyscan, then eight keys can
either general-purpose logic inputs or as keyscan be debounced. If only INPUT1 or INPUT2 is assigned
inputs. In either mode, the input structure is the same— to keyscan, then only four keys can be debounced.
CMOS logic inputs with internal pullup resistors. The
______________________________________________________________________________________ 15
2-Wire Interfaced, 3V to 5.5V, 4-Digit,
9-Segment LED Display Drivers with Keyscan
Key Debounced Register (MAX6959 Only) detected as pressed by the keyscanning circuit during
MAX6958/MAX6959
The key debounced register shows which keys have the last test. Reading the key pressed register does not
been detected as debounced by the keyscanning cir- clear either the key pressed register, or the key
cuit (Table 17). Each bit in the register corresponds to debounced register, and does not clear the IRQ output.
one key switch. The bit is set to 1 if the switch has been The key pressed register is read only. A write to
correctly debounced since the last key debounced reg- address 0x0C is ignored.
ister read operation.
Reading the key debounced register clears the register Display Test Register
(after the data has been read) so that future key presses The display test register operates in two modes: normal
can be identified. If the key debounced register is not and display test (Table 19). Display test mode turns on
read, the keyscan data accumulates. There is no FIFO all LEDs by overriding, but not altering, all control and
register in the MAX6959. Key-press order, or whether a digit registers (including the shutdown register) except
key has been pressed more than once, cannot be for the port configuration register. The duty cycle while
determined unless the key debounced register is read in display test mode is 28/64.
after each interrupt and before completion of the next Applications Information
keyscan cycle.
Reading the key debounced register clears the IRQ Driving Bicolor LEDs
output. If a key is pressed and held down, the key is Bicolor digits combine a red and a green die for each
reported as debounced (and an IRQ is issued) only display element, so that the element displays red or
once. The key must be detected as released by the green (or orange), depending on which die (or both) is
keyscanning circuit before it is debounced again. lit. The MAX6958/MAX6959 treat a bicolor digit as two
monocolor digits.
The key debounced register is read only. A write to
address 0x08 is ignored. Low-Voltage Operation
The MAX6958/MAX6959 are guaranteed to drive a 23mA
Key Pressed Register (MAX6959 Only) segment current into 2.4V (or lower) LEDs when operat-
The key pressed register shows which keys have been ed from a supply voltage of 4.5V to 5.5V. Operating the
detected as pressed by the keyscanning circuit during MAX6958/MAX6959 from a supply voltage lower than
the last test. Each bit in the register corresponds to one 4.5V reduces the LED drive current. The drivers drive at
key switch. The bit is set if the switch has been detect- least 15.5mA segment current into 2V (or lower) LEDs
ed as pressed by the keyscanning circuit during the when operated from a 3V supply voltage.
last test. The bit is cleared if the switch has not been
16 ______________________________________________________________________________________
2-Wire Interfaced, 3V to 5.5V, 4-Digit,
9-Segment LED Display Drivers with Keyscan
Computing Power Dissipation For a 16-pin DIP package (TJA = 1/0.0105 = +95.2°C/W
MAX6958/MAX6959
Determine the MAX6958/MAX6959 upper-limit power from Absolute Maximum Ratings), the maximum
dissipation (PD) with the following equation: allowed ambient temperature TA is given by:
PD = (V+ ✕ I+) + (V+ - VLED) (DUTY ✕ ISEG ✕ N) TJ(MAX) = TA + (PD ✕ TJA) = +150°C
= TA + (0.652 ✕ 95.2°C/W)
where:
V+ = supply voltage Therefore, TA = +87.9°C.
I+ = operating supply current Power Supplies
DUTY = duty cycle set by intensity register The MAX6958/MAX6959 operate from a single 3V to
5.5V power supply. Bypass V+ with a 0.1µF capacitor
N = number of segments driven (worst case is nine) to GND, as close to the device as possible. Bypass V+
VLED = LED forward voltage at ISEG with an additional 10µF capacitor if the MAX6958/
ISEG = peak segment current MAX6959 are not close to the board input’s bulk
decoupling capacitor.
PD = power dissipation, in mW if currents are in mA
Dissipation example:
Chip Information
ISEG = 23mA, N = 9, DUTY = 63/64, VLED = 2.2V, TRANSISTOR COUNT: 17,340
V+ = 5.25V PROCESS: CMOS
PD = 5.25V (5.9mA) + (5.25V - 2.2V)
(63/64 ✕ 23mA ✕ 9) = 0.652W
MULTIPLEX
LOGIC
SDA
2-WIRE SERIAL INTERFACE
SCL
______________________________________________________________________________________ 17
2-Wire Interfaced, 3V to 5.5V, 4-Digit,
9-Segment LED Display Drivers with Keyscan
Pin Configuration Typical Application Circuit
MAX6958/MAX6959
TOP VIEW
SDA 1 16 V+
9 9 9 9
SCL 2 15 SEG8
(IRQ/SEG9) SEG9 3 14 SEG7
39kΩ 39kΩ
Key0
DIG0/SEG0
Key1
DIG1/SEG1
Key2
DIG2/SEG2
Key3
DIG3/SEG3
Key4
DIG0/SEG0
Key5
DIG1/SEG1
Key6
DIG2/SEG2
Key7
DIG3/SEG3
18 ______________________________________________________________________________________
2-Wire Interfaced, 3V to 5.5V, 4-Digit,
9-Segment LED Display Drivers with Keyscan
Package Information
MAX6958/MAX6959
(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.)
QSOP,EXP. PADS.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.
Maxim Integrated Products, 120 San Gabriel Drive, Sunnyvale, CA 94086 408-737-7600 ____________________ 19
© 2002 Maxim Integrated Products Printed USA is a registered trademark of Maxim Integrated Products.