r5f21346mnfp Renesas Electronics Corporation., r5f21346mnfp Datasheet - Page 314

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
19.6
Table 19.11
j = B, C, or D
h = A, B, C, or D
Count source
Count operation
PWM waveform
Count start condition
Count stop condition
Interrupt request generation
timing
TRCIOA pin function
TRCIOB, TRCIOC, and
TRCIOD pin functions
INT0 pin function
Read from timer
Write to timer
Selectable functions
This mode outputs PWM waveforms. A maximum of three PWM waveforms with the same period are output.
The PWM mode, or the timer mode, can be selected for each individual pin. (However, since the TRCGRA register
is used when using any pin for the PWM mode, the TRCGRA register cannot be used for the timer mode.)
Table 19.11 lists the Specifications of PWM Mode, Figure 19.13 shows a PWM Mode Block Diagram, Table 19.12
lists the Functions of TRCGRh Register in PWM Mode, and Figures 19.14 and 19.15 show Operating Examples of
PWM Mode.
PWM Mode
Item
Specifications of PWM Mode
f1, f2, f4, f8, f32, fOCO40M, fOCO-F
External signal (rising edge) input to TRCCLK pin
Increment
PWM period: 1/fk × (m + 1)
Active level width: 1/fk × (m - n)
Inactive width: 1/fk × (n + 1)
• When the CSEL bit in the TRCCR2 register is set to 0 (count continues
• When the CSEL bit in the TRCCR2 register is set to 1 (count stops at
• Compare match (contents of registers TRC and TRCGRh match)
• The TRC register overflows.
Programmable I/O port or PWM output (selectable individually for each
pin)
Programmable I/O port, pulse output forced cutoff signal input, or INT0
interrupt input
The TRC register can be written to.
• One to three pins selectable as PWM output pins
• Active level selectable for each pin
• Initial level selectable for each pin
• Buffer operation (Refer to 19.3.2 Buffer Operation .)
• Pulse output forced cutoff signal input (Refer to 19.3.4 Forced Cutoff
• A/D trigger generation
1 (count starts) is written to the TSTART bit in the TRCMR register.
Programmable I/O port
The count value can be read by reading the TRC register.
after compare match with TRCGRA).
0 (count stops) is written to the TSTART bit in the TRCMR register.
PWM output pin retains output level before count stops, TRC register
retains value before count stops.
compare match with TRCGRA register).
The count stops at the compare match with the TRCGRA register. The
PWM output pin retains the level after the output is changed by the
compare match.
One or more of pins TRCIOB, TRCIOC, and TRCIOD
of Pulse Output .)
fk: Count source frequency
m: TRCGRA register setting value
n: TRCGRj register setting value
n+1
m+1
m-n
Specification
(“L” is active level)
Page 282 of 740
19. Timer RC

Related parts for r5f21346mnfp