DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

MAX7313 Ver la hoja de datos (PDF) - Maxim Integrated

Número de pieza
componentes Descripción
Fabricante
MAX7313 Datasheet PDF : 26 Pages
First Prev 11 12 13 14 15 16 17 18 19 20 Next Last
16-Port I/O Expander with LED Intensity
Control, Interrupt, and Hot-Insertion Protection
Table 5. Ports Configuration Registers
REGISTER
ADDRESS
R/W CODE
REGISTER DATA
(HEX)
D7
D6
D5
D4
D3
D2
D1
D0
Ports configuration P7–P0
(1 = input, 0 = output)
0
0x06
OP7 OP6 OP5 OP4 OP3 OP2 OP1 OP0
Read back ports configuration P7–P0
1
Ports configuration P15–P8
(1 = input, 0 = output)
0
0x07 OP15 OP14 OP13 OP12 OP11 OP10 OP9 OP8
Read back ports configuration P15–P8 1
Table 6. Input Ports Registers
REGISTER
Read input ports P7–P0
Read input ports P15–P8
ADDRESS
R/W CODE
REGISTER DATA
(HEX)
D7
D6
D5
D4
D3
D2
D1
D0
1
0x00
IP7 IP6 IP5 IP4 IP3 IP2 IP1 IP0
1
0x01
IP15 IP14 IP13 IP12 IP11 IP10 IP9 IP8
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).
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 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).
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.
Table 7. Blink Controls
BLINK
ENABLE
FLAG E
0
BLINK
FLIP
FLAG B
X
0
1
1
X = Don’t care.
BLINK
FUNCTION
Disabled
Enabled
OUTPUT
REGISTERS
USED
Blink phase 0
registers
Blink phase 0
registers
Blink phase 1
registers
16 ______________________________________________________________________________________

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]