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

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
ADE5166/ADE5169
RTC REGISTERS
Table 134. RTC Register List
Address
RTCPTR[4:0]
0x00
0x01
0x02
0x03
0x04
0x05
0x06
0x07
0x08
0x09
0x0A
0x0B
0x0C
0x0D
0x0E
0x0F
Mnemonic
Reserved
HTHSEC
SEC
MIN
HOUR
DAY
DATE
MONTH
YEAR
INTVAL
AL_SEC
AL_MIN
AL_HOUR
AL_DAY
AL_DATE
RTC_CAL
R/W
N/A
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Length
N/A
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
Signed/
Unsigned
N/A
U
U
U
U
U
U
U
U
U
U
U
U
U
U
U
Rev. 0 | Page 116 of 148
Default
Value
N/A
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
Description
Reserved.
This counter updates every 1/128 second, referenced from the
calibrated 32.768 kHz clock. It overflows from 127 to 00,
incrementing the seconds counter, SEC.
This counter updates every second, referenced from the calibrated
32.768 kHz clock. It overflows from 59 to 00, incrementing the
minutes counter, MIN.
This counter updates every minute, referenced from the calibrated
32.768 kHz clock. It overflows from 59 to 00, incrementing the
hours counter, HOUR.
This counter updates every hour, referenced from the calibrated
32.768 kHz clock. It overflows from 23 to 00, incrementing the DAY
and DATE counters.
This counter updates every day, referenced from the calibrated
32.768 kHz clock. It overflows from 6 to 0.
This counter updates every day, referenced from the calibrated
32.768 kHz clock. It overflows from 28/29/30 or 31 to 01, depending on
the month, incrementing the month counter, MONTH.
This counter starts at 1 and updates every month, referenced from
the calibrated 32.768 kHz clock. It overflows from 12 to 01,
incrementing the year counter, YEAR.
This counter updates every year, referenced from the calibrated
32.768 kHz clock.
The interval timer counts according to the timebase established in the
ITS bits of the RTC Configuration SFR (TIMECON, Address 0xA1[5:4]).
When the number of counts is equal to INTVAL, the ITFLAG flag is set
and a pending RTC interrupt is created, if enabled. Note that the inter-
val counter is eight bits, so it could count up to 255 sec, for example.
Alarm second register. When this register matches the SEC register
and the ALSEC_EN bit (TIMECON2, Address 0xA2[0]) is set, the
ALFLAG is issued if all other enabled alarms match their corre-
sponding timekeeping register. If enabled, a pending RTC interrupt
is generated.
Alarm minute register. When this register matches the MIN register
and the ALMIN_EN bit (TIMECON2, Address 0xA2[1]) is set, the
ALFLAG is issued if all other enabled alarms match their corre-
sponding timekeeping register. If enabled, a pending RTC interrupt
is generated.
Alarm hour register. When this register matches the HOUR register
and the ALHR_EN bit (TIMECON2, Address 0xA2[2]) is set, the
ALFLAG is issued if all other enabled alarms match their corre-
sponding timekeeping register. If enabled, a pending RTC interrupt
is generated.
Alarm day register. When this register matches the DAY register
and the ALDAY_EN bit (TIMECON2, Address 0xA2[3]) is set, the
ALFLAG is issued if all other enabled alarms match their corre-
sponding timekeeping registers. If enabled, a pending RTC
interrupt is generated.
Alarm date register. When this register matches the DATE register
and the ALDAT_EN bit (TIMECON2, Address 0xA2[4]) is set, the
ALFLAG is issued if all other enabled alarms match their corre-
sponding timekeeping registers. If enabled, a pending RTC
interrupt is generated.
Configuration of the RTC calibration output (see Table 135).

Related parts for ADE5166_08