r5f21346mnfp Renesas Electronics Corporation., r5f21346mnfp Datasheet - Page 371

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
Figure 20.12
20.4.21 Changing Output Pins in Registers TRDGRCi (i = 0 or 1) and TRDGRDi
TRDIOC0
TRDIOD0
TRDIOC1
TRDIOD1
TRDIOA0
TRDIOB0
TRDIOA1
TRDIOB1
The TRDGRCi register can be used for output control of the TRDIOAi pin, and the TRDGRDi register can be
used for output control of the TRDIOBi pin. Therefore, each pin output can be controlled as follows:
• TRDIOAi output is controlled by the values in registers TRDGRAi and TRDGRCi.
• TRDIOBi output is controlled by the values in registers TRDGRBi and TRDGRDi.
Change output pins in registers TRDGRCi and TRDGRDi as follows:
• Select 0 (change TRDGRji register output pin) by the IOj3 (j = C or D) bit in the TRDIORCi register.
• Set the BFji bit in the TRDMR register to 0 (general register).
• Set different values in registers TRDGRCi and TRDGRAi. Also, set different values in registers TRDGRDi
Figure 20.13 shows an Operating Example When TRDGRCi Register is Used for Output Control of TRDIOAi
Pin and TRDGRDi Register is Used for Output Control of TRDIOBi Pin.
and TRDGRBi.
Changing Output Pins in Registers TRDGRCi and TRDGRDi
Timer RD0
Timer RD1
Output
control
Output
control
Output
control
Output
control
Output
control
Output
control
Output
control
Output
control
IOC3 = 0 in
TRDIORC0 register
IOC3 = 1
IOD3 = 0 in
TRDIORC0 register
IOD3 = 1
IOC3 = 0 in
TRDIORC1 register
IOC3 = 1
IOD3 = 0 in
TRDIORC1 register
IOD3 = 1
Compare match signal
Compare match signal
Compare match signal
Compare match signal
Compare match signal
Compare match signal
Compare match signal
Compare match signal
Comparator
Comparator
Comparator
Comparator
Comparator
Comparator
Comparator
Comparator
TRDGRC0
TRDGRD0
TRDGRC1
TRDGRD1
TRDGRA0
TRDGRB0
TRDGRA1
TRDGRB1
Page 339 of 740
TRD0
TRD1
20. Timer RD

Related parts for r5f21346mnfp