10 I/O PORTS (P)
10-2
EPSON
S1C17704 TECHNICAL MANUAL
10.2 Selecting I/O Pin Functions (Port MUX)
The I/O port pins, except for some I/O ports, are shared with internal peripheral modules. Whether they are used as
I/O ports or for peripheral modules can be selected using the port function select bit corresponding to each I/O port.
All pins not used for peripheral modules can be used as general-purpose I/O ports.
Table 10.2.1 Selecting I/O Pin Functions
Pin function 1
P
xx
MUX = 0
Pin function 2
P
xx
MUX = 1
Port function
select bit
Control register
P00
–
–
–
P01
–
–
–
P02
–
–
–
P03
–
–
–
P04
REMI (REMC)
P04MUX (D4) P0 Port Function Select (P0_PMUX) Register (0x52a0)
P05
REMO (REMC)
P05MUX (D5)
P06/EXCL2
(T16CH2) –
–
–
P07/EXCL1
(T16CH1) –
–
–
P10
–
–
–
P11
–
–
–
P12
–
–
–
P13
FOUT1 (OSC)
P13MUX (D3) P1 Port Function Select (P1_PMUX) Register (0x52a1)
P14
SDA (I2C)
P14MUX (D4)
P15
SCL (I2C)
P15MUX (D5)
P16/EXCL0
(T16CH0) –
–
–
P17
#SPISS (SPI)
P17MUX (D7) P1 Port Function Select (P1_PMUX) Register (0x52a1)
P20
SDI (SPI)
P20MUX (D0) P2 Port Function Select (P2_PMUX) Register (0x52a2)
P21
SDO (SPI)
P21MUX (D1)
P22
SPICLK (SPI)
P22MUX (D2)
P23
SIN (UART)
P23MUX (D3)
P24
SOUT (UART)
P24MUX (D4)
P25
SCLK (UART)
P25MUX (D5)
P26
TOUT (T16E)
P26MUX (D6)
P27
EXCL3 (T16E)
P27MUX (D7)
P30
FOUT3 (OSC)
P30MUX (D0) P3 Port Function Select (P3_PMUX) Register (0x52a3)
DCLK
(DBG)
P31
P31MUX (D1)
DST2
(DBG)
P32
P32MUX (D2)
DSIO
(DBG)
P33
P33MUX (D3)
At initial reset, each I/O port pin (P
xx
) is initialized for the default function (“Pin function 1” in Table 10.2.1).
The P06, P07, and P16 pins can be used as the external clock input pins for the 16-bit timer by setting the ports in
input mode. However, general-purpose I/O function is also effective in this case, so no port function select bit is
provided.
For the pin function other than the I/O port, see the descriptions for the peripheral module indicated in ( ).
The subsequent sections explain the port functions assuming that the pin has been set for the general-purpose I/O
port.
Summary of Contents for S1C17704
Page 1: ...TECHNICAL MANUAL S1C17704 CMOS 16 BIT SINGLE CHIP MICROCOMPUTER ...
Page 22: ...1 OVERVIEW 1 10 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 42: ...3 MEMORY MAP BUS CONTROL 3 12 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 82: ...6 INTERRUPT CONTROLLER ITC 6 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 108: ...8 CLOCK GENERATOR CLG 8 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 112: ...9 PRESCALER PSC 9 4 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 138: ...10 I O PORTS P 10 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 156: ...11 16 BIT TIMERS T16 11 18 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 208: ...14 8 BIT OSC1 TIMER T8OSC1 14 16 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 234: ...16 STOPWATCH TIMER SWT 16 14 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 242: ...17 WATCHDOG TIMER WDT 17 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 264: ...18 UART 18 22 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 300: ...20 I2C 20 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 320: ...21 REMOTE CONTROLLER REMC 21 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 360: ...24 ON CHIP DEBUGGER DBG 24 6 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 362: ...25 BASIC EXTERNAL WIRING DIAGRAM 25 2 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...