| 数据搜索系统,热门电子元器件搜索 |
|
ADE5166 数据表(PDF) 140 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADE5166 数据表(HTML) 140 Page - Analog Devices |
|
140 / 148 page ![]() ADE5166/ADE5169/ADE5566/ADE5569 Preliminary Technical Data Rev. PrB | Page 140 of 148 I2C RECEIVE AND TRANSMIT FIFOS The I2C peripheral has a 4-byte receive FIFO and a 4-byte transmit FIFO. The buffers reduce the overhead associated with using the I2C peripheral. Figure 94 shows the operation of the I2C receive and transmit FIFOs. The Tx FIFO can be loaded with four bytes to be transmitted to the slave at the beginning of a write operation. When the transmit FIFO is empty, the I2C transmit interrupt flag is set, and the PC vectors to the I2C interrupt vector if this interrupt is enabled. If a new byte is not loaded into the Tx FIFO before it is needed in the transmit shift register, the communication stops. An error, such as not receiving an acknowledge, also causes the communica- tion to terminate. In case of an error during a write operation, the Tx FIFO is flushed. The Rx FIFO allows four bytes to be read in from the slave before the MCU has to read the data. A receive interrupt can be generated after each byte is received or when the Rx FIFO is full. If the peripheral is reading from a slave address, the communication stops once the number of received bytes equals the number set in I2CRCT[4:0]. An error, such as not receiving an acknowledge, also causes the communication to terminate. I2CTx 4-BYTE FIFO MOV I2CTx, TxDATA1 MOV I2CTx, TxDATA2 MOV I2CTx, TxDATA3 MOV I2CTx, TxDATA4 CODE TO FILL Tx FIFO: TRANSMIT SHIFT REGISTER I2CRx RECEIVE SHIFT REGISTER 4-BYTE FIFO CODE TO READ Rx FIFO: MOV A, I2CRx; RESULT: A = RxDATA1 MOV A, I2CRx; RESULT: A = RxDATA2 MOV A, I2CRx; RESULT: A = RxDATA3 MOV A, I2CRx; RESULT: A = RxDATA4 TxDATA1 TxDATA2 TxDATA3 TxDATA4 RxDATA4 RxDATA3 RxDATA2 RxDATA1 Figure 94. I2C FIFO Operation |
|
链接网址 |
| 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 |