參數(shù)資料
型號(hào): ADE7169ASTF16
廠商: ANALOG DEVICES INC
元件分類(lèi): 模擬信號(hào)調(diào)理
英文描述: Single-Phase Energy Measurement IC with 8052 MCU, RTC and LCD driver
中文描述: ANALOG CIRCUIT, PQFP64
封裝: MS-026BCD, LQFP-64
文件頁(yè)數(shù): 114/140頁(yè)
文件大小: 1359K
代理商: ADE7169ASTF16
第1頁(yè)第2頁(yè)第3頁(yè)第4頁(yè)第5頁(yè)第6頁(yè)第7頁(yè)第8頁(yè)第9頁(yè)第10頁(yè)第11頁(yè)第12頁(yè)第13頁(yè)第14頁(yè)第15頁(yè)第16頁(yè)第17頁(yè)第18頁(yè)第19頁(yè)第20頁(yè)第21頁(yè)第22頁(yè)第23頁(yè)第24頁(yè)第25頁(yè)第26頁(yè)第27頁(yè)第28頁(yè)第29頁(yè)第30頁(yè)第31頁(yè)第32頁(yè)第33頁(yè)第34頁(yè)第35頁(yè)第36頁(yè)第37頁(yè)第38頁(yè)第39頁(yè)第40頁(yè)第41頁(yè)第42頁(yè)第43頁(yè)第44頁(yè)第45頁(yè)第46頁(yè)第47頁(yè)第48頁(yè)第49頁(yè)第50頁(yè)第51頁(yè)第52頁(yè)第53頁(yè)第54頁(yè)第55頁(yè)第56頁(yè)第57頁(yè)第58頁(yè)第59頁(yè)第60頁(yè)第61頁(yè)第62頁(yè)第63頁(yè)第64頁(yè)第65頁(yè)第66頁(yè)第67頁(yè)第68頁(yè)第69頁(yè)第70頁(yè)第71頁(yè)第72頁(yè)第73頁(yè)第74頁(yè)第75頁(yè)第76頁(yè)第77頁(yè)第78頁(yè)第79頁(yè)第80頁(yè)第81頁(yè)第82頁(yè)第83頁(yè)第84頁(yè)第85頁(yè)第86頁(yè)第87頁(yè)第88頁(yè)第89頁(yè)第90頁(yè)第91頁(yè)第92頁(yè)第93頁(yè)第94頁(yè)第95頁(yè)第96頁(yè)第97頁(yè)第98頁(yè)第99頁(yè)第100頁(yè)第101頁(yè)第102頁(yè)第103頁(yè)第104頁(yè)第105頁(yè)第106頁(yè)第107頁(yè)第108頁(yè)第109頁(yè)第110頁(yè)第111頁(yè)第112頁(yè)第113頁(yè)當(dāng)前第114頁(yè)第115頁(yè)第116頁(yè)第117頁(yè)第118頁(yè)第119頁(yè)第120頁(yè)第121頁(yè)第122頁(yè)第123頁(yè)第124頁(yè)第125頁(yè)第126頁(yè)第127頁(yè)第128頁(yè)第129頁(yè)第130頁(yè)第131頁(yè)第132頁(yè)第133頁(yè)第134頁(yè)第135頁(yè)第136頁(yè)第137頁(yè)第138頁(yè)第139頁(yè)第140頁(yè)
ADE7169F16
Preliminary Technical Data
Rev. PrD | Page 114 of 140
Note: This register is retained during a watchdog reset or an external reset.
It is reset after a power on reset (POR).
READ AND WRITE OPERATIONS
Writing the RTC Registers
The RTC circuitry runs off a 32.768 kHz clock. It takes up to
two 32 kHz clock cycles from when the MCU writes an RTC
register until it is successfully updated in the RTC.
Reading the RTC Counter SFRs
The RTC cannot be stopped to read the current time because
stopping the RTC would introduce an error in its timekeeping.
So the RTC is read on the fly. Therefore the counter registers
must be checked for overflow. This can be accomplished
through the following 8052 assembly code:
ReadAgain:
MOV
R0, HTHSEC
MOV
R1, SEC
MOV
R2, MIN
MOV
R3, HOUR
MOV
A, HTHSEC
CJNE
A, 00h, ReadAgain ; 00h is R0 in Bank 0
RTC MODES
The RTC can be configured in a 24 hour mode or a 256 hour
mode. A midnight event is generated when the RTC hour
counter rolls over from 23 to 0 or 255 to 0, depending on
whether the TFH bit is set in the RTC Configuration SFR
(TIMECON, 0xA1). The midnight event sets the MIDNIGHT
flag in the RTC Configuration SFR (TIMECON, 0xA1) and a
pending RTC interrupt is created. The RTC midnight event will
wake the 8052 MCU core if the MCU is asleep in PSM2 when
the midnight event occurs.
; using Bank 0
In the 24 hour mode, the midnight event is generated once a
day, at midnight. The 24 hour mode is useful for updating a
software calendar to keep track of the current day. The 256 hour
mode will result in power savings during extended operation in
PSM2 because the MCU core will be wpken less frequently.
RTC INTERRUPTS
The RTC Midnight and Alarm Interrupts are enabled by setting
the ETI bit in the Interrupt Enable and Priority 2 SFR (IEIP2,
0xA9). When a midnight or alarm event occurs, a pending RTC
interrupt is generated. If the RTC interrupt is enabled, the
program will vector to the RTC interrupt address and the
pending interrupt will be cleared. If the RTC interrupt is
disabled, then the RTC interrupt will remain pending until the
RTC interrupt is enabled. Then the program will vector to the
RTC interrupt address.
The MIDNIGHT and ALARM flags are set when the midnight
and alarm events occur, respectively. The user should manage
these flags to keep track of which event caused an RTC
interrupt by servicing the event and clearing the appropriate
flag in the RTC ISR.
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, 0xA1), the interval timer clock
source selected by the ITS1 and ITS0 bits 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 SFR (INTVAL, 0xA6). Then an alarm event
is generated, setting the ALARM flag and creating a pending
RTC interrupt. If the SIT bit in the RTC Configuration SFR
(TIMECON, 0xA1) is clear then the 8-bit counter is cleared and
starts counting again. If the SIT bit is set then the 8-bit counter
is held in reset after the alarm occurs.
The RTC alarm event will wake the 8052 MCU core if the MCU
is in PSM2 when the alarm event occurs.
RTC CALIBRATION
The RTC provides registers to calibrate the nominal external
crystal frequency and its variation over temperature. Up to
±248ppm frequency error can be calibrated out
by the RTC
circuitry, which adds or subtracts pulses from the external
crystal signal.
The nominal crystal frequency should be calibrated with the
RTCCOMP register so that the clock going into the RTC is
precisely 32.768 kHz at 25
°
C. The RTC Temperature
Compensation SFR (TEMPCAL, 0xF7) is used to compensate
for the external crystal drift over temperature by adding or
subtracting additional pulses based on temperature.
The LSB of each RTC compensation register represents a
±
2ppm frequency error. The RTC compensation circuitry adds
the RTC Temperature Compensation SFR (TEMPCAL, 0xF7)
and the RTC Nominal Compensation SFR (RTCCOMP, 0xF6)
to determine how much compensation is required and the sum
of these two registers is limited to
±248ppm.
Calibration Flow:
TBD
During calibration, user software writes the RTC with the
current time. The RTC should be stopped to perform this setup.
The user should wait at least one 32 kHz clock period after
clearing the RTCEN bit in the RTC Configuration SFR
相關(guān)PDF資料
PDF描述
ADE7169ASTF16-RL Single-Phase Energy Measurement IC with 8052 MCU, RTC and LCD driver
ADE7169ASTZF16 Single-Phase Energy Measurement IC with 8052 MCU, RTC and LCD driver
ADE7169ASTZF16-RL Single-Phase Energy Measurement IC with 8052 MCU, RTC and LCD driver
ADE7169F16 Single-Phase Energy Measurement IC with 8052 MCU, RTC and LCD driver
ADE7751 Energy Metering IC with On-Chip Fault Detection
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
ADE7169ASTF16-RL 制造商:AD 制造商全稱(chēng):Analog Devices 功能描述:Single-Phase Energy Measurement IC with 8052 MCU, RTC and LCD driver
ADE7169ASTZF16 功能描述:IC ENERGY METER 1PHASE 64LQFP RoHS:是 類(lèi)別:集成電路 (IC) >> PMIC - 能量測(cè)量 系列:- 產(chǎn)品培訓(xùn)模塊:Lead (SnPb) Finish for COTS Obsolescence Mitigation Program 標(biāo)準(zhǔn)包裝:2,500 系列:*
ADE7169ASTZF16-RL 功能描述:IC ENERGY METER 1PHASE 64LQFP RoHS:是 類(lèi)別:集成電路 (IC) >> PMIC - 能量測(cè)量 系列:- 產(chǎn)品培訓(xùn)模塊:Lead (SnPb) Finish for COTS Obsolescence Mitigation Program 標(biāo)準(zhǔn)包裝:2,500 系列:*
ADE7169F16 制造商:AD 制造商全稱(chēng):Analog Devices 功能描述:Single-Phase Energy Measurement IC with 8052 MCU, RTC and LCD driver
ADE75 制造商:AD 制造商全稱(chēng):Analog Devices 功能描述:Single-Phase Energy Measurement IC with 8052 MCU, RTC and LCD driver