XVME-113 RAM/ROM Memory Module
October 1992
3-11
3.5.2.1
Setting the Time with the RTC Stopped
If all of the date and time registers need to be set, stopping the clock is the preferred method for initializing the RTC.
The procedure for setting the RTC time while it is stopped is described in the flow chart and instructions below.
•
•
•••••••••••••••••••••••••••••
•
Stop the Clock
•
Clear the Start/Stop bit in Control Register B.
•••••••••••••••••••••••••••••
•
•••••••••••••••••••••••••••••
•
Reset the Clock
•
Set the RESET bit in Control Register B.
•••••••••••••••••••••••••••••
•
•••••••••••••••••••••••••••••
•
Wait for Reset
•
Do not set the Counter Registers until RESET bit
•••••••••••••••••••••••••••••
returns to '0'.
•
•••••••••••••••••••••••••••••
• Set the counter registers •
•
and alarm registers, as
•
•
desired.
•
•••••••••••••••••••••••••••••
•
•••••••••••••••••••••••••••••
•
Start the Clock
•
Set the Start/Stop bit in Control Register B.
•••••••••••••••••••••••••••••
•
Follow the procedure below to set the RTC time with the clock stopped:
1.
Stop the RTC by clearing the Start/Stop bit (bit 0 of Control Register B) to '0'. The clock will then
be stopped, but no registers will be affected.
2.
Since the 64 Hz Counter Register is a read-only register, it must be reset with the RESET bit. Reset
the 64 Hz Counter Register by setting the RESET bit (bit 1 of Control Register B) to '1'.
3.
Wait for the reset operation to conclude by polling the RESET bit until it has been reset to '0'. The
RTC automatically clears the RESET bit when the reset operation is complete.
4.
Set the Seconds Counter through Year Counter Registers to the desired values. Except for the Day
of Week Counter Register, these registers are encoded in BCD format.
5.
Start the RTC by setting the Start/Stop bit (bit 0 of Control Register B) to '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: ......