ade7166 Analog Devices, Inc., ade7166 Datasheet - Page 136

no-image

ade7166

Manufacturer Part Number
ade7166
Description
Single-phase Energy Measurement Ic With 8052 Mcu, Rtc, And Lcd Driver
Manufacturer
Analog Devices, Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ade7166ASTZF16
Manufacturer:
VHK
Quantity:
2
Part Number:
ade7166ASTZF16
Manufacturer:
Analog Devices Inc
Quantity:
10 000
Part Number:
ade7166ASTZF16-RL
Manufacturer:
KOA
Quantity:
50 000
Part Number:
ade7166ASTZF16-RL
Manufacturer:
Analog Devices Inc
Quantity:
10 000
Part Number:
ade7166ASTZF8
Manufacturer:
Analog Devices Inc
Quantity:
10 000
Part Number:
ade7166ASTZF8-RL
Manufacturer:
Analog Devices Inc
Quantity:
10 000
ADE7566/ADE7569/ADE7166/ADE7169
I
The I
transmit FIFO. The buffers reduce the overhead associated with
using the I
I
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 I
and the PC vectors to the I
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
communication 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
2
2
C receive and transmit FIFOs.
C RECEIVE AND TRANSMIT FIFOS
2
C peripheral has a 4-byte receive FIFO and a 4-byte
2
C peripheral. Figure 113 shows the operation of the
2
C interrupt vector if this interrupt is
2
C transmit interrupt flag is set,
Rev. A | Page 136 of 144
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 the I2CRCT, Bits[4:0]. An error, such as not
receiving an acknowledge, also causes the communication to
terminate.
4 BYTE FIFO
CODE TO FILL Tx FIFO:
MOV I
MOV I
MOV I
MOV I
TRANSMIT SHIFT REGISTER
2
2
2
2
CTx, TxDATA1
CTx, TxDATA2
CTx, TxDATA3
CTx, TxDATA4
TxDATA4
TxDATA3
TxDATA2
TxDATA1
I
2
CTx
Figure 113. I
4 BYTE FIFO
2
C FIFO Operation
CODE TO READ Rx FIFO:
MOV A, I
MOV A, I
MOV A, I
MOV A, I
RECEIVE SHIFT REGISTER
2
2
2
2
CRx; RESULT: A = RxDATA1
CRx; RESULT: A = RxDATA2
CRx; RESULT: A = RxDATA3
CRx; RESULT: A = RxDATA4
RxDATA1
RxDATA2
RxDATA3
RxDATA4
I
2
CRx

Related parts for ade7166