Chapter 3 – Real Time Clock
3-12
3.5.2.2
Setting Registers with the RTC Running
If only one or a few of the date and time registers need to be set, they can be set while the RTC is running. The algorithm
is more complicated, involving verification of the write operations by checking the CF. The procedure for setting the
RTC time while it is running is described in the flow chart and instructions below.
•
••••••••••••••••••••••
•
•••••••••••••••••••••••••••••
•
•
Clear CF
•
Clear the Carry Flag in Control Register A.
•
•••••••••••••••••••••••••••••
•
•
•
•••••••••••••••••••••••••••••
•
• Write to Counter Register •
•
•••••••••••••••••••••••••••••
•
•
•
•••••••••••••••••••••••••••••
•
YES •
Verify Write Operation
•
Poll CF bit in Control Register A.
••••••••
(CF = 1 ?)
•
•••••••••••••••••••••••••••••
• NO
•
(Repeat for each register to be set)
Follow the procedure below to set the RTC time with the clock running:
1.
Clear the CF bit in Control Register A to '0'. Note: To prevent the AF bit from being cleared as well,
set the AF bit to '1' for the write operation.
2.
Set the desired time or date register by writing to the appropriate counter register (RTC Registers 03h
to 0Fh).
3.
Poll the CF bit in Control Register A. If the CF bit is '0', the write operation was successful and the
time or date register has been set.
4.
If the CF bit is '1', a carry has occurred and the procedure must be repeated. The internal carry period
lasts for a maximum of 125 µs. Wait 125 µs before attempting the procedure again. Restart the
procedure by clearing the CF bit to '0' (Step 1).
Summary of Contents for XVME-113
Page 10: ...Chapter 1 Introduction 1 6...
Page 11: ......
Page 12: ...Chapter 2 Installation 2 2...
Page 13: ...XVME 113 RAM ROM Memory Module October 1992 2 3 0 1 2...
Page 16: ...Chapter 2 Installation 2 6 3 7 2 2 3 8 1 1...
Page 19: ...XVME 113 RAM ROM Memory Module October 1992 2 9 4 3 9 5 C 5 C 9 C C 9 9 9 9...
Page 20: ...Chapter 2 Installation 2 10 3...
Page 26: ...Chapter 2 Installation 2 16 4 6 4 5...
Page 30: ...Chapter 2 Installation 2 20 4 5 E E B E 6 E 6 E E E B E...
Page 32: ...Chapter 2 Installation 2 22 9...
Page 52: ......
Page 64: ...Appendix B Quick Reference Guide B 6 Figure B 2 Read Timing Waveform...
Page 65: ...C 1 APPENCIX C BLOCK DIAGRAM ASSEMBLY DRAWING SCHEMATICS Figure C 1 XVME 113 Block Diagram...
Page 66: ...Appendix C Block Diagram Assembly Drawing Schematics C 2 Figure C 2 Assembly Drawing...
Page 67: ......
Page 68: ......
Page 69: ......
Page 70: ......
Page 71: ......
Page 72: ......
Page 73: ......
Page 74: ......
Page 75: ......