
iiiPeriPheraLModuLes1(systeM):reaL-tiMeCLoCk(rtC)
s1C33L17teChniCaLManuaL
ePson
iii-3-13
III
RTC
iii.3.6detailsofControlregisters
TableIII.3.6.1RTCRegisterList
address
0x00301900
0x00301904
0x00301908
0x0030190C
0x00301910
0x00301914
0x00301918
0x0030191C
0x00301920
0x00301924
0x00301928
Function
RTCinterruptstatus
SetsRTCinterruptconditionsandenablesRTCinterrupts.
ControlsRTCoperation.
ControlsRTCbusystatusandcounterhold.
Secondscounterdata
Minutescounterdata
Hourscounterdata
Dayscounterdata
Monthscounterdata
Yearscounterdata
Daysoftheweekcounterdata
registername
RTCInterruptStatusRegister(pRTCINTSTAT)
RTCInterruptModeRegister(pRTCINTMODE)
RTCControlRegister(pRTC_CNTL0)
RTCAccessControlRegister(pRTC_CNTL1)
RTCSecondRegister(pRTCSEC)
RTCMinuteRegister(pRTCMIN)
RTCHourRegister(pRTCHOUR)
RTCDayRegister(pRTCDAY)
RTCMonthRegister(pRTCMONTH)
RTCYearRegister(pRTCYEAR)
RTCDaysofWeekRegister(pRTCDAYWEEK)
size
32
Each RTC control register is described below.
The RTC control registers are mapped as 32-bit devices to Area 6 at addresses 0x301900 to 0x301928, and can be
accessed in units of words, half-words, or bytes.
notes: ThecontentsofallRTCcontrolregistersareindeterminatewhenpoweristurnedon,andare
notinitializedtospecificvaluesbyinitialreset.Theseregistersshouldbeinitializedinsoftware.
If1isbeingcarriedoverwhenthecountersareaccessedforread,thecorrectcountervalue
maynotbereadout.Moreover,attemptingtowritetoacounterorothercontrolregistermay
corrupt the counter value.Therefore, do not write to counters while 1 is being carried over.
Forthecorrectmethodofoperation,seeSectionIII.3.3.5,“CounterHoldandBusyFlag,”and
SectionIII.3.3.6,“ReadingfromandWritingtoCountersinOperation.”
To access the RTC control registers, the number of wait cycles must be set up in the Misc
register.Forsettingdetails,seeSectionIII.4,“MiscRegisters.”
For details of RTC-related registers in the CMU and ITC mentioned here, see the following
sections:
-SectionIII.1,“ClockManagementUnit(CMU)”
-SectionIII.2,“InterruptController(ITC)”