r5f21368sdfp Renesas Electronics Corporation., r5f21368sdfp Datasheet - Page 397

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.4
Figure 18.20
18.4.1
18.4.2
Figure 18.20 shows the Initial Setting Procedure when Timer RE2 is Used in Compare Match Timer Mode and
Figure 18.21 shows an Operation Example in Compare Match Mode. Also, refer to Figure 18.20 when setting
these registers again.
Operation in Compare Match Timer Mode
Set bits TREOE and CCLR in TRECR register
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.
Initial Setting Procedure when Timer RE2 is Used in Compare Match Timer Mode
RUN bit in TRECR register = 0
RUN bit in TRECR register = 1
Set TRECSR register
Set TREMIN register
Set TREIER register
Stop the count.
Initialize the registers and the counter control circuit.
Select the count source, timer RE2 output,
and compare match timer mode.
Set an interrupt.
Set timer RE2 output enabled/disabled
and the counter clear enabled/disabled
Enable writing to the compare match registers.
Set the compare match registers.
Disable writing to the compare match registers.
Start the count.
Page 366 of 725
18. Timer RE2

Related parts for r5f21368sdfp