English
Language : 

R8C-26_1 Datasheet, PDF (174/485 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MCU R8C FAMILY / R8C/2x SERIES
R8C/26 Group, R8C/27 Group
14. Timers
Underflow signal of
timer RA prescaler
TSTART bit in 1
TRACR register 0
Measurement pulse 1
(TRAIO pin input) 0
Set to 1 by program
Starts counting
TRA reloads
TRA reloads
Contents of TRA
Contents of read-out
buffer(1)
TEDGF bit in 1
TRACR register 0
TUNDF bit in 1
TRACR register 0
0Fh 0Eh 0Dh 0Fh 0Eh 0Dh 0Ch 0Bh 0Ah 09h 0Fh 0Eh 0Dh
0Fh 0Eh
Retained
0Dh
Retained
0Bh 0Ah
09h
0Dh
TRA read(3)
(Note 2)
(Note 2)
01h 00h 0Fh 0Eh
Underflow
01h 00h 0Fh 0Eh
Set to 0 by program
(Note 4)
(Note 6)
Set to 0 by program (Note 5)
IR bit in TRAIC 1
register 0
Set to 0 when interrupt request is acknowledged, or set by program
Conditions: The period from one rising edge to the next rising edge of the measured pulse is measured (TEDGSEL = 0) with
the default value of the TRA register as 0Fh.
NOTES:
1. The contents of the read-out buffer can be read by reading the TRA register in pulse period measurement mode.
2. After an active edge of the measured pulse is input, the TEDGF bit in the TRACR register is set to 1 (active edge found) when the timer
RA prescaler underflows for the second time.
3. The TRA register should be read before the next active edge is input after the TEDGF bit is set to 1 (active edge found).
The contents in the read-out buffer are retained until the TRA register is read. If the TRA register is not read before the next active edge
is input, the measured result of the previous period is retained.
4. To set to 0 by a program, use a MOV instruction to write 0 to the TEDGF bit in the TRACR register. At the same time, write 1 to the
TUNDF bit in the TRACR register.
5. To set to 0 by a program, use a MOV instruction to write 0 to the TUNDF bit. At the same time, write 1 to the TEDGF bit.
6. Bits TUNDF and TEDGF are both set to 1 if timer RA underflows and reloads on an active edge simultaneously.
Figure 14.11 Operating Example of Pulse Period Measurement Mode
Rev.2.10 Sep 26, 2008 Page 157 of 453
REJ09B0278-0210