LPC47S457-NC SMSC [SMSC Corporation], LPC47S457-NC Datasheet - Page 100

no-image

LPC47S457-NC

Manufacturer Part Number
LPC47S457-NC
Description
Advanced I/O with X-Bus Interface
Manufacturer
SMSC [SMSC Corporation]
Datasheet
6.9.5
An update cycle is executed once per second if the SET bit in Register B is clear and the DV0-DV2 divider is not
clear. The SET bit in the "1" state permits the program to initialize the time and calendar registers by stopping an
existing update and preventing a new one from occurring.
The primary function of the update cycle is to increment the seconds register, check for overflow, increment the
minutes register when appropriate and so forth through to the year of the century byte. The update cycle also
compares each alarm register with the corresponding time register and issues an alarm if a match or if a "don't care"
code is present.
The length of an update cycle is shown in Table 49. During the update cycle the time, calendar and alarm registers
are not accessible by the processor program. If the processor reads these locations before the update cycle is
complete, the output will be undefined. The UIP (update in progress) status bit is set during the interval. When the
UIP bit goes high, the update cycle will begin 244 μs later. Therefore, if a low is read on the UIP bit the user has at
least 244 μs before time/calendar data will be changed.
6.9.6
The RTC has four registers, which are accessible to the processor program at all times, even during the update cycle.
Register A
UIP
The update in progress bit is a status flag that may be monitored by the program. When UIP is a "1" the update cycle
is in progress or will soon begin. When UIP is a "0" the update cycle is not in progress and will not be for at least 244
μs. The time, calendar, and alarm information is fully available to the program when the UIP bit is “0”. The UIP bit is a
read only bit and is not affected by VTR POR. Writing the SET bit in Register B to a "1" inhibits any update cycle
and then clears the UIP status bit.
DV2-0
Three bits are used to permit the program to select various conditions of the 22 stage divider chain. Table 50 shows
the allowable combinations. The divider selection bits are also used to reset the divider chain. When the
time/calendar is first initialized, the program may start the divider chain at the precise time stored in the registers.
When the divider reset is removed, the first update begins one-half second later. These three read/write bits are not
affected by VTR POR.
SMSC DS – LPC47S45x
UPDATE CYCLE
CONTROL AND STATUS REGISTERS
INPUT CLOCK
FREQUENCY
32.768 KHZ
32.768 kHz
B7
UIP
ADD
6
7
8
9
D
32
REGISTER FUNCTION
Register 6: Day of Week
Register 7: Day of Month
Register 8: Month
Register 9: Year
Day of Month Alarm
Century Byte
B6
DV2
Table 49 − RTC Update Cycle Timing
UIP BIT
B5
DV1
1
0
DATASHEET
B4
DV0
Page 100 of 259
UPDATE CYCLE
RS3
B3
1948 μs
TIME
-
BCD
RANGE
01-07
01-31
01-12
00-99
01-31
00-39
RS2
B2
MINIMUM TIME BEFORE
RS1
B1
START OF UPDATE
BINARY
RANGE
01-07
01-1F
01-0C
00-63
01-1F
00-3F
RS0
B0
CYCLE
244 μs
-
Rev. 07/09/2001

Related parts for LPC47S457-NC