V3021SO8A EMMICRO [EM Microelectronic - MARIN SA], V3021SO8A Datasheet - Page 10

no-image

V3021SO8A

Manufacturer Part Number
V3021SO8A
Description
Ultra Low Power 1-Bit 32 kHz RTC
Manufacturer
EMMICRO [EM Microelectronic - MARIN SA]
Datasheet
Status Information
The RAM addresses 0 and 1 contain status control data
for the V3021. The function of each ibt (0 and 7) within
address locations 0 and 1 is shown in Table 7a and 7b
respectively.
Status Word
Reset and Initialization
Upon microprocessor recovery from a system reset, the
V3021 must be initialized by software in order to
guarantee that it is expecting a communication cycle (ie.
the internal serial buffer is waiting for the address bit A0).
Software
communication cycle by executing 8 microprocessor
reads (see Fig. 8).
Initializing Access to the V3021
Copyright © 2005, EM Microelectronic-Marin SA
Status 1 - address 1
Status 0 - address 0
7 6 5 4 3 2 1 0
7 6 5 4 3 2 1 0
Read / Write bits
Read ONLY bits
can
R
initialize
Seconds
Minutes
Hours
Day of month
Month
Year
Week day
Week number
Frequency Measurement Mode
Reserved
Test Mode 0
Test Mode 1
Time Set Lock
Reserved
Reserved
Reserved
the
0 -
1 -
0 - inactive
1 - active
No change from last
Copy_clock_to_RAM
Change from last
Copy_clock_to_RAM
V3021
to
expect
Table 7b
Table 7a
Fig. 8
a
On first startup or whenever power has failed (V
the status register 0 and the clock must be initialized by
software
address bit A0, write 0 to status register 0, then set the
clock (see section "Clock and Calendar").
Time and Date Status Bits
There are time and date status bits at address 1 in the
RAM. Upon executing a Copy_clock_to_RAM command,
the time and date status bits in the RAM show which time
and date parameters changed since the last time this
command was used. A logic 1 in the seconds status bit
(address1, bit 0) in the RAM indicates that the seconds
location in the RAM (address 2) changed since the last
Copy_clock_to_RAM command and thus need to be read.
The seconds location must change before any other time
or date location can change. If the seconds status bit is
clear, then no time or date location changed since the last
Copy_clock_to_RAM command and so the RAM need not
to be read by software.
Table 7b shows the seconds, minutes, hours, day of the
month, month, year, week day, and week number status
bit locations. They are set or cleared similar to the
seconds location. It should be noted that if the minutes
status bit is clear, then the seconds bit may be set, but ail
other status bits are clear. Similarly with hours, the bits
representing the units less than hours may have been set,
but the bits for the higher units will be clear. This rule
holds true for the week day or day of month locations
also.
The time and date status bits can be used to drive
software routines which need to be executed every
or
In this application it is necessary to poll the V3021 at least
once every time interval used as it does not generate an
interrupt.
Upon executing a Copy _RAM_to_clock command, the
time and date status bits in the RAM are cleared.
Time Set Lock
The time set lock control bit is located at address 0, bit 4
(see Table 7a). When set by software, the bit disables the
Copy_RAM_to_clock
"Commands".) A set bit prevents unauthorized overwriting
of the current time and date in the clock. Clearing the time
set
Copy_RAM_to_clock command. On first startup or
whenever power has failed (V
bit must be setup by software.
10
lock
-second,
-minute,
-hour,
-day of month / weekday,
-month,
-year,
-week.
Having initialized the interface to expect the
bit
by
software
command
DD
< 2.0 V), the time set lock
www.emmicroelectronic.com
will
(see
V3021
re-enable
DD
< 2.0V)
section
the

Related parts for V3021SO8A