17.4.7 Date and Time Registers
These registers may be written when the RTC is running. After writing these registers, the control register upload bit is used to upload the value coherently into the RTC counter.
Address Offset | Register Name | Bit Numbers | Name | R/W | Reset Value | Description |
---|---|---|---|---|---|---|
0x20 | Date Time | [31:0] | Datetime Lower | R/W | 0 | Writes the data to be uploaded to the counter and returns the current time upon reading. |
0x24 | [31:0] | Datetime Upper | R/W | 0 | Writes the data to be uploaded to the counter and returns the upper time bits that are in alignment with the last read lower bits; that is, the value of the upper time bits as the lower ones are read. | |
0x30 | Date/Time Synchronized Byte Mode | [5:0] | Seconds | R/W | 0 | Synchronized mode returns the date/time values at the point the second's register is read. Allows the individual byte of the date and timer to be read.The complete RTC data is read and stored internally when the second value is read, reads of minutes etc returns the value when seconds was read. For writes, all fields (0 × 30 - × 4C) must be written. The control register upload bit uploads data to the RTC. These registers are for use when clock_mode = 1. |
0x34 | [5:0] | Minutes | R/W | 0 | ||
0x38 | [4:0] | Hours | R/W | 0 | ||
0x3C | [4:0] | Day | R/W | 0 | ||
0x40 | [4:0] | Month | R/W | 0 | ||
0x44 | [7:0] | Year | R/W | 0 | ||
0x48 | [2:0] | Weekday | R/W | 0 | ||
0x4C | [5:0] | Week | R/W | 0 | ||
0x50 | Date/Time Direct Byte Mode | [5:0] | Seconds | R/W | 0 | Direct mode returns the date/time at the point that each of the the reads take place. Allows the individual byte of the date and timer to be read. Each read returns the current date/time value. It is possible that the date/time may increment between reads. For writing all fields (0 × 50 - × 6C) must be written. The control register upload bit uploads data to the RTC. These registers are for use when clock_mode = 1. |
0x54 | [5:0] | Minutes | R/W | 0 | ||
0x58 | [4:0] | Hours | R/W | 0 | ||
0x5C | [4:0] | Day | R/W | 0 | ||
0x60 | [4:0] | Month | R/W | 0 | ||
0x64 | [7:0] | Year | R/W | 0 | ||
0x68 | [2:0] | Weekday | R/W | 0 | ||
0x6C | [5:0] | Week | R/W | 0 |
See Table 17-5 for register bit allocation.