![](http://datasheet.mmic.net.cn/30000/M30280M6-XXXHP_datasheet_2358793/M30280M6-XXXHP_169.png)
M16C/28 Group
Under development Preliminary specification
Specifications in this manual are tentative and subject to change.
13. Timer S (Input Capture / Output Compare)
Rev.0.60 2004.02.01
page 151 of N
REJ09B0047-0060Z
Pin
IFE FSC
MOD1 MOD0 Port Direction
Port Data
P27/INPC17/
0
X
Determined by PD27
P27
OUTC17
1
X
Determined by PD27, Input to INPC17 is always active P27 or INPC17
1
0
Single-phase Waveform Output
OUTC17
1
0
1
Determined by PD27, S-R PWM mode
P27
1
0
1
0
Phase-delayed Waveform Output
OUTC17
P26/INPC16/
0
X
Determined by PD26
P26
OUTC16
1
X
Determined by PD26, Input to INPC16 is always active P26 or INPC16
1
0
Single-phase Waveform Output
OUTC16
1
0
1
SR Waveform Output
OUTC16
1
0
1
0
Phase-delayed Waveform Output
OUTC16
P25/INPC15/
0
X
Determined by PD25
P25
OUTC15
1
X
Determined by PD25, Input to INPC15 is always active P25 or INPC15
1
0
Single-phase Waveform Output
OUTC15
1
0
1
Determined by PD25, S-R PWM mode
P25
1
0
1
0
Phase-delayed Waveform Output
OUTC15
P24/INPC14/
0
X
Determined by PD24
P24
OUTC14
1
X
Determined by PD24, Input to INPC14 is always active P24 or INPC14
1
0
Single-phase Waveform Output
OUTC14
1
0
1
SR Waveform Output
OUTC14
1
0
1
0
Phase-delayed Waveform Output
OUTC14
P23/INPC13/
0
X
Determined by PD23
P23
OUTC13
1
X
Determined by PD23, Input to INPC13 is always active P23 or INPC13
1
0
Single-phase Waveform Output
OUTC13
1
0
1
Determined by PD23, S-R PWM mode
P23
1
0
1
0
Phase-delayed Waveform Output
OUTC13
P22/INPC12/
0
X
Determined by PD22
P22
OUTC12
1
X
Determined by PD22, Input to INPC12 is always active P22 or INPC12
1
0
Single-phase Waveform Output
OUTC12
1
0
1
SR Waveform Output
OUTC12
1
0
1
0
Phase-delayed Waveform Output
OUTC12
P21/INPC11/
0
X
Determined by PD21
P21
OUTC11
1
X
Determined by PD21, Input to INPC11 is always active P21 or INPC11
1
0
Single-phase Waveform Output
OUTC11
1
0
1
Determined by PD21, S-R PWM mode
P21
1
0
1
0
Phase-delayed Waveform Output
OUTC11
P20/INPC10/
0
X
Determined by PD20
P20
OUTC10
1
X
Determined by PD20, Input to INPC10 is always active P20 or INPC10
1
0
Single-phase Waveform Output
OUTC10
1
0
1
SR Waveform Output
OUTC10
1
0
1
0
Phase-delayed Waveform Output
OUTC10
13.6 I/O Port Function Select
The M16C/28 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
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.