r5f21346mnfp Renesas Electronics Corporation., r5f21346mnfp Datasheet - Page 300

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.4
Table 19.7
j = A, B, C, or D
Count source
Count operation
Count period
Count start condition
Count stop condition
Interrupt request generation
timing
TRCIOA, TRCIOB, TRCIOC,
and TRCIOD pin functions
INT0 pin function
Read from timer
Write to timer
Selectable functions
This function measures the width or period of an external signal. An external signal input to the TRCIOj (j = A, B,
C, or D) pin acts as a trigger for transferring the contents of the TRC register (counter) to the TRCGRj register
(input capture). The input capture function, or any other mode or function, can be selected for each individual pin.
The TRCGRA register can also select fOCO128 signal as input-capture trigger input.
Table 19.7 lists the Specifications of Input Capture Function, Figure 19.7 shows a Block Diagram of Input Capture
Function, Table 19.8 lists the Functions of TRCGRj Register when Using Input Capture Function, and Figure 19.8
shows an Operating Example of Input Capture Function.
Timer Mode (Input Capture Function)
Item
Specifications of Input Capture Function
f1, f2, f4, f8, f32, fOCO40M, fOCO-F
• The CCLR bit in the TRCCR1 register is set to 0 (free running operation):
1 (count starts) is written to the TSTART bit in the TRCMR register.
Programmable I/O port or INT0 interrupt input
• Input capture input pin selection
External signal (rising edge) input to TRCCLK pin
Increment
• The CCLR bit in the TRCCR1 register is set to 1 (TRC register set to
0 (count stops) is written to the TSTART bit in the TRCMR register.
The TRC register retains a value before count stops.
• Input capture (valid edge of TRCIOj input or fOCO128 signal edge)
• The TRC register overflows.
Programmable I/O port or input capture input (selectable individually for
each pin)
The count value can be read by reading TRC register.
The TRC register can be written to.
• Input capture input valid edge selection
• Buffer operation (Refer to 19.3.2 Buffer Operation .)
• Digital filter (Refer to 19.3.3 Digital Filter .)
• Timing for setting the TRC register to 0000h
• Input-capture trigger selected
1/fk × 65,536
fk: Count source frequency
0000h at TRCGRA input capture):
1/fk × (n + 1)
n: TRCGRA register setting value
One or more of pins TRCIOA, TRCIOB, TRCIOC, and TRCIOD
Rising edge, falling edge, or both rising and falling edges
Overflow or input capture
fOCO128 can be selected for input-capture trigger input of the
TRCGRA register.
Specification
Page 268 of 740
19. Timer RC

Related parts for r5f21346mnfp