ADE5166_08 AD [Analog Devices], ADE5166_08 Datasheet - Page 115

no-image

ADE5166_08

Manufacturer Part Number
ADE5166_08
Description
Single-Phase Energy Measurement IC with 8052 MCU, RTC, and LCD Driver
Manufacturer
AD [Analog Devices]
Datasheet
Table 129. RTC Pointer Address SFR (RTCPTR, Address 0xA3)
Bit
7
[6:5]
[4:0]
Table 130. RTC Pointer Data SFR (RTCDAT, Address 0xA4)
Bit
[7:0]
Table 131. RTC Nominal Compensation SFR (RTCCOMP, Address 0xF6)
Bit
[7:0]
Table 132. RTC Temperature Compensation SFR (TEMPCAL, Address 0xF7)
Bit
[7:0]
Table 133. Key SFR (KYREG, Address 0xC1)
Bit
[7:0]
Mnemonic
RTCCOMP
Mnemonic
TEMPCAL
Mnemonic
KYREG
Mnemonic
RTC_DATA
Mnemonic
RTCW_RB
Reserved
RTC_ADDRESS
Default
0
N/A
0
Default
0
Default
0
Default
0
Default
0
Description
The RTCCOMP SFR holds the nominal RTC compensation value at 25°C. Note that this register
is reset after a watchdog reset, an external reset, or a power-on reset (POR).
Description
The TEMPCAL SFR is used to calibrate the RTC over temperature. This allows the external
crystal shift to be compensated over temperature. Note that this register is reset after a
watchdog reset, an external reset, or a power-on reset (POR).
Description
To unlock the POWCON SFR (Address 0xC5) and enable a write operation, 0xA7 should be
written to the KYREG SFR (Address 0xC1). To unlock the HTHSEC, SEC, MIN or HOUR time-
keeping registers or the RTCCAL register and enable a write operation, 0xEA should be written
to KYREG.
Description
Location of data for read/write RTC operation.
Read/write selection.
Description
RTCW_RB
0
1
Reserved.
Target address for read/write operation.
Rev. 0 | Page 115 of 148
Results
The RTC register at RTC_ADDRESS (Bits[4:0]) is read into the RTCDAT SFR
(Address 0xA4).
The data in the RTCDAT SFR is written in the RTC register at RTC_ADDRESS
(Bits[4:0]). This operation is completed only if the KYREG SFR (Address 0xC1)
is set to 0xEA, the instruction before writing to the RTCDAT SFR.
ADE5166/ADE5169

Related parts for ADE5166_08