Datasheet 搜索 > 接口芯片 > Maxim Integrated(美信) > MAX7300AAX+ 数据手册 > MAX7300AAX+ 产品设计参考手册 3/5 页


¥ 26.767
MAX7300AAX+ 产品设计参考手册 - Maxim Integrated(美信)
制造商:
Maxim Integrated(美信)
分类:
接口芯片
封装:
SSOP-36
描述:
MAXIM INTEGRATED PRODUCTS MAX7300AAX+ 输入/输出扩展, 400 kHz, I2C, 2.5 V, 5.5 V, SSOP
Pictures:
3D模型
符号图
焊盘图
引脚图
产品图
页面导航:
应用领域在P1
导航目录
MAX7300AAX+数据手册
Page:
of 5 Go
若手册格式错乱,请下载阅览PDF原文件

I2CWrite(0x80, 0x02, 0x07); // Set a half global constant current
I2CWrite(0x80, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00); // Set all
ports to LED drive mode
I2CWrite(0x80, 0x04, 0x01); // Set the shutdown/run bit of the configuration
register
As a reference checkpoint the binary equivalent of the write command to set the shutdown/run bit is also
listed below.
I2CWrite(0x80, 0x04, 0x01);
1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1
Below are I²C commands to set one port (P4 in this example) to the full constant-current level at power-
up.
I2CWrite(0x80, 0x12, 0x07); // Set a half port P4 constant current
I2CWrite(0x80, 0x09, 0xA8); // Set P4 to LED drive mode
I2CWrite(0x80, 0x04, 0x01); // Set the shutdown/run bit of the configuration
register
All ports are set to the logic input without a pullup resistor at power-up. Only the following I²C command
is needed to activate the MAX6956 to operate with all power-up defaults.
I2CWrite(0x80, 0x04, 0x01); // Set the shutdown/run bit of the configuration
register
MAX6957 SPI Commands
Any register of the MAX6957 can also be written to or read from by sending a 16-bit word consisting of
the register-address byte followed by the data byte through the SPI interface. The first bit of the address
byte determines if it is a write (0) or a read (1) command. All 16-bit words can be put together next to
each other.
Below are data bytes on the MAX6957 DIN input pin to set all ports to half of the maximum constant-
current level of 24mA. These commands are similar to those for the MAX6956, except the need to
specify the device address. For the SPI interface, a particular device is selected by setting the active-low
CS input pin low. There is no register-address autoincrement feature for the MAX6957.
0x02, 0x07; // Set a half global constant current
0x09, 0x00; // Set ports P4 through P7 to LED drive mode
0x0A, 0x00; // Set ports P8 through P11 to LED drive mode
0x0B, 0x00; // Set ports P12 through P15 to LED drive mode
0x0C, 0x00; // Set ports P16 through P19 to LED drive mode
0x0D, 0x00; // Set ports P20 through P23 to LED drive mode
0x0E, 0x00; // Set ports P24 through P27 to LED drive mode
Page 3 of 5
器件 Datasheet 文档搜索
AiEMA 数据库涵盖高达 72,405,303 个元件的数据手册,每天更新 5,000 多个 PDF 文件