ade7166 Analog Devices, Inc., ade7166 Datasheet - Page 25

no-image

ade7166

Manufacturer Part Number
ade7166
Description
Single-phase Energy Measurement Ic With 8052 Mcu, Rtc, And Lcd Driver
Manufacturer
Analog Devices, Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ade7166ASTZF16
Manufacturer:
VHK
Quantity:
2
Part Number:
ade7166ASTZF16
Manufacturer:
Analog Devices Inc
Quantity:
10 000
Part Number:
ade7166ASTZF16-RL
Manufacturer:
KOA
Quantity:
50 000
Part Number:
ade7166ASTZF16-RL
Manufacturer:
Analog Devices Inc
Quantity:
10 000
Part Number:
ade7166ASTZF8
Manufacturer:
Analog Devices Inc
Quantity:
10 000
Part Number:
ade7166ASTZF8-RL
Manufacturer:
Analog Devices Inc
Quantity:
10 000
POWER MANAGEMENT
The ADE7566/ADE7569/ADE7166/ADE7169 have elaborate
power management circuitry that manages the regular power
supply to battery switchover and power supply failures. The
Table 15. Power Management SFRs
SFR Address
0xEC
0xF5
0xF8
0xFF
0xF4
0xC5
0xFB
0xFC
0xFD
0xFE
POWER MANAGEMENT REGISTER DETAILS
Table 16. Interrupt Pins Configuration SFR (INTPR, 0xFF)
Bit
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 INTPR. KYREG
(see Table 116) 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 20.
Battery Switchover Configuration. See Table 18.
Power Management Interrupt Flag. See Table 17.
Interrupt Pins Configuration. See Table 16.
Peripheral Configuration SFR. See Table 19.
Power Control. See Table 25.
Scratch Pad 1. See Table 21.
Scratch Pad 2. See Table 22.
Scratch Pad 3. See Table 23.
Scratch Pad 4. See Table 24.
Rev. A | Page 25 of 144
power management functionalities can be accessed directly
through the 8052 SFRs (see Table 15).
ADE7566/ADE7569/ADE7166/ADE7169

Related parts for ade7166