ade7169f16 Analog Devices, Inc., ade7169f16 Datasheet - Page 70

no-image

ade7169f16

Manufacturer Part Number
ade7169f16
Description
Single-phase Energy Measurement Ic With 8052 Mcu, Rtc And Lcd Driver
Manufacturer
Analog Devices, Inc.
Datasheet
ADE7169F16
- Background Supply Voltage Measurements
Single Supply voltage Measurement
Set the VSW_ADC_GO bit in the Start ADC Measurement SFR
(ADCGO, 0xD8) to get a supply voltage measurement. An
interrupt will be generated when the conversion is done and the
supply voltage measurement is available in the Table 49. VSW
ADC value SFR (VSWADC, 0xEF).
Background Supply Voltage Measurements
Background supply voltage measurements are disabled by
default. To configure the background supply voltage
measurement mode, set a supply voltage measurement interval
in the Peripheral ADC Strobe Period SFR (STRBPER, 0xF9).
Then supply voltage measurements will be performed
periodically in the background – see Table 45. When a supply
voltage conversion completes, the new supply voltage ADC
value is compared to the last supply voltage ADC value that
created an interrupt. If the absolute difference between the two
values is greater than the setting in the VSW_DIFF bits in the
Temperature and Supply Delta SFR (DIFFPROG, 0xF3), a VSW
ADC flag is set. This VSW ADC flag is the VSWFLAG in the
Power Management Interrupt Flag SFR (IPSMF, 0xF8), used for
power supply monitoring. This VSW ADC flag can be enabled
to generate a PSM interrupt by setting the EVSW bit in the
Power Management Interrupt Enable SFR (IPSME, 0xEC). This
method allows supply voltage measurements to take place
completely in the background, only requiring MCU activity if
the supply voltage has changed more than a configurable delta.
To set up background supply voltage measurements:
1.
2.
Initiate a single supply voltage measurement by setting
the VSW_ADC_GO bit in the Start ADC
Measurement SFR (ADCGO, 0xD8).
Upon completion of this measurement, configure the
VSW_DIFF[2:0] bits to establish the change in
temperature that will set the VSWFLAG in the Power
Management Interrupt Flag SFR (IPSMF, 0xF8).
Rev. PrD | Page 70 of 140
Supply voltage ADC in PSM1 and PSM2
Depending on the operating mode of the ADE7169F16, a
supply voltage conversion is initiated only by certain actions:
PSM0: In this operating mode, the 8052 is active. Supply voltage
measurements are available in the background measurement
mode and by initiating a single measurement.
PSM1: In this operating mode, the 8052 is active and the part is
powered from battery. Single supply voltage measurements can
be initiated by setting the TEMP_ADC_GO bit in the Start
ADC Measurement SFR (ADCGO, 0xD8). Background supply
voltage measurements are not available.
PSM2: In this operating mode, the 8052 is not active. Supply
voltage conversions are available through the background
measurement mode only.
The supply voltage Table 49. VSW ADC value SFR (VSWADC,
0xEF) is updated with a new value only when a supply voltage
ADC interrupt occurs.
Supply voltage ADC interrupt
The supply voltage ADC can generate an ADC interrupt when
at least one of the following conditions occurs:
- The difference between the new supply voltage ADC value
and the last supply voltage ADC value generating an ADC
interrupt is larger than the value set in the VSW_DIFF bits.
- The Supply voltage ADC conversion, initiated by setting
TEMP_ADC_GO, is finished.
When the ADC interrupt occurs, a new value is available in the
VSW ADC value SFR (VSWADC, 0xEF). Note that there is no
flag associated with this interrupt.
3.
Set up the interval for background supply voltage
measurements by configuring the VSW_PERIOD[1:0]
bits.
Preliminary Technical Data

Related parts for ade7169f16