r5f21346mnfp Renesas Electronics Corporation., r5f21346mnfp Datasheet - Page 261

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
18. Timer RB
Timer RB is an 8-bit timer with an 8-bit prescaler.
18.1
Figure 18.1
Table 18.1
TRBO
TRBO pin
The prescaler and timer each consist of a reload register and counter (refer to Tables 18.2 to 18.5 the
Specifications of Each Mode). Timer RB has timer RB primary and timer RB secondary as reload registers.
The count source for timer RB is the operating clock that regulates the timing of timer operations such as counting
and reloading.
Figure 18.1 shows a Timer RB Block Diagram. Table 18.1 lists the Pin Configuration of Timer RB.
Timer RB has four operation modes listed as follows:
• Timer mode:
• Programmable waveform generation mode:
• Programmable one-shot generation mode:
• Programmable wait one-shot generation mode:
Timer RA underflow
Pin Name
INT0 pin
Note:
TSTART, TCSTF: Bits in TRBCR register
TOSSTF: Bit in TRBOCR register
TOPL, TOCNT, INOSTG, INOSEG: Bits in TRBIOC register
TMOD1 to TMOD0, TCK1 to TCK0, TCKCUT: Bits in TRBMR register
1.
Bits TCK1 to TCK0
Overview
The TRBOSEL0 bit in the TRBRCSR register is used to select which pin is assigned.
(1)
f1
f2
f8
Timer RB Block Diagram
Pin Configuration of Timer RB
= 00b
= 01b
= 10b
= 11b
P1_3 or P3_1
Bits TMOD1 to TMOD0
= 01b
TCKCUT bit
,
Assigned Pin
10b, 11b
Digital filter
TOCNT = 1
TOCNT = 0
P1_3 bit in P1 register or
P3_1 bit in P3 register
edge or both edges
TRBPRE register
switched to be one
register
Reload
Input polarity
INT0EN bit
INT0PL bit
TSTART bit
(prescaler)
Counter
Output
I/O
The timer counts an internal count source (peripheral
function clock or timer RA underflows).
The timer outputs pulses of a given width successively.
The timer outputs a one-shot pulse.
The timer outputs a delayed one-shot pulse.
Bits TMOD1 to TMOD0
= 10b or 11b
Data bus
TOPL = 1
TOPL = 0
register
Reload
Pulse output (programmable waveform
generation mode, programmable one-shot
generation mode, programmable wait one-
shot generation mode)
INOSEG bit
TRBSC
register
selection
Polarity
Counter (timer RB)
Q
Q
(Timer)
TOSSTF bit
register
Reload
Toggle
flip-flop
CLR
INOSTG bit
TRBPR
register
Function
CK
Write 1 to TSTOP bit
Bits TMOD1 to TMOD0
= 01b
Timer RB interrupt
INT0 interrupt
,
10b, 11b
Page 229 of 740
18. Timer RB

Related parts for r5f21346mnfp