数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

ADE5166 数据表(PDF) 118 Page - Analog Devices

部件名 ADE5166
功能描述  Single-Phase Energy Measurement IC with 8052 MCU, RTC, and LCD Driver
PDF  148 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  AD [Analog Devices]
网页  http://www.analog.com
标志 AD - Analog Devices

ADE5166 数据表(HTML) 118 Page - Analog Devices

Back Button ADE5166 Datasheet HTML 114Page - Analog Devices ADE5166 Datasheet HTML 115Page - Analog Devices ADE5166 Datasheet HTML 116Page - Analog Devices ADE5166 Datasheet HTML 117Page - Analog Devices ADE5166 Datasheet HTML 118Page - Analog Devices ADE5166 Datasheet HTML 119Page - Analog Devices ADE5166 Datasheet HTML 120Page - Analog Devices ADE5166 Datasheet HTML 121Page - Analog Devices ADE5166 Datasheet HTML 122Page - Analog Devices Next Button
Zoom Inzoom in Zoom Outzoom out
 118 / 148 page
background image
ADE5166/ADE5169
Rev. 0 | Page 118 of 148
Table 137. Leap Years—Rollover After 29 Days
Year Register
Estimated Year
0d04
2004
0d08
2008
0d12
2012
0d16
2016
0d20
2020
0d24
2024
0d28
2028
0d32
2032
0d36
2036
0d40
2040
0d44
2044
0d48
2048
0d52
2052
0d56
2056
0d60
2060
0d64
2064
0d68
2068
0d72
2072
0d76
2076
0d80
2080
0d84
2084
0d88
2088
0d92
2092
0d96
2096
RTC INTERRUPTS
The RTC alarm and interval timer interrupts are enabled by
setting the ETI bit in the interrupt enable and Priority 2 SFR
(IEIP2, Address 0xA9). When an alarm or interval timer event
occurs, the corresponding flag is set and a pending RTC interrupt
is generated. If the RTC interrupt is enabled, the program vectors
to the RTC interrupt address, and the corresponding RTC flag
can be cleared in software. Moving to the RTC interrupt address
alone does not automatically clear the flag. To successfully
acknowledge the interrupt event, the flag has to be cleared by
software. If the RTC interrupt is disabled when the event occurs,
the pending interrupt remains until the corresponding RTC flag
is cleared. The ALFLAG and ITFLAG flags, therefore, drive the
RTC interrupt and should be managed by the user to keep track
of the RTC events.
Note that, if the ADE5166/ADE5169 are awakened by an RTC
event, either the ALFLAG or ITFLAG, then the pending RTC
interrupt must be serviced before the ADE5166/ADE5169 can
go back to sleep again. The ADE5166/ADE5169 keep waking up
until this interrupt has been serviced.
Interval Timer Alarm
The RTC can be used as an interval timer. When the interval timer
is enabled by setting the ITEN bit in the RTC configuration SFR
(TIMECON, Address 0xA1[1]), the interval timer clock source
selected by the ITS1 and ITS0 bits (TIMECON, Bits[5:4]) is passed
through to an 8-bit counter. This counter increments on every
interval timer clock pulse until the 8-bit counter is equal to the
value in the alarm interval register. Then an alarm event is gener-
ated, setting the ITFLAG bit (TIMECON, Address 0xA1[2]) and
creating a pending RTC interrupt. If the SIT bit (TIMECON,
Address 0xA1[3]) is clear, the 8-bit counter is cleared and starts
counting again. If the SIT bit is set, the 8-bit counter is held in
reset after the alarm occurs.
Take care when changing the interval timer timebase. The
recommended procedure is as follows:
1.
If the INTVAL register is going to be modified, write to the
INTVAL register first. Then wait for one 128 Hz clock cycle
to synchronize with the RTC, 64,000 cycles at a 4.096 MHz
instruction cycle clock.
2.
Disable the interval timer by clearing the ITEN bit (Bit 1)
in the TIMECON SFR. Then wait for one 128 Hz clock cycle
to synchronize with the RTC, 64,000 cycles at a 4.096 MHz
instruction cycle clock.
3.
Read the TIMECON SFR to ensure that the ITEN bit is
clear. If it is not, wait for another 128 Hz clock cycle.
4.
Set the timebase bits, ITS1 and ITS0 (Bits 5:4) in the
TIMECON SFR to configure the interval. Wait for a 128 Hz
clock cycle for this change to take effect.
Alarm
The RTC can be used with an alarm to wake up periodically. The
alarm registers (AL_SEC, AL_MIN, AL_HOUR, AL_DAY, and
AL_DATE) should be set to the specific time that the alarm event
is required, and the corresponding Alxx_EN bits set in the
TIMECON2 SFR (Address 0xA2). The enabled alarm registers
are then compared to their respective RTC registers (SEC, MIN,
HOUR, DAY, and DATE) and when all enabled alarms match
their corresponding RTC registers, the alarm flag is set and a
pending interrupt is generated. The alarm flag is located in Bit 6
of the TIMECON SFR (Address 0xA1). If enabled, an RTC
interrupt occurs and the program vectors to the RTC interrupt
address.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com