Day Counter (Rdaycnt); Month Counter (Rmoncnt) - Renesas RZ/A Series User Manual

Hide thumbs Also See for RZ/A Series:
Table of Contents

Advertisement

RZ/A1L Group, RZ/A1LU Group, RZ/A1LC Group
13.3.6

Day Counter (RDAYCNT)

RDAYCNT is the counter used for setting/counting the BCD-coded day value. The count operation is performed by a
carry for each day of the hour counter.
The assignable range is from 01 through 31 (practically in BCD); otherwise an operation error will occur. Carry out write
processing after stopping the count operation through the setting of the START bit in RCR2.
The assignable range changes depending on the month and in leap years. Confirm the correct setting. A leap year is
determined by checking if the year counter (RYRCNT) value is divisible by 400, 100, and 4.
Bit
Bit Name
7, 6
5, 4
10 days
3 to 0
1 day
13.3.7

Month Counter (RMONCNT)

RMONCNT is the counter used for setting/counting the BCD-coded month value. The count operation is performed by a
carry for each month of the date counter.
The assignable range is from 01 through 12 (practically in BCD); otherwise an operation error will occur. Carry out write
processing after stopping the count operation through the setting of the START bit in RCR2.
Bit
Bit Name
7 to 5
4
10 months
3 to 0
1 month
R01UH0437EJ0600 Rev.6.00
Jan 29, 2021
BIt:
7
6
-
-
Initial value:
0
0
R/W:
R
R
Initial
Value
R/W
Description
All 0
R
Reserved
These bits are always read as 0. The write value should always be 0.
Undefined
R/W
Counting Ten's Position of Days
Undefined
R/W
Counting One's Position of Days
Counts from 0 to 9, one number per day. When a carry is generated, 1 is added
to the ten's position.
BIt:
7
6
-
-
Initial value:
0
0
R/W:
R
R
Initial
Value
R/W
Description
All 0
R
Reserved
These bits are always read as 0. The write value should always be 0.
Undefined
R/W
Counting Ten's Position of Months
Undefined
R/W
Counting One's Position of Months
Counts from 0 to 9, one number per month. When a carry is generated, 1 is
added to the ten's position.
5
4
3
2
1
10 days
1 day
Undefined Undefined Undefined Undefined Undefined Undefined
R/W
R/W
R/W
R/W
R/W
5
4
3
2
1
10
-
1 month
months
0
Undefined Undefined Undefined Undefined Undefined
R
R/W
R/W
R/W
R/W
13. Realtime Clock
0
R/W
0
R/W
13-7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rz/a1 seriesRz/a1lu seriesRz/a1lc series

Table of Contents