EasyManuals Logo

Renesas RL78/G1H User Manual

Renesas RL78/G1H
941 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #274 background imageLoading...
Page #274 background image
RL78/G1H CHAPTER 9 REAL-TIME CLOCK
R01UH0575EJ0120 Rev. 1.20 Page 256 of 920
Dec 22, 2016
Figure 9 - 21 Procedure for Writing Real-time Clock
Note Be sure to confirm that RWST = 0 before setting HALT/STOP mode.
Caution 1. Complete the series of operations of setting the RWAIT bit to 1 to clearing the RWAIT bit to 0 within 1 second.
Caution 2. When changing the values of the SEC, MIN, HOUR, WEEK, DAY, MONTH, and YEAR register while the counter
operates (RTCE = 1), rewrite the values of the MIN register after disabling interrupt servicing INTRTC by using
the interrupt mask flag register. Furthermore, clear the WAFG, RIFG and RTCIF flags after rewriting the MIN
register.
Remark The second count register (SEC), minute count register (MIN), hour count register (HOUR), week count register (WEEK),
day count register (DAY), month count register (MONTH), and year count register (YEAR) may be written in any
sequence.
All the registers do not have to be set and only some registers may be written.
Writing MIN
RWAIT = 1
Start
Writing HOUR
Writing SEC
RWST = 1?
Writes second count register.
Writes minute count register.
No
Yes
Writes hour count register.
Writing WEEK
Writes week count register.
Writing DAY
Writes day count register.
Writing MONTH
Writes month count register.
Writing YEAR
Writes year count register.
RWAIT = 0
Sets counter operation.
Checks wait status of counter.
End
RWST = 0?
Note
No
Yes
Stops SEC to YEAR counters.
Mode to read and write count values

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas RL78/G1H and is the answer not in the manual?

Renesas RL78/G1H Specifications

General IconGeneral
BrandRenesas
ModelRL78/G1H
CategoryMicrocontrollers
LanguageEnglish

Related product manuals