MAX7313
If blinking is enabled, then both interrupt output con-
trols O0 and O1 set the logic state of the INT/O16 pin
according to the blink phase. PWM intensity control for
O16 is set by the 4 global intensity bits in the master
and O16 intensity register (Table 13).
Blink Mode
In blink mode, the output ports can be flipped between
using either the blink phase 0 registers or the blink phase
1 registers. Flip control is by software control (the blink
flip flag B in the configuration register) (Table 4). If hard-
ware flip control is needed, consider the MAX7314, which
includes a BLINK input, as well as software control.
The blink function can be used for LED effects by pro-
gramming different display patterns in the two sets of
output port registers, and using the software or hard-
ware controls to flip between the patterns.
If the blink phase 1 registers are written with 0xFF, then
the BLINK input can be used as a hardware disable to,
for example, instantly turn off an LED pattern pro-
grammed into the blink phase 0 registers. This tech-
nique can be further extended by driving the BLINK
input with a PWM signal to modulate the LED current to
provide fading effects.
The blink mode is enabled by setting the blink enable
flag E in the configuration register (Table 4). When blink
mode is enabled, the state of the blink flip flag sets the
phase, and the output ports are set by either the blink
phase 0 registers or the blink phase 1 registers (Table 7).
The blink mode is disabled by clearing the blink enable
flag E in the configuration register (Table 4). When blink
mode is disabled, the state of the blink flip flag is
ignored, and the blink phase 0 registers alone control
the output ports.
Blink Phase Registers
When the blink function is disabled, the two blink phase
0 registers set the logic levels of the 16 ports (P0 through
P15) when configured as outputs (Table 8). A duplicate
pair of registers called the blink phase 1 registers are
also used if the blink function is enabled (Table 9). A
logic high sets the appropriate output port high imped-
ance, while a logic low makes the port go low.
Reading a blink phase register reads the value stored
in the register, not the actual port condition. The port
output itself may or may not be at a valid logic level,
depending on the external load connected.
16-Port I/O Expander with LED Intensity
Control, Interrupt, and Hot-Insertion Protection
16 ______________________________________________________________________________________
Table 5. Ports Configuration Registers
REGISTER DATA
REGISTER R/W
ADDRESS
CODE
(HEX)
D7 D6 D5 D4 D3 D2 D1 D0
Ports configuration P7–P0
(1 = input, 0 = output)
0
Read back ports configuration P7–P0 1
0x06 OP7 OP6 OP5 OP4 OP3 OP2 OP1 OP0
Ports configuration P15–P8
(1 = input, 0 = output)
0
Read back ports configuration P15–P8 1
0x07 OP15 OP14 OP13 OP12 OP11 OP10 OP9 OP8
Table 6. Input Ports Registers
REGISTER DATA
REGISTER R/W
ADDRESS
CODE
(HEX)
D7 D6 D5 D4 D3 D2 D1 D0
Read input ports P7–P0 1 0x00 IP7 IP6 IP5 IP4 IP3 IP2 IP1 IP0
Read input ports P15–P8 1 0x01 IP15 IP14 IP13 IP12 IP11 IP10 IP9 IP8
Table 7. Blink Controls
BLINK
ENABLE
FLAG E
BLINK
FLIP
FLAG B
BLINK
FUNCTION
OUTPUT
REGISTERS
USED
0 X Disabled
Blink phase 0
registers
0
Blink phase 0
registers
1
1
Enabled
Blink phase 1
registers
X
= Don’t care.
The 17th output, O16, is controlled through 2 bits in the
configuration register, which provide the same static or
blink control as the other 16 output ports.
PWM Intensity Control
The MAX7313 includes an internal oscillator, nominally
32kHz, to generate PWM timing for LED intensity con-
trol or other applications such as PWM trim DACs.
PWM can be disabled entirely for all the outputs. In this
case, all outputs are static and the MAX7313 operating
current is lowest because the internal PWM oscillator is
turned off.
The MAX7313 can be configured to provide any combi-
nation of PWM outputs and glitch-free logic outputs.
Each PWM output has an individual 4-bit intensity con-
trol (Table 14). When all outputs are to be used with the
same PWM setting, the outputs can be controlled
together instead using the global intensity control
(Table 13). Table 10 shows how to set up the MAX7313
to suit a particular application.
PWM Timing
The PWM control uses a 240-step PWM period, divided
into 15 master intensity timeslots. Each master intensity
timeslot is divided further into 16 PWM cycles (Figure 11).
The master intensity operates as a gate, allowing the indi-
vidual output settings to be enabled from 1 to 15 timeslots
per PWM period (Figures 12, 13, 14) (Table 13).
Each output’s individual 4-bit intensity control only
operates during the number of timeslots gated by the
master intensity. The individual controls provide 16
intensity settings from 1/16 through 16/16 (Table 14).
Figures 15, 16, and 17 show examples of individual
intensity control settings. The highest value an individ-
ual or global setting can be set to is 16/16. This setting
forces the output to ignore the master control, and fol-
low the logic level set by the appropriate blink phase
register bit. The output becomes a glitch-free static out-
put with no PWM.
Using PWM Intensity Controls with Blink Disabled
When blink is disabled (Table 7), the blink phase 0 reg-
isters specify each output’s logic level during the PWM
on-time (Table 8). The effect of setting an output’s blink
phase 0 register bit to 0 or 1 is shown in Table 11. With
its output bit set to zero, an LED can be controlled with
16 intensity settings from 1/16th duty through fully on,
but cannot be turned fully off using the PWM intensity
control. With its output bit set to 1, an LED can be con-
trolled with 16 intensity settings from fully off through
15/16th duty.
Using PWM Intensity Controls with Blink Enabled
When blink is enabled (Table 7), the blink phase 0 regis-
ters and blink phase 1 registers specify each output’s
logic level during the PWM on-time during the respective
MAX7313
16-Port I/O Expander with LED Intensity
Control, Interrupt, and Hot-Insertion Protection
______________________________________________________________________________________ 17
Table 8. Blink Phase 0 Registers
REGISTER DATA
REGISTER R/W
ADDRESS
CODE
(HEX)
D7 D6 D5 D4 D3 D2 D1 D0
Write outputs P7–P0 phase 0 0
Read back outputs P7–P0 phase 0 1
0x02 OP7 OP6 OP5 OP4 OP3 OP2 OP1 OP0
Write outputs P15–P8 phase 0 0
Read back outputs P15–P8 phase 0 1
0x03 OP15 OP14 OP13 OP12 OP11 OP10 OP9 OP8
Table 9. Blink Phase 1 Registers
REGISTER DATA
REGISTER R/W
ADDRESS
CODE
(HEX)
D7 D6 D5 D4 D3 D2 D1 D0
Write outputs P7–P0 phase 1 0
Read back outputs P7–P0 phase 1 1
0x0A OP7 OP6 OP5 OP4 OP3 OP2 OP1 OP0
Write outputs P15–P8 phase 1 0
Read back outputs P15–P8 phase 1 1
0x03 OP15 OP14 OP13 OP12 OP11 OP10 OP9 OP8
MAX7313
16-Port I/O Expander with LED Intensity
Control, Interrupt, and Hot-Insertion Protection
18 ______________________________________________________________________________________
Table 10. PWM Application Scenarios
APPLICATION RECOMMENDED CONFIGURATION
All outputs static without PWM
Set the master, O16 intensity register 0x0E to any value 0x00 to 0x0F.
The global intensity G bit in the configuration register is don't care.
The output intensity registers 0x10 through 0x17 are don't care.
A mix of static and PWM outputs, with PWM
outputs using different PWM settings
Set the master, O16 intensity register 0x0E to any value from 0x10 to 0xFF.
Clear global intensity G bit to 0 in the configuration register to disable global intensity
control.
For the static outputs, set the output intensity value to 0xF.
For the PWM outputs, set the output intensity value in the range 0x0 to 0xE.
A mix of static and PWM outputs, with PWM
outputs all using the same PWM setting
As above. Global intensity control cannot be used with a mix of static and PWM
outputs, so write the individual intensity registers with the same PWM value.
All outputs PWM using the same PWM
setting
Set the master, O16 intensity register 0x0E to any value except from 0x10 to 0xFF.
Set global intensity G bit to 1 in the configuration register to enable global intensity
control.
The master, O16 intensity register 0x0E is the only intensity register used.
The output intensity registers 0x10 through 0x17 are don't care.
Figure 11. PWM Timing
ONE PWM PERIOD IS 240 CYCLES OF THE 32kHz PWM
OSCILLATOR. A PWM PERIOD CONTAINS 15 MASTER
INTENSITY TIMESLOTS
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 14 15 1 2
EACH MASTER INTENSITY
TIMESLOT CONTAINS 16
PWM CYCLES
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 15 16 1 2
Figure 12. Master Set to 1/15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 14 15 2 1
.
Figure 14. Master Set to 15/15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 14 15 2 1
.
.
Figure 13. Master Set to 14/15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 14 15 2 1
.
.

MAX7313ATG+T

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
Interface - I/O Expanders 16-Bit I/O Port Expander
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union