| 数据搜索系统,热门电子元器件搜索 |
|
ADE5166 数据表(PDF) 145 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADE5166 数据表(HTML) 145 Page - Analog Devices |
|
145 / 156 page ![]() ADE5166/ADE5169/ADE5566/ADE5569 Rev. B | Page 145 of 156 Table 159. I2C Interrupt Status SFR (SPI2CSTAT, Address 0xEA) Bit Mnemonic Default Description 7 I2CBUSY 0 This bit is set to Logic 1 when the I2C interface is used. When set, the Tx FIFO is emptied. 6 I2CNOACK 0 I2C no acknowledgement transmit interrupt. This bit is set to Logic 1 when the slave device does not send an acknowledgement. The I2C communication is stopped after this event. Write a 0 to this bit to clear it. 5 I2CRxIRQ 0 I2C receive interrupt. This bit is set to Logic 1 when the receive FIFO is not empty. Write a 0 to this bit to clear it. 4 I2CTxIRQ 0 I2C transmit interrupt. This bit is set to Logic 1 when the transmit FIFO is empty. Write a 0 to this bit to clear it. [3:2] I2CFIFOSTAT 00 Status bits for 3- or 4-byte deep I2C FIFO. The FIFO monitored in these two bits is the one currently used in I2C communication (receive or transmit) because only one FIFO is active at a time. I2CFIFOSTAT Result 00 FIFO empty 01 Reserved 10 FIFO half full 11 FIFO full 1 I2CACC_ERR 0 Set when trying to write and read at the same time. Write a 0 to this bit to clear it. 0 I2CTxWR_ERR 0 Set when a write is attempted when the I2C transmit FIFO is full. Write a 0 to this bit to clear it. READ AND WRITE OPERATIONS SCLK SDATA START BY MASTER ACK BY SLAVE ACK BY MASTER FRAME 2 DATA BYTE 1 FROM MASTER FRAME 1 SERIAL BUS ADDRESS BYTE 19 9 1 A0 A1 A2 A3 A4 A5 A6 R/W D0 D1 D2 D3 D4 D5 D6 D7 9 1 D0 D1 D2 D3 D4 D5 D6 D7 FRAME N + 1 DATA BYTE N FROM SLAVE STOP BY MASTER NACK BY MASTER Figure 114. I2C Read Operation SCLK SDATA START BY MASTER ACK BY SLAVE ACK BY SLAVE FRAME 2 DATA BYTE 1 FROM MASTER FRAME 1 SERIAL BUS ADDRESS BYTE 19 1 9 STOP BY MASTER A0 A1 A2 A3 A4 A5 A6 R/W D0 D1 D2 D3 D4 D5 D6 D7 Figure 115. I2C Write Operation Figure 114 and Figure 115 depict I2C read and write operations, respectively. Note that the LSB of the I2CADR SFR (Address 0xE9) is used to select whether a read or write operation is performed on the slave device. During the read operation, the master acknowl- edgements are generated automatically by the I2C peripheral. The master-generated no acknowledge (NACK) before the end of a read operation is also automatically generated after the I2CRCT bits in the I2CMOD SFR (Address 0xE8[4:0]) have been read from the slave. If the I2CADR register is updated during a transmission, the master generates a start condition instead of a stop at the end of the read or write operation and then continues with the next communication. Reading the SPI/I2C Receive Buffer SFR (SPI2CRx, Address 0x9B) Reading the SPI2CRx SFR should be done with a 2-cycle instruction, such as Mov a, spi2crx or Mov R0, spi2crx . A 3-cycle instruction, such as Mov 3dh, spi2crx does not transfer the right data into RAM Address 0x3D. |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |