I/O Port Function Select - Renesas M16C/29 Series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for M16C/29 Series:
Table of Contents

Advertisement

M16C/29 Group

13.6 I/O Port Function Select

The M16C/29 will automatically configure the port package pins to be IC/OC inputs or outputs based on
the values in the Function Enable (G1FE) and Function Select (G1FS) registers.
When using PWM S-R mode, two channels are enabled and selected as output, but only one output, the
output corresponding to the even numbered channel, is generated.
The port package pin corresponding to the odd numbered channel is available for use as General Pur-
pose Input / Output.
Table 13.6.1. Pin setting for Time Measurement and Waveform Generation Functions
Pin
IFE FSC MOD1 MOD0 Port Direction
P2
/INPC1
/
0
7
7
OUTC1
1
7
1
1
1
P2
/INPC1
/
0
6
6
OUTC1
1
6
1
1
1
P2
/INPC1
/
0
5
5
OUTC1
1
5
1
1
1
P2
/INPC1
/
0
4
4
OUTC1
1
4
1
1
1
P2
/INPC1
/
0
3
3
OUTC1
1
3
1
1
1
P2
/INPC1
/
0
2
2
OUTC1
1
2
1
1
1
P2
/INPC1
/
0
1
1
OUTC1
1
1
1
1
1
P2
/INPC1
/
0
0
0
OUTC1
1
0
1
1
1
IFE: IFEj (j=0 to 7) bits in the G1FE register.
FSC: FSCj (j=0 to 7) bits in the G1FS register.
MOD2 to MOD1: Bits in the G1POCRj (j=0 to 7) register.
Rev.1.00 Nov 01,2004
REJ09B0101-0100Z
X
X
X
Determined by PD2
1
X
X
Determined by PD2
0
0
0
Single-phase Waveform Output
0
0
1
Determined by PD2
0
1
0
Phase-delayed Waveform Output
X
X
X
Determined by PD2
1
X
X
Determined by PD2
0
0
0
Single-phase Waveform Output
0
0
1
SR Waveform Output
0
1
0
Phase-delayed Waveform Output
X
X
X
Determined by PD2
1
X
X
Determined by PD2
0
0
0
Single-phase Waveform Output
0
0
1
Determined by PD2
0
1
0
Phase-delayed Waveform Output
X
X
X
Determined by PD2
1
X
X
Determined by PD2
0
0
0
Single-phase Waveform Output
0
0
1
SR Waveform Output
0
1
0
Phase-delayed Waveform Output
X
X
X
Determined by PD2
1
X
X
Determined by PD2
0
0
0
Single-phase Waveform Output
0
0
1
Determined by PD2
0
1
0
Phase-delayed Waveform Output
X
X
X
Determined by PD2
1
X
X
Determined by PD2
0
0
0
Single-phase Waveform Output
0
0
1
SR Waveform Output
0
1
0
Phase-delayed Waveform Output
X
X
X
Determined by PD2
1
X
X
Determined by PD2
0
0
0
Single-phase Waveform Output
0
0
1
Determined by PD2
0
1
0
Phase-delayed Waveform Output
X
X
X
Determined by PD2
1
X
X
Determined by PD2
0
0
0
Single-phase Waveform Output
0
0
1
SR Waveform Output
0
1
0
Phase-delayed Waveform Output
page 161 of 402
13. Timer S (Input Capture / Output Compare)
7
, Input to INPC1
is always active P2
7
7
, S-R PWM mode
7
6
, Input to INPC1
is always active P2
6
6
5
, Input to INPC1
is always active P2
5
5
, S-R PWM mode
5
4
, Input to INPC1
is always active P2
4
4
3
, Input to INPC1
is always active P2
3
3
, S-R PWM mode
3
2
, Input to INPC1
is always active P2
2
2
1
, Input to INPC1
is always active P2
1
1
, S-R PWM mode
1
0
, Input to INPC1
is always active P2
0
0
Port Data
P2
7
INPC1
7 or
7
OUTC1
7
P2
7
OUTC1
7
P2
6
INPC1
6 or
6
OUTC1
6
OUTC1
6
OUTC1
6
P2
5
INPC1
5 or
5
OUTC1
5
P2
5
OUTC1
5
P2
4
INPC1
4 or
4
OUTC1
4
OUTC1
4
OUTC1
4
P2
3
INPC1
3 or
3
OUTC1
3
P2
3
OUTC1
3
P2
2
INPC1
2 or
2
OUTC1
2
OUTC1
2
OUTC1
2
P2
1
INPC1
1 or
1
OUTC1
1
P2
1
OUTC1
1
P2
0
INPC1
0 or
0
OUTC1
0
OUTC1
0
OUTC1
0

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c seriesM16c/tiny series

Table of Contents