Input/Output Port Pin Function Selection (Port Mux) - Epson S1C17001 Technical Manual

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

10 INPUT/OUTPUT PORT (P)
10.2 Input/Output Pin Function Selection (Port MUX)
The input/output port pins share peripheral module input/output pins (with certain exceptions). Each pin can be set
for use as an input/output port or for peripheral modules via the corresponding port function selection bits for each
port. Pins not used for peripheral modules can be used as general purpose input/output ports.
Pin function 1
PxxMUX = 0
P00
P01
P02
P03
P04
REMI (REMC)
P05
REMO (REMC)
P06/EXCL2 (T16CH2) –
P07/EXCL1 (T16CH1) –
P10
P11
P12
P13
FOUT1 (OSC)
P14
SDA (I2C)
P15
SCL (I2C)
P16/EXCL0 (T16CH0) –
P17
#SPISS (SPI)
P20
SDI (SPI)
P21
SDO (SPI)
P22
SPICLK (SPI)
P23
SIN (UART)
P24
SOUT (UART)
P25
SCLK (UART)
P26
TOUT (T16E)
P27
EXCL3 (T16E)
P30
FOUT3 (OSC)
DCLK (DBG)
P31
DST2 (DBG)
P32
DSIO (DBG)
P33
Resetting the input/output port pins (Pxx) resets them to their default functions (pin function 1 in Table 10.2.1).
Pins P06, P07, and P16 can also be used as 16-bit timer external clock input pins by setting them to input mode.
Note, however, that no port function selection bits are available, since they are simultaneously set to function as
general purpose input ports.
For information on functions other than the input/output ports, refer to the discussion of the peripheral modules in-
dicated in parentheses. The sections below discuss port functions with the pins set as general purpose input/output
ports.
84
Table 10.2.1: Input/output pin function selection
Pin function 2
Port function
PxxMUX = 1
selection bit
P04MUX (D4) P0 Port Function Select (P0_PMUX) Register (0x52a0)
P05MUX (D5)
P13MUX (D3) P1 Port Function Select (P1_PMUX) Register (0x52a1)
P14MUX (D4)
P15MUX (D5)
P17MUX (D7) P1 Port Function Select (P1_PMUX) Register (0x52a1)
P20MUX (D0) P2 Port Function Select (P2_PMUX) Register (0x52a2)
P21MUX (D1)
P22MUX (D2)
P23MUX (D3)
P24MUX (D4)
P25MUX (D5)
P26MUX (D6)
P27MUX (D7)
P30MUX (D0) P3 Port Function Select (P3_PMUX) Register (0x52a3)
P31MUX (D1)
P32MUX (D2)
P33MUX (D3)
EPSON
Control register
S1C17001 TECHNICAL MANUAL

Advertisement

Table of Contents
loading

Table of Contents