ADE7758
in the interrupt status register are set irrespective of the state of
the mask bits. To determine the source of the interrupt, the
MCU should perform a read from the reset interrupt status
register with reset. This is achieved by carrying out a read from
RSTATUS, Address 0x1A. The IRQ output goes logic high on
completion of the interrupt status register read command (see
the Interrupt Timing section). When carrying out a read with
reset, the ADE7758 is designed to ensure that no interrupt
events are missed. If an interrupt event occurs just as the
interrupt status register is being read, the event is not lost, and
the IRQ logic output is guaranteed to go logic high for the
duration of the interrupt status register data transfer before
going logic low again to indicate the pending interrupt. Note
that the reset interrupt bit in the status register is high for only
one clock cycle, and it then goes back to 0.
USING THE INTERRUPTS WITH AN MCU
Figure 87 shows a timing diagram that illustrates a suggested
implementation of ADE7758 interrupt management using an
MCU. At time t 1 , the IRQ line goes active low indicating that
one or more interrupt events have occurred in the ADE7758 .
The IRQ logic output should be tied to a negative-edge-
triggered external interrupt on the MCU. On detection of the
negative edge, the MCU should be configured to start executing
its interrupt service routine (ISR). On entering the ISR, all
interrupts should be disabled using the global interrupt mask
bit. At this point, the MCU external interrupt flag can be
cleared to capture interrupt events that occur during the current
ISR. When the MCU interrupt flag is cleared, a read from the
reset interrupt status register with reset is carried out. (This
causes the IRQ line to be reset logic high (t 2 ); see the Interrupt
Timing section.) The reset interrupt status register contents are
used to determine the source of the interrupt(s) and hence the
appropriate action to be taken. If a subsequent interrupt event
occurs during the ISR (t 3 ) that event is recorded by the MCU
external interrupt flag being set again.
On returning from the ISR, the global interrupt mask bit is
cleared (same instruction cycle) and the external interrupt flag
uses the MCU to jump to its ISR once again. This ensures that
the MCU does not miss any external interrupts. The reset bit in
the status register is an exception to this and is only high for one
clock cycle after a reset event.
INTERRUPT TIMING
The Serial Interface section should be reviewed before
reviewing this section. As previously described, when the IRQ
output goes low, the MCU ISR must read the interrupt status
Data Sheet
register to determine the source of the interrupt. When reading
the interrupt status register contents, the IRQ output is set high
on the last falling edge of SCLK of the first byte transfer (read
interrupt status register command). The IRQ output is held
high until the last bit of the next 8-bit transfer is shifted out
(interrupt status register contents), as shown in Figure 88 . If an
interrupt is pending at this time, the IRQ output goes low again.
If no interrupt is pending, the IRQ output remains high.
SERIAL INTERFACE
The ADE7758 has a built-in SPI interface. The serial interface
of the ADE7758 is made of four signals: SCLK, DIN, DOUT,
and CS. The serial clock for a data transfer is applied at the
SCLK logic input. This logic input has a Schmitt trigger input
structure that allows slow rising (and falling) clock edges to be
used. All data transfer operations are synchronized to the serial
clock. Data is shifted into the ADE7758 at the DIN logic input
on the falling edge of SCLK. Data is shifted out of the ADE7758
at the DOUT logic output on a rising edge of SCLK.
The CS logic input is the chip select input. This input is used
when multiple devices share the serial bus. A falling edge on CS
also resets the serial interface and places the ADE7758 in
communications mode.
The CS input should be driven low for the entire data transfer
operation. Bringing CS high during a data transfer operation
aborts the transfer and places the serial bus in a high impedance
state. The CS logic input can be tied low if the ADE7758 is the
only device on the serial bus.
However, with CS tied low, all initiated data transfer operations
must be fully completed. The LSB of each register must be
transferred because there is no other way of bringing the
ADE7758 back into communications mode without resetting
the entire device, that is, performing a software reset using Bit 6
of the OPMODE[7:0] register, Address 0x13.
The functionality of the ADE7758 is accessible via several on-
chip registers (see Figure 89). The contents of these registers can
be updated or r ea d using the on-chip serial interface. After a
falling edge on CS, the ADE7758 is placed in communications
mode. In communications mode, the ADE7758 expects the first
communication to be a write to the internal communications
register. The data written to the communications register
contains the address and specifies the next data transfer to be a
read or a write command. Therefore, all data transfer operations
with the ADE7758 , whether a read or a write, must begin with a
write to the communications register.
Rev. E | Page 56 of 72
相关PDF资料
ADE7761AARSZ-RL IC ENERGY METERING 1PHASE 20SSOP
ADE7761BARSZ-RL IC ENERGY METERING 1PHASE 20SSOP
ADE7768ARZ-RL IC ENERGY METERING 1PHASE 16SOIC
ADE7769ARZ-RL IC ENERGY METERING 1PHASE 16SOIC
ADM8843ACPZ-REEL7 IC LED DRVR WHITE BCKLGT 16LFCSP
ADP1653ACPZ-R7 IC LED DRVR PHOTO FLASH 16-LFCSP
ADP1712-EVALZ BOARD EVALUATION ADP1712
ADP1720-EVALZ BOARD EVAL FOR ADP1720-ADJ
相关代理商/技术参数
ADE7759 制造商:AD 制造商全称:Analog Devices 功能描述:Active Energy Metering IC with di/dt Sensor Interface
ADE7759ARS 功能描述:IC ENERGY METERING 1PHASE 20SSOP RoHS:否 类别:集成电路 (IC) >> PMIC - 能量测量 系列:- 产品培训模块:Lead (SnPb) Finish for COTS Obsolescence Mitigation Program 标准包装:2,500 系列:*
ADE7759ARSRL 功能描述:IC ENERGY METERING 1PHASE 20SSOP RoHS:否 类别:集成电路 (IC) >> PMIC - 能量测量 系列:- 产品培训模块:Lead (SnPb) Finish for COTS Obsolescence Mitigation Program 标准包装:2,500 系列:*
ADE7759ARSZ 功能描述:IC ENERGY METERING 1PHASE 20SSOP RoHS:是 类别:集成电路 (IC) >> PMIC - 能量测量 系列:- 产品培训模块:Lead (SnPb) Finish for COTS Obsolescence Mitigation Program 标准包装:2,500 系列:*
ADE7759ARSZRL 功能描述:IC ENERGY METERING 1PHASE 20SSOP RoHS:是 类别:集成电路 (IC) >> PMIC - 能量测量 系列:- 产品培训模块:Lead (SnPb) Finish for COTS Obsolescence Mitigation Program 标准包装:2,500 系列:*
ADE7760 制造商:AD 制造商全称:Analog Devices 功能描述:Energy Metering IC with On-Chip Fault Detection
ADE7760ARS 制造商:Analog Devices 功能描述:Energy Measurement 20-Pin SSOP 制造商:Analog Devices 功能描述:ENERGY METER IC W/ ONCHIP FAULT & OSCIL. - Rail/Tube
ADE7760ARSRL 制造商:Analog Devices 功能描述:Energy Measurement 20-Pin SSOP T/R 制造商:Analog Devices 功能描述:ENERGY METER IC W/ONCHIP FAULT & OSCIL. - Tape and Reel