XVME-113 RAM/ROM Memory Module
October 1992
3-13
3.5.3
Time Reading Procedure
The following flow chart and instructions demonstrate the procedure for reading the RTC time and date. Reading the
RTC time and date requires the use of the CF to validate the data read from the counter registers.
•
••••••••••••••••••••••
•
•••••••••••••••••••••••••••••
•
•
Clear CF
•
Clear the Carry Flag in Control Register A.
•
•••••••••••••••••••••••••••••
•
•
•
•••••••••••••••••••••••••••••
•
• Read the Counter Register •
•
•••••••••••••••••••••••••••••
•
•
•
•••••••••••••••••••••••••••••
•
YES •
Verify Read Operation
•
Poll CF bit in Control Register A.
••••••••
(CF = 1 ?)
•
•••••••••••••••••••••••••••••
• NO
•
(Repeat for all counter registers)
Follow the procedure below to read the RTC time and date:
1.
Since interrupts are not used, there is no need to be concerned with handling an interrupt from a carry
operation. (The CIE and AIE bits in Control Register A should always be written with '0').
2.
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.
3.
Read the desired time or date register by reading from the appropriate counter register (RTC Registers
03h to 0Fh).
4.
Poll the CF bit in Control Register A. If the CF bit is '0', the read operation was successful and the time
or date register data is valid.
5.
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 2).
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: ......