ADE7566ASTZF8-RL2 AD [Analog Devices], ADE7566ASTZF8-RL2 Datasheet - Page 23

no-image

ADE7566ASTZF8-RL2

Manufacturer Part Number
ADE7566ASTZF8-RL2
Description
Single-Phase Energy Measurement IC with 8052 MCU, RTC, and LCD Driver
Manufacturer
AD [Analog Devices]
Datasheet
Preliminary Technical Data
POWER MANAGEMENT
The ADE7566/ADE7569 have an elaborate power management circuitry that manages the regular power supply to battery switchover and
power supply failures. The power management functionalities can be accessed directly through the 8052 SFRs (see Table 13).
Table 13. Power Management SFRs
SFR Address
0xEC
0xF5
0xF8
0xFF
0xF4
0xC5
0xFB
0xFC
0xFD
0xFE
POWER MANAGEMENT REGISTER DETAILS
Table 14. Interrupt Pins Configuration SFR (INTPR, 0xFF)
Bit No.
7
6 to 5
4
3 to 1
0
Writing to the Interrupt Pins Configuration SFR (INTPR, 0xFF)
To protect the RTC from runaway code, a key must be written to the Key SFR (KYREG, 0xC1) to obtain write access to the Interrupt Pins
Configuration SFR (INTPR, 0xFF). KYREG should be set to 0xEA to unlock this SFR and reset to zero after a timekeeping register is
written to. The RTC registers can be written using the following 8052 assembly code:
MOV
MOV
KYREG, #0EAh
INTPR, #080h
Mnemonic
RTCCAL
FSEL[1:0]
Reserved
INT1PRG[2:0]
INT0PRG
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Default
0
00
000
0
Mnemonic
IPSME
BATPR
IPSMF
INTPR
PERIPH
POWCON
SCRATCH1
SCRATCH2
SCRATCH3
SCRATCH4
Description
Controls RTC calibration output. When set, the RTC calibration frequency selected by FSEL[1:0] is
output on the P0.2/CF1/RTCCAL pin.
Sets RTC calibration output frequency and calibration window.
FSEL[1:0]
00
01
10
11
Controls the function of INT1.
INT1PRG[2:0]
X00
X01
01X
11X
Controls the function of INT0.
INT0PRG
0
1
Result (Calibration window, frequency)
30.5 sec, 1 Hz
30.5 sec, 512 Hz
0.244 sec, 500 Hz
0.244 sec, 16.384 kHz
Result
GPIO enabled
BCTRL enabled
INT1 input disabled
INT1 input enabled
Result
INT0 input disabled
INT0 input enabled
Description
Power Management Interrupt Enable. See Table 18.
Battery Switchover Configuration. See Table 16.
Power Management Interrupt Flag. See Table 15.
Interrupt Wake-Up Configuration. See Table 14.
Peripheral Configuration SFR. See Table 17.
Power Control. See Table 23.
Scratch Pad 1. See Table 19.
Scratch Pad 2. See Table 20.
Scratch Pad 3. See Table 21.
Scratch Pad 4. See Table 22.
Rev. PrA | Page 23 of 136
ADE7566/ADE7569

Related parts for ADE7566ASTZF8-RL2