r5f21368sdfp Renesas Electronics Corporation., r5f21368sdfp Datasheet - Page 381

no-image

r5f21368sdfp

Manufacturer Part Number
r5f21368sdfp
Description
Renesas Mcu R8c Family / R8c/3xt-a Series
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
r5f21368sdfp#V0
Manufacturer:
Renesas Electronics America
Quantity:
10 000
Under development
R8C/36T-A Group
R01UH0240EJ0001 Rev.0.01
Apr 28, 2011
18.3
Figure 18.4
18.3.1
18.3.2
When timer RE2 is used in real-time clock mode, use the procedure shown in Figure 18.4 to perform the initial
setting of the registers after power on.
Operation in Real-Time Clock Mode
Set registers TRESEC, TREMIN, TREHR,
TREWK, TREDY, TREMON, and TREYR.
Operation Example
Example of Setting Associated Registers
PROTECT bit in TREPRC register = 1
PROTECT bit in TREPRC register = 0
RTCRST bit in TRECR register = 1
RTCRST bit in TRECR register = 0
Preliminary document
Specifications in this document are tentative and subject to change.
Set bits TREOE, PM, and HR24
Initial Setting Procedure when Timer RE2 is Used in Real-Time Clock Mode
RUN bit in TRECR register = 0
RUN bit in TRECR register = 1
Set TRECSR register
Set TREIER register
in TRECR register.
Stop the count.
Initialize the registers and the counter control circuit.
Select the count source, timer RE2 output,
and real-time clock mode.
Set an interrupt.
Enable writing to the time data registers.
Set seconds, minutes, hours, days of the week, days,
months, years, timer RE2 output enabled/disabled,
a.m./p.m., and operating mode
Disable writing to the time data registers.
Start the count.
Page 350 of 725
18. Timer RE2

Related parts for r5f21368sdfp