EasyManuals Logo
Home>Renesas>Microcontrollers>RX Series

Renesas RX Series User Manual

Renesas RX Series
1823 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 #774 background imageLoading...
Page #774 background image
R01UH0823EJ0100 Rev.1.00 Page 774 of 1823
Jul 31, 2019
RX23W Group 28. Realtime Clock (RTCe)
28.2.11 Hour Alarm Register (RHRAR)/Binary Counter 2 Alarm Register (BCNT2AR)
(1) In calendar count mode:
The RHRAR register is an alarm register corresponding to the BCD-coded hour counter RHRCNT. When the ENB bit is
set to 1, the RHRAR value is compared with the RHRCNT value. From among the alarm registers (RSECAR, RMINAR,
RHRAR, RWKAR, RDAYAR, RMONAR, and RYRAREN), only those selected with the ENB bits set to 1 are compared
with the corresponding counters. When the respective values all match, the IR flag corresponding to the ALM interrupt is
set to 1.
The specifiable time differs according to the setting in the hours mode bit (RCR2.HR24).
When the RCR2.HR24 bit is 0: From 00 to 11 (in BCD)
When the RCR2.HR24 bit is 1: From 00 to 23 (in BCD)
If a value outside of this range is specified, the RTC does not operate correctly.
When the RCR2.HR24 bit is 0, be sure to set the PM bit.
When the RCR2.HR24 bit is 1, the setting in the PM bit has no effect.
After writing to the RHRAR register, confirm that its value has actually changed before proceeding with further
processing. Refer to
section 28.6.5, Notes When Writing to and Reading from Registers for notes on accessing
registers.
This register is set to 00h by an RTC software reset.
(2) In binary count mode:
The BCNT2AR counter is a readable/writable alarm register corresponding to 32-bit binary counter b23 to b16.
This register is set to 00h by an RTC software reset.
Address(es): RTC.RHRAR 0008 C414h
b7 b6 b5 b4 b3 b2 b1 b0
ENB PM HR10[1:0] HR1[3:0]
Value after reset:
xxxxxxxx
x: Undefined
Bit Symbol Bit Name Description R/W
b3 to b0 HR1[3:0] 1 Hour Value for the ones place of hours R/W
b5, b4 HR10[1:0] 10 Hours Value for the tens place of hours R/W
b6 PM PM Time Alarm Setting for a.m./p.m.
0: a.m.
1: p.m.
R/W
b7 ENB ENB 0: The register value is not compared with the RHRCNT counter value.
1: The register value is compared with the RHRCNT counter value.
R/W
Address(es): RTC.BCNT2AR 0008 C414h
b7 b6 b5 b4 b3 b2 b1 b0
BCNTAR[23:16]
Value after reset:
xxxxxxxx
x: Undefined

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas RX Series and is the answer not in the manual?

Renesas RX Series Specifications

General IconGeneral
BrandRenesas
ModelRX Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals