r5f21368sdfp Renesas Electronics Corporation., r5f21368sdfp Datasheet - Page 392

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.5
Table 18.6
TREAWK Register
ENBWK Bit in
Generation of an alarm can be set by minutes, hours, or days of the week, or any combination of these. Write 1
to an enable bit in the target alarm register and set the lower bits to the alarm time. Write 0 to an enable bit in the
other alarm registers.
When the counter and the alarm time match, the ALIF bit in the TREIFR register is set to 1 (interrupt
requested). Detection of the alarm can be confirmed by reading the ALIF bit, but usually confirmed by using an
interrupt. When 1 (alarm interrupt enabled) has been written to the ALIE bit, an alarm interrupt request is
generated and the alarm can be detected.
The ALIF bit that has changed to 1 is set to 0 by writing 0 by a program.
The following shows an alarm setting example:
• Set bits AMN6 through AMN4 to 5 and bits AMN3 through AMN0 to 8 in the TREAMN register (58
• Set the APM bit to 0 (a.m.) and bits AHR5 through AHR0 to 3 (3 o’clock) in the TREAHR register.
• Set bits AWK2 to AWK0 in the TREAWK register to 001b (Monday).
Table 18.6 lists the Alarm Interrupt Request Generation Conditions and Figure 18.16 shows the Alarm Time
Setting Procedure.
minutes).
0
0
0
0
1
1
1
1
Alarm Function
Preliminary document
Specifications in this document are tentative and subject to change.
Alarm Interrupt Request Generation Conditions
TREAHR Register
ENBHR Bit in
0
0
1
1
0
0
1
1
TREAMN Register
ENBMN Bit in
0
1
0
1
0
1
0
1
An alarm interrupt request is not generated.
An alarm interrupt request is generated at 58
minutes and 00 seconds.
An alarm interrupt request is generated at
3:00:00 a.m.
An alarm interrupt request is generated at
3:58:00 a.m.
An alarm interrupt request is generated at
0:00:00 a.m. on Monday.
An alarm interrupt request is generated at 58
minutes and 00 seconds on Monday.
An alarm interrupt request is generated at
3:00:00 a.m. on Monday.
An alarm interrupt request is generated at
3:58:00 a.m. on Monday.
Alarm Interrupt Request Generation Condition
Page 361 of 725
18. Timer RE2

Related parts for r5f21368sdfp