r5f21346mnfp Renesas Electronics Corporation., r5f21346mnfp Datasheet - Page 249

no-image

r5f21346mnfp

Manufacturer Part Number
r5f21346mnfp
Description
Single-chip Mcus Incorporates The R8c Cpu Core
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
r5f21346mnfp#V0
Manufacturer:
Renesas Electronics America
Quantity:
10 000
R8C/34M Group
R01UH0131EJ0100 Rev.1.00
Jun 21, 2011
Figure 17.2
17.3.2
The above applies under the following conditions.
Both bits TSTART and TCSTF in the TRACR register are set to 1 (during count).
Counter of timer RA
Timer RA has a prescaler and a timer (which counts the prescaler underflows). The prescaler and timer each
consist of a reload register and a counter. When writing to the prescaler or timer, values are written to both the
reload register and counter.
However, values are transferred from the reload register to the counter of the prescaler in synchronization with
the count source. In addition, values are transferred from the reload register to the counter of the timer in
synchronization with prescaler underflows. Therefore, if the prescaler or timer is written to when count
operation is in progress, the counter value is not updated immediately after the WRITE instruction is executed.
Figure 17.2 shows an Operating Example of Timer RA when Counter Value is Rewritten during Count
Operation.
timer RA prescaler
timer RA prescaler
Reload register of
Reload register of
IR bit in TRAIC
Count source
Set 01h to the TRAPRE register and 25h to
the TRA register by a program.
Timer Write Control during Count Operation
Counter of
timer RA
register
Operation
Operating Example of Timer RA when Counter Value is Rewritten during Count
0
Previous value
06h
05h
Previous value
The IR bit remains unchanged until underflow is
generated by a new value.
After writing, the reload register is
written to at the first count source.
03h
04h
01h
Reload at
second count
source
00h
After writing, the reload register is
written to at the first underflow.
01h
Reload at
underflow
02h
New value (01h)
00h
Reload at the second underflow
01h
25h
New value (25h)
00h
01h
24h
00h
Page 217 of 740
17. Timer RA

Related parts for r5f21346mnfp