6.4. I2C Receive Buffer Size Bytes received " />
參數(shù)資料
型號(hào): CP2120-GM
廠商: Silicon Laboratories Inc
文件頁(yè)數(shù): 9/24頁(yè)
文件大?。?/td> 0K
描述: IC I/O EXPANDER I2C/SPI 8B 20QFN
產(chǎn)品培訓(xùn)模塊: CP21xx USB Bridge
標(biāo)準(zhǔn)包裝: 91
接口: I²C,SPI
輸入/輸出數(shù): 8
中斷輸出:
頻率 - 時(shí)鐘: 400kHz
電源電壓: 3 V ~ 3.6 V
工作溫度: -40°C ~ 85°C
安裝類(lèi)型: 表面貼裝
封裝/外殼: 20-VFQFN 裸露焊盤(pán)
供應(yīng)商設(shè)備封裝: 20-QFN(4x4)
包裝: 管件
產(chǎn)品目錄頁(yè)面: 627 (CN2011-ZH PDF)
其它名稱(chēng): 336-1324
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描述
CP2200-GQ IC ETH CTRLR SNGL-CHIP 48TQFP
CP80C86-2Z IC CPU 16BIT 5V 8MHZ 40-PDIP
CP82C50A-5Z IC ASYNC COMM ELEMENT UART 40DIP
CP82C89 IC ARBITER BUS 5V 8MHZ 20-DIP
CPC1465D IC DC TERMINATION 16-SOIC
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
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):未知廠家 功能描述:Analog IC
CP2-127-06L-1-RTV-W6 制造商:Laird Technologies Inc 功能描述:
CP2-127-06LT 制造商:未知廠家 制造商全稱(chēng):未知廠家 功能描述:Analog IC
CP2-127-06TL 制造商:未知廠家 制造商全稱(chēng):未知廠家 功能描述:Analog IC