6.4. I2C Receive Buffer Size Bytes received " />
參數(shù)資料
型號(hào): CP2120EK
廠(chǎng)商: Silicon Laboratories Inc
文件頁(yè)數(shù): 9/24頁(yè)
文件大?。?/td> 0K
描述: KIT EVAL FOR CP2120
產(chǎn)品培訓(xùn)模塊: CP21xx USB Bridge
標(biāo)準(zhǔn)包裝: 1
主要目的: 接口,SPI 至 I²C
嵌入式:
已用 IC / 零件: CP2120
次要屬性: LED 狀態(tài)指示器
已供物品: 板,文檔,電源適配器
其它名稱(chēng): 336-1325
CP2120
Rev. 0.4
17
6.4. I2C Receive Buffer Size
Bytes received from I2C transactions are stored in the 255-byte data buffer. The number of bytes currently stored
inside this buffer is saved in the RXBUFF Internal Register.
Internal Register Definition 6. RXBUFF: Receive Buffer Size Register
6.5. I2C Commands
SPI commands initiate all I2C transactions. The CP2120 executes I2C transactions only after every byte of the
command has been successfully received across the SPI bus. Once the CP2120 has completed the I2C
transaction prompted by the command, the INT pin will be pulled low to indicate that command execution has
completed. If an I2C command is issued while an I2C command is in progress, the second I2C command will be
ignored.
6.5.1. Write Bytes to I2C
This command transmits data to an I2C slave device. The command begins with the command byte (0x00),
followed by the number of bytes to be transmitted across I2C, which can range from 1 to 255, and the address of
the I2C Slave. The SPI master then sends the data to be transmitted across I2C. Sending more or fewer bytes than
was indicated by the second byte of the command will result in an error condition, and the I2C transaction will not
be initiated.
Once the I2C transaction completes, the CP2120 pulls the INT pin low and sets the internal register according to
the results of the transaction.
6.5.2. Read Bytes from I2C
This command attempts to retrieve bytes from an I2C Slave device. The command begins with the command byte,
0x01, followed by the number of bytes to read (1 to 255) and the address of the I2C slave device.
Once the I2C transaction completes, the CP2120 pulls the INT pin low and sets I2CSTAT according to the results of
the transaction. The CP2120 saves the number of bytes stored in the buffer in the internal register named
RXBUFF. A Read Buffer command can be issued to retrieve the bytes from the buffer.
Note that if the SPI Master issues a second Read Bytes from I2C command before issuing a Read Buffer
command, the bytes stored in the CP2120's buffer will be overwritten.
Internal Register Address:
0x06
Reset Value:
0x00
Bit 7-0:
RXB7-0: Receive Buffer Size
Indicates the number of bytes received during the last I2C read transaction.
RR
R
RXB7
RXB6
RXB5
RXB4
RXB3
RXB2
RXB1
RXB0
Bit 7
Bit 6
Bit 5
Bit 4
Bit3
Bit 2
Bit 1
Bit 0
DATA
BYTE1
DATA
BYTE N
NUMBER
OF BYTES
COMMAND
0x00
SLAVE
ADDRESS +W
...
SPI Master
NUMBER
OF BYTES
COMMAND
0x01
SLAVE ADDRESS
+R
SPI Master
相關(guān)PDF資料
PDF描述
HK212568NJ-T INDUCTOR HIFREQ 68NH 0805 5%
481022-000 SHIELD TERMINATOR SOLDER SLEEVE
1-6278892-0 C/A 62.5/125UM LSZH MTRJ 10M1
BG1A-F KIT DEV BOARD FOR IGBT
UVR2E220MHD CAP ALUM 22UF 250V 20% RADIAL
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
CP2120-GM 功能描述:接口 - 專(zhuān)用 SPI-I2C BRIDGE & GPIO PORT EXPANDER RoHS:否 制造商:Texas Instruments 產(chǎn)品類(lèi)型:1080p60 Image Sensor Receiver 工作電源電壓:1.8 V 電源電流:89 mA 最大功率耗散: 最大工作溫度:+ 85 C 安裝風(fēng)格:SMD/SMT 封裝 / 箱體:BGA-59
CP2120-GMR 功能描述:接口 - 專(zhuān)用 SPI-I2C BRIDGE & GPIO PORT EXPANDER RoHS:否 制造商:Texas Instruments 產(chǎn)品類(lèi)型:1080p60 Image Sensor Receiver 工作電源電壓:1.8 V 電源電流:89 mA 最大功率耗散: 最大工作溫度:+ 85 C 安裝風(fēng)格:SMD/SMT 封裝 / 箱體:BGA-59
CP2-127-06L 制造商:未知廠(chǎng)家 制造商全稱(chēng):未知廠(chǎng)家 功能描述:Analog IC
CP2-127-06L-1-RTV-W6 制造商:Laird Technologies Inc 功能描述:
CP2-127-06LT 制造商:未知廠(chǎng)家 制造商全稱(chēng):未知廠(chǎng)家 功能描述:Analog IC