ade7753 Analog Devices, Inc., ade7753 Datasheet - Page 13

no-image

ade7753

Manufacturer Part Number
ade7753
Description
Active And Apparent Energy Metering Ic With Di/dt Sensor Interface
Manufacturer
Analog Devices, Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ade7753ARS
Manufacturer:
AD
Quantity:
5
Part Number:
ade7753ARS
Manufacturer:
ADI/亚德诺
Quantity:
20 000
Part Number:
ade7753ARSZ
Quantity:
1 667
Part Number:
ade7753ARSZ
Manufacturer:
ADI/亚德诺
Quantity:
20 000
Part Number:
ade7753ARSZRL
Manufacturer:
ADI/亚德诺
Quantity:
20 000
ADE7753 INTERRUPTS
ADE7753 Interrupts are managed through the Interrupt
Status register (STATUS[15:0]) and the Interrupt Enable
register (IRQEN[15:0]). When an interrupt event occurs in
the ADE7753, the corresponding flag in the Status register
is set to a logic one - see Interrupt Status register. If the enable
bit for this interrupt in the Interrupt Enable register is logic
one, then the IRQ logic output goes active low. The flag bits
in the Status register are set irrespective of the state of the
enable bits.
In order to determine the source of the interrupt, the system
master (MCU) should perform a read from the Status
register with reset (RSTSTATUS[15:0]). This is achieved
by carrying out a read from address 0Ch. The IRQ output will
go logic high on completion of the Interrupt Status register
Thus, for example, the nominal maximum code from the
channel 1 ADC with a full scale signal is 2851ECh —see
Channel 1 Sampling. Multiplying by 2 will give 50A3D8h.
Therefore, writing 50h to the IPKLVL register will put the
channel 1 peak detection level at full scale and set the current
peak detection to its least sensitive value.
Writing 00h will put the channel 1 detection level at zero.
The detection is done when the content of the IPKLVL
register is smaller than the incoming channel 1 sample.
Peak Level Record
The ADE7753 records the maximum absolute value reached
by channel 1 and channel 2 in two different registers - IPEAK
and VPEAK respectively. VPEAK and IPEAK are 24-bit
unsigned registers. These registers are updated each time the
absolute value of the Waveform sample from the correspond-
ing channel is above the value stored in the VPEAK or IPEAK
register. The contents of the VPEAK register corresponds to
2 times the maximum absolute value observed on the channel
2 input. The contents of IPEAK represents the max absolute
value observed on the channel 1 input. Reading the
RSTVPEAK and RSTIPEAK registers will clear their re-
spective contents after the read operation.
REV. PrF 10/02
MCU Program
Sequence
DOUT
SCLK
IRQ
IRQ
DIN
CS
t
1
Jump to
ISR
t
PRELIMINARY TECHNICAL DATA
1
0
Read Status Register Command
Global int.
Mask Set
0
0
Figure 15– ADE7753 interrupt management
Figure 16– ADE7753 interrupt timing
0
Clear MCU
int. flag
0
1
Reset (05h)
Status with
0
Read
–13–
t
2
1
read command—see Interrupt timing. When carrying out a read
with reset, the ADE7753 is designed to ensure that no
interrupt events are missed. If an interrupt event occurs just
as the Status register is being read, the event will not be lost
and the IRQ logic output is guaranteed to go high for the
duration of the Interrupt Status register data transfer before
going logic low again to indicate the pending interrupt. See
the next section for a more detailed description.
Using the ADE7753 Interrupts with an MCU
Shown in Figure 15 is a timing diagram which shows a
suggested implementation of ADE7753 interrupt manage-
ment using an MCU. At time t
low indicating that one or more interrupt events have oc-
curred in the ADE7753. 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 enable bit. At this point the MCU
external interrupt flag can be cleared in order to capture
interrupt events which occur during the current ISR. When
the MCU interrupt flag is cleared a read from the Status
register with reset is carried out. This will cause the IRQ line
to be reset logic high (t
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, that event
will be recorded by the MCU external interrupt flag being set
again (t
mask will be cleared (same instruction cycle) and the external
interrupt flag will cause the MCU to jump to its ISR once
again. This will ensure that the MCU does not miss any
external interrupts.
Interrupt timing
The ADE7753 Serial Interface section should be reviewed first
before reviewing the interrupt timing. As previously de-
t
9
t
11
(Based on Status contents)
3
DB7
). On returning from the ISR, the global interrupt
ISR Action
Status Register Contents
t
3
t
11
2
DB0 DB7
int. flag set
)—see Interrupt timing. The Status
MCU
Global int. Mask
ISR Return
1
Reset
the IRQ line will go active
DB0
ADE7753
Jump to
ISR

Related parts for ade7753