r5f21346mnfp Renesas Electronics Corporation., r5f21346mnfp Datasheet - Page 244

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
17. Timer RA
Timer RA is an 8-bit timer with an 8-bit prescaler.
17.1
Figure 17.1
Table 17.1
TRAIO pin
TRAO pin
TRAIO
TRAO
The prescaler and timer each consist of a reload register and counter. The reload register and counter are allocated
at the same address, and can be accessed when accessing registers TRAPRE and TRA (refer to Tables 17.2 to 17.6
the Specifications of Each Mode).
The count source for timer RA is the operating clock that regulates the timing of timer operations such as counting
and reloading.
Figure 17.1 shows a Timer RA Block Diagram. Table 17.1 lists the Pin Configuration of Timer RA.
Timer RA contains the following five operating modes:
• Timer mode:
• Pulse output mode:
• Event counter mode:
• Pulse width measurement mode: The timer measures the pulse width of an external pulse.
• Pulse period measurement mode: The timer measures the pulse period of an external pulse.
Pin Name
f32
f1
f8
(1)
(2)
Bits TIPF1 to TIPF0
Overview
Event input enabled at INT2 level
Bits TCK2 to TCK0
= 01b
= 10b
= 11b
Notes:
fOCO
1. Bits TRAIOSEL0 and TRAIOSEL1 in the TRASR register are used to select which pin is assigned.
2. Bit TRAOSEL0 in the TRASR register is used to select which pin is assigned.
3. The POL bit in the INT2IC register is used to select the INT2 level when the event input is enabled.
fC32
Event enabled for “L” period of
fC
f1
f8
f2
Event input always enabled
= 000b
= 001b
= 010b
= 011b
= 100b
= 110b
TRCIOD (timer RC output)
Timer RA Block Diagram
Pin Configuration of Timer RA
Digital
filter
P1_5 or P1_7
P3_0 or P3_7
Bits TIPF1 to TIPF0
= other than
Assigned Pin
= 00b
TOENA bit
000b
Bits TIOGT1 to TIOGT0
(3)
= 00b
= 01b
= 10b
switching
Polarity
The timer counts the internal count source.
The timer counts the internal count source and outputs pulses which invert the
polarity by underflow of the timer.
The timer counts external pulses.
TMOD2 to TMOD0
= other than 010b
TMOD2 to TMOD0 = 001b
TOPCR bit
TMOD2 to TMOD0
= 010b
TCSTF, TSTOP: Bits in TRACR register
TEDGSEL, TOPCR, TOENA, TIPF1, TIPF0, TIOGT1, TIOGT0: Bits in TRAIOC register
TMOD2 to TMOD0, TCK2 to TCK0, TCKCUT: Bits in TRAMR register
Output
TCKCUT
I/O
I/O
TMOD2 to TMOD0
bit
= 011b or 100b
TCSTF
bit
TEDGSEL = 1
TEDGSEL = 0
Function differs according to the mode.
Refer to descriptions of individual modes
for details
TRAPRE register
Count control
register
Reload
(prescaler)
circuit
Counter
Q
Q
Data bus
completion signal
flip-flop
Toggle
Measurement
CLR
Reload
register
TRA register
CK
Counter
(timer)
Function
Write to TRAMR register
Write 1 to TSTOP bit
Underflow signal
Page 212 of 740
Timer RA interrupt
17. Timer RA

Related parts for r5f21346mnfp