Download Print this page

Renesas M16C/50 Series User Manual page 429

Advertisement

M16C/5L Group, M16C/56 Group
18.3.4
I/O Port Select Function
The I/O direction of IC/OC pins is determined by registers G1FE, G1FS, and G1OER.
In SR waveform output mode, an even channel and an odd channel are used for each output waveform,
but a waveform is output only from the even channel. In this case, the corresponding pin for the odd
channel can be used as an I/O port.
Table 18.18
Pin Settings for Time Measurement and Waveform Generation
Pin
IFE
0
1
1
P2_j/
1
INPC1_j/
1
OUTC1_j
1
1
1
j = 0 to 7
—: 0 or 1
IFE: IFEj bit in the G1FE register
FSC: FSCj bit in the G1FS register
MOD1 and MOD0: Bits in the G1POCRj register
EOC: EOCj bit in the G1OER register
Note:
1.
Set the port direction bits sharing pins to 0 (input mode).
The P2_7/OUTC1_7/INPC1_7 pin or P1_7/INPC1_7 pin can be selected as a time measurement pin for
IC/OC channel 7 by the CH7INSEL bit in the G1BCR0 register (channel 7 input select bit).
The digital debounce filter for noise reduction can be used with an input to the INP1_7 pin from the
P1_7/INP1_7 pin. Refer to 11.4.3 "Digital Debounce Filters" for details.
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Pin Settings
FSC
MOD1 and MOD0
1
0
00b
0
00b
0
01b
0
01b
0
10b
0
10b
EOC
P2_j used as I/O port
(1)
INPC1_j
0
Single-phase waveform output from OUTC1_j
1
P2_j used as I/O port
0
SR waveform output from OUTC1_j
1
P2_j used as I/O port
0
Inverted waveform output from OUTC1_j
1
P2_j used as I/O port
18. Timer S
Pin Function
Page 392 of 803

Advertisement

loading