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 #273 background imageLoading...
Page #273 background image
RL78/G1H CHAPTER 9 REAL-TIME CLOCK
R01UH0575EJ0120 Rev. 1.20 Page 255 of 920
Dec 22, 2016
9.4.3 Reading/writing real-time clock
Read or write the counter after setting 1 to RWAIT first.
Set RWAIT to 0 after completion of reading or writing the counter.
Figure 9 - 20 Procedure for Reading Real-time Clock
Note Be sure to confirm that RWST = 0 before setting HALT/STOP mode.
Caution Complete the series of process of setting the RWAIT bit to 1 to clearing the RWAIT bit to 0 within 1 second.
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 read in any sequence.
All the registers do not have to read and only some registers may be read.
Reading MIN
RWAIT = 1
Start
Reading HOUR
Reading SEC
RWST = 1?
Reads second count register.
Reads minute count register.
No
Yes
Reads hour count register.
Reading WEEK
Reads week count register.
Reading DAY
Reads day count register.
Reading MONTH
Reads month count register.
Reading YEAR
Reads 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