To write to a MCP23016 register, the Master I
參數(shù)資料
型號: MCP23016T-I/ML
廠商: Microchip Technology
文件頁數(shù): 5/38頁
文件大?。?/td> 0K
描述: IC I/O EXPANDER I2C 16B 28QFN
標(biāo)準(zhǔn)包裝: 1,600
接口: I²C
輸入/輸出數(shù): 16
中斷輸出:
頻率 - 時鐘: 400kHz
電源電壓: 2 V ~ 5.5 V
工作溫度: -40°C ~ 85°C
安裝類型: 表面貼裝
封裝/外殼: 28-VQFN 裸露焊盤
供應(yīng)商設(shè)備封裝: 28-QFN(6x6)
包裝: 帶卷 (TR)
包括: POR
2007 Microchip Technology Inc.
DS20090C-page 13
MCP23016
1.9.2
WRITING THE REGISTERS
To write to a MCP23016 register, the Master I2C device
needs to follow the requirements, as illustrated in
Figure 1-3. First, the device is selected by sending the
slave address and setting the R/W bit to logic ‘0’. The
command byte
is
sent
after
the
address
and
determines which register will be written. Table 1-3
shows the relationship of the command byte and
register.
The MCP23016 has twelve 8-bit registers. They are
configured to operate as six 16-bit register pairs,
supporting the device’s 16-bit port. These pairs are
formed based on their functions (e.g., GP0 and GP1
are grouped together). The I2C commands apply to one
register pair to provide faster access. The first data byte
following a command byte is written into the register
pointed to by the command byte, while the second data
is written into another register in the same pair. For
example, if the first byte is sent to OLAT1 (command
byte 03h), the next data byte will be written into the sec-
ond register of that pair, OLAT0. If the first byte is writ-
ten to OLAT0 (command byte 02h), the second byte
will be written to OLAT1.
There is no limitation on the number of data bytes in
one write transmission. Figure 1-4 shows the case of
multiple byte writes in one write operation. In this case,
the multiple writes are made to the same data pair.
FIGURE 1-3:
WRITE TO CONFIGURATION
REGISTERS (CASE 1)
Note:
The bus must remain free until after the
ninth clock pulse for a minimum of 12 s
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
1
0
A2
A1
A0
D0
S
0
R/
W
=0
ACK
D6
D5
D4
D3
D2
D1
D7
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
D0
D6
D5
D4
D3
D2
D1
D7
ACK
D0
D6
D5
D4
D3
D2
D1
D7
ACK
P
Ad
d
re
s
C
o
mm
and
B
y
te
Da
ta
1
D
a
ta
2
ACK
SCL
h
e
ld
lo
w
u
n
til
data
i
s
pro
c
esse
d
相關(guān)PDF資料
PDF描述
MCP23018T-E/SS IC I/O EXPANDER I2C 16B 24SSOP
MCP23S09-E/P IC I/O EXPANDER SPI 8B 18DIP
MCP23S17T-E/ML IC I/O EXPANDER SPI 16B 28QFN
MCP25055-I/SL IC I/O EXPANDER CAN 8B 14SOIC
MCP2510T-E/SO IC CAN CONTROLLER W/SPI 18-SOIC
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MCP23017 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:16-Bit I/O Expander with Serial Interface
MCP23017-E/ML 功能描述:接口-I/O擴展器 16bit Input/Output Exp I2C interface RoHS:否 制造商:NXP Semiconductors 邏輯系列: 輸入/輸出端數(shù)量: 最大工作頻率:100 kHz 工作電源電壓:1.65 V to 5.5 V 工作溫度范圍:- 40 C to + 85 C 安裝風(fēng)格:SMD/SMT 封裝 / 箱體:HVQFN-16 封裝:Reel
MCP23017-E/SO 功能描述:接口-I/O擴展器 16bit Input/Output Exp I2C interface RoHS:否 制造商:NXP Semiconductors 邏輯系列: 輸入/輸出端數(shù)量: 最大工作頻率:100 kHz 工作電源電壓:1.65 V to 5.5 V 工作溫度范圍:- 40 C to + 85 C 安裝風(fēng)格:SMD/SMT 封裝 / 箱體:HVQFN-16 封裝:Reel
MCP23017-E/SO 制造商:Microchip Technology Inc 功能描述:I/O Expander IC
MCP23017-E/SP 功能描述:接口 - 專用 16bit Input/Output Exp I2C interface RoHS:否 制造商:Texas Instruments 產(chǎn)品類型:1080p60 Image Sensor Receiver 工作電源電壓:1.8 V 電源電流:89 mA 最大功率耗散: 最大工作溫度:+ 85 C 安裝風(fēng)格:SMD/SMT 封裝 / 箱體:BGA-59