ade7518 Analog Devices, Inc., ade7518 Datasheet - Page 117

no-image

ade7518

Manufacturer Part Number
ade7518
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:
ade7518ASTZF16
Manufacturer:
Analog Devices Inc
Quantity:
10 000
Part Number:
ade7518ASTZF16-RL
Manufacturer:
Analog Devices Inc
Quantity:
10 000
Part Number:
ade7518ASTZF8
Manufacturer:
Analog Devices Inc
Quantity:
135
Part Number:
ade7518ASTZF8
Manufacturer:
Analog Devices Inc
Quantity:
10 000
Part Number:
ade7518ASTZF8-RL
Manufacturer:
Analog Devices Inc
Quantity:
10 000
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 96
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
If the SPI master is in transmit operating mode, and the SPI/I
Transmit Buffer SFR (SPI2CTx, 0x9A) register 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, 0x9B), the SPI receive interrupt flag is raised.
If the data in the SPI/I
2
C Transmit Buffer SFR (SPI2CTx, 0x9A).
2
C Receive Buffer SFR (SPI2CRx, 0x9B) is
SPICPHA = 1
SPICPHA = 0
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 97. SPI Timing Configurations
Rev. 0 | Page 117 of 128
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
?
?
2
C
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
not read before new data is ready to be loaded into the SPI/I
Receive Buffer SFR (SPI2CRx, 0x9B), 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 is set.
TRANSMIT SHIFT REGISTER
TRANSMIT SHIFT REGISTER
Figure 96. SPI Receive and Transmit Interrupt and Status Flags
SPITx (EMPTY)
SPITx
STOPS TRANSFER IF TIMODE = 1
SPITxIRQ = 1
?
?
RECEIVE SHIFT REGISTER
RECEIVE SHIFT REGISTER
SPIRx (FULL)
SPIRx
ADE7518
SPIRxOF = 1
SPIRxIRQ = 1
2
C

Related parts for ade7518