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).
Содержание XVME-113
Страница 10: ...Chapter 1 Introduction 1 6...
Страница 11: ......
Страница 12: ...Chapter 2 Installation 2 2...
Страница 13: ...XVME 113 RAM ROM Memory Module October 1992 2 3 0 1 2...
Страница 14: ...Chapter 2 Installation 2 4 3 1 1 1 13 14 15 16 7 2 89 2 89 9 9 9 9 3 4 5 6 97 9 9 9 97 9 9 9 9 9 9 9 4 9 9...
Страница 15: ...XVME 113 RAM ROM Memory Module October 1992 2 5 4 A B B B B C 9 A B 2 D B 4 8 8 8 3 4 9 9 0 0 1 0 E E E...
Страница 16: ...Chapter 2 Installation 2 6 3 7 2 2 3 8 1 1...
Страница 18: ...Chapter 2 Installation 2 8 4 9 2 3 6 42 4 5 612 4 6 2 4 7 02 4 E 3 4 5 6 9 B 3 4 5 6 9 B 3 5 3 E...
Страница 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...
Страница 20: ...Chapter 2 Installation 2 10 3...
Страница 26: ...Chapter 2 Installation 2 16 4 6 4 5...
Страница 28: ...Chapter 2 Installation 2 18 4 5 9 B A 4 B9 5 2 9 9 5 4 B9 4 4 B9 E 9 7 E 7 9EE EE E EE 4 B9 0 5 9 4 B9 0 4...
Страница 30: ...Chapter 2 Installation 2 20 4 5 E E B E 6 E 6 E E E B E...
Страница 31: ...XVME 113 RAM ROM Memory Module October 1992 2 21 4 3 8 8 3 C 4 8 3 B E E 4 9 J 53 J 53J 6 9 5 6 8 5...
Страница 32: ...Chapter 2 Installation 2 22 9...
Страница 52: ......
Страница 64: ...Appendix B Quick Reference Guide B 6 Figure B 2 Read Timing Waveform...
Страница 65: ...C 1 APPENCIX C BLOCK DIAGRAM ASSEMBLY DRAWING SCHEMATICS Figure C 1 XVME 113 Block Diagram...
Страница 66: ...Appendix C Block Diagram Assembly Drawing Schematics C 2 Figure C 2 Assembly Drawing...
Страница 67: ......
Страница 68: ......
Страница 69: ......
Страница 70: ......
Страница 71: ......
Страница 72: ......
Страница 73: ......
Страница 74: ......
Страница 75: ......