ADE5166_08 AD [Analog Devices], ADE5166_08 Datasheet - Page 136
ADE5166_08
Manufacturer Part Number
ADE5166_08
Description
Single-Phase Energy Measurement IC with 8052 MCU, RTC, and LCD Driver
Manufacturer
AD [Analog Devices]
Datasheet
1.ADE5166_08.pdf
(148 pages)
- Current page: 136 of 148
- Download datasheet (3Mb)
ADE5166/ADE5169
SPI INTERRUPT AND STATUS FLAGS
The SPI interface has several status flags that indicate the status
of the double-buffered receive and transmit registers. Figure 107
shows when the status and interrupt flags are raised. The transmit
interrupt occurs when the transmit shift register is loaded with the
data in the SPI/I
register. If the SPI master is in transmit operating mode, and the
SPI/I
has not been written with new data by the beginning of the next
byte transfer, the transmit operation stops.
When a new byte of data is received in the SPI/I
SFR (SPI2CRx, Address 0x9B), the SPI receive interrupt flag is
raised. If the data in the SPI/I
2
C transmit buffer SFR (SPI2CTx, Address 0x9A) register
2
C transmit buffer SFR (SPI2CTx, Address 0x9A)
SPICPHA = 1
SPICPHA = 0
2
C receive buffer SFR (SPI2CRx,
WITH INTMOD = 1
WITH INTMOD = 0
WITH INTMOD = 1
WITH INTMOD = 0
(SPICPOL = 1)
(SPICPOL = 0)
SPITx FLAGS
SPITx FLAGS
SPITx FLAGS
SPITx FLAGS
SPIRx AND
SPIRx AND
SPIRx AND
SPIRx AND
2
C receive buffer
SCLK
SCLK
MISO
MOSI
MISO
MOSI
SS
Figure 108. SPI Timing Configurations
Rev. 0 | Page 136 of 148
MSB BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 LSB
MSB BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 LSB
?
?
MSB BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 LSB
MSB BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 LSB
Address 0x9B) is not read before new data is ready to be loaded
into the SPI/I
an overflow condition has occurred. This overflow condition,
indicated by the SPIRxOF flag, forces the new data to be discarded
or overwritten if the RxOFW bit (SPIMOD1, Address 0xE8) is set.
TRANSMIT SHIFT REGISTER
TRANSMIT SHIFT REGISTER
Figure 107. SPI Receive and Transmit Interrupt and Status Flags
SPITx (EMPTY)
SPITx
2
C receive buffer SFR (SPI2CRx, Address0x9B),
STOPS TRANSFER IF TIMODE = 1
SPITxIRQ = 1
?
?
RECEIVE SHIFT REGISTER
RECEIVE SHIFT REGISTER
SPIRx (FULL)
SPIRx
SPIRxOF = 1
SPIRxIRQ = 1
Related parts for ADE5166_08
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
DPG2 EVAL ADAPTER FOR XILINX BOARDS
Manufacturer:
Analog Devices Inc
Part Number:
Description:
Xilinx FMC Interface
Manufacturer:
Analog Devices Inc
Datasheet:
Part Number:
Description:
Xilinx FMC Interface
Manufacturer:
Analog Devices Inc
Datasheet:
Part Number:
Description:
Xilinx FMC Interface
Manufacturer:
Analog Devices Inc
Datasheet:
Part Number:
Description:
Xilinx FMC Interface
Manufacturer:
Analog Devices Inc
Datasheet:
Part Number:
Description:
Xilinx FMC Interface
Manufacturer:
Analog Devices Inc
Datasheet:
Part Number:
Description:
Xilinx FMC Interface
Manufacturer:
Analog Devices Inc
Datasheet:
Part Number:
Description:
Xilinx FMC Interface
Manufacturer:
Analog Devices Inc
Datasheet:
Part Number:
Description:
RF Development Tools Sransceiver board for FMC evaluation kit
Manufacturer:
Analog Devices
Part Number:
Description:
Analog Devices: Data Converters: DAC 12-Bit, 10 ns to 100 ns Converters Selection Table
Manufacturer:
AD [Analog Devices]
Datasheet:
Part Number:
Description:
Analog Devices: Data Converters: DAC 8-Bit, 10 ns to 100 ns Converters Selection Table
Manufacturer:
AD [Analog Devices]
Datasheet:
Part Number:
Description:
Low-Power Analog Front End with DSP Microcomputer
Manufacturer:
AD [Analog Devices]
Datasheet:
Part Number:
Description:
2 Pair/1 Pair ETSI Compatible HDSL Analog Front End
Manufacturer:
AD [Analog Devices]
Datasheet: