Datasheet

Data Sheet ADE7763
Rev. C | Page 53 of 56
INTERRUPT STATUS REGISTER (0x0B),
RESET INTERRUPT STATUS REGISTER (0x0C),
INTERRUPT ENABLE REGISTER (0x0A)
The status register is used by the MCU to determine the source of an interrupt request (
IRQ
). When an interrupt event occurs, the
corresponding flag in the interrupt status register is set to logic high. If the enable bit for this flag is Logic 1 in the interrupt enable register,
the
IRQ
logic output will go active low. When the MCU services the interrupt, it must first carry out a read from the interrupt status
register to determine the source of the interrupt.
Table 12.
Bit
Location
Interrupt
Flag
Description
0 AEHF Indicates that an interrupt occurred because the active energy register, AENERGY, is more than half full.
1 SAG Indicates that an interrupt was caused by a sag on the line voltage.
2 CYCEND Indicates
the end of energy accumulation over an integral number of half line cycles, as defined by the content
of the LINECYC registersee the Line Cycle Energy Accumulation Mode section.
3 WSMP Indicates that new data is present in the waveform register.
4 ZX This status bit is set to 1 on the rising and falling edge of the voltage waveform, see the Zero-Crossing
Detection section.
5 TEMP Indicates that a temperature conversion result is available in the temperature register.
6 RESET Indicates the end of a reset for software and hardware resets. The corresponding enable bit has no function in
the interrupt enable register, i.e., this status bit is set at the end of a reset, but cannot be enabled to cause an
interrupt.
7 AEOF Indicates that the active energy register has overflowed.
8 PKV Indicates that the waveform sample from Channel 2 has exceeded the VPKLVL value.
9 PKI Indicates that the waveform sample from Channel 1 has exceeded the IPKLVL value.
10 VAEHF Indicates that an interrupt occurred because the apparent energy register, VAENERGY, is more than half full.
11 VAEOF Indicates that the apparent energy register has overflowed.
12 ZXTO Indicates that an interrupt was caused by a missing zero crossing on the line voltage for a specified number of
line cyclessee the Zero-Crossing Timeout section.
13 PPOS Indicates that the power has gone from negative to positive.
14 PNEG Indicates that the power has gone from positive to negative.
15 RESERVED Reserved.
VAEHF
(VAENERGY IS HALF FULL)
PPOS
(POWER NEGATIVE TO POSITIVE)
RESERVED
PNEG
(POWER POSITIVE TO NEGATIVE)
0 0 0 0 0 000 0
000
00 00
89 7 456 23 0115 14 13
12 11
10
AEHF
(ACTIVE ENERGY HALF FULL)
SAG
(SAG ONLINE VOLTAGE)
CYCEND
(END OF LINECYC HALF LINE CYCLES)
WSMP
(WAVEFORM SAMPLES DATA READY)
ZX
(ZERO CROSSING)
TEMP
(TEMPERATURE DATA READY)
RESET
(END OF SOFTWARE/HARDWARE RESET)
AEOF
(ACTIVE ENERGY REGISTER OVERFLOW)
ZXTO
(ZERO-CROSSING TIMEOUT)
VAEOF
(VAENERGY OVERFLOW)
PKI
(CHANNEL 1 SAMPLE ABOVE IPKLVL)
PKV
(CHANNEL 2 SAMPLE ABOVE VPKLVL)
04481-A-079
ADDR: 0x0A, 0x0B, 0x0C
Figure 87. Interrupt Status/Interrupt Enable Register