19 SPI
234
EPSON
S1C17001 TECHNICAL MANUAL
19.2 SPI Input/Output Pins
Table 19.2.1 lists the SPI pins.
Table 19.2.1: SPI pin list
Pin name
I/O
Qty
Function
SDI (P20)
I
1
SPI data input pin
Inputs serial data from SPI bus.
SDO (P21)
O
1
SPI data output pin
Outputs serial data to SPI bus.
SPICLK (P22)
I/O
1
SPI external clock input/output pin
Outputs SPI clock when SPI is in Master mode.
Inputs external clock when SPI is used in Slave mode.
#SPISS (P17)
I
1
SPI slave selection signal (active Low) input pin
SPI (Slave mode) is selected as slave device by Low input to this pin.
The SPI input/output pins (SDI, SDO, SPICLK, #SPISS) are shared with general purpose input/output port pins (P20,
P21, P22, P17) and are initially set as general purpose input/output port pins. The function must be switched using
the P2_PMUX and P1_PMUX register settings to use general purpose input/output port pins as SPI input/output
pins. Switch the pins to SPI mode by setting the following control bits to 1.
P20
→
SDI
∗
P20MUX
: P20 Port Function Select Bit in the P2 Port Function Select (P2_PMUX) Register (D0/0x52a2)
P21
→
SDO
∗
P21MUX
: P21 Port Function Select Bit in the P2 Port Function Select (P2_PMUX) Register (D1/0x52a2)
P22
→
SPICLK
∗
P22MUX
: P22 Port Function Select Bit in the P2 Port Function Select (P2_PMUX) Register (D2/0x52a2)
P17
→
#SPISS
∗
P17MUX
: P17 Port Function Select Bit in the P1 Port Function Select (P1_PMUX) Register (D7/0x52a1)
For detailed information on pin function switching, refer to “10.2 Input/Output Pin Function Selection (Port
MUX).”
Summary of Contents for S1C17001
Page 1: ...Technical Manual S1C17001 CMOS 16 BIT SINGLE CHIP MICROCONTROLLER ...
Page 33: ...4 POWER SUPPLY VOLTAGE 24 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 63: ...6 INITERRUPT CONTROLLER 54 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 87: ...8 CLOCK GENERATOR CLG 78 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 91: ...9 PRESCALER PSC 82 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 133: ...11 16 BIT TIMER T16 124 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 211: ...16 STOPWATCH TIMER SWT 202 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 219: ...17 WATCHDOG TIMER WDT 210 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 241: ...18 UART 232 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 277: ...20 I2 C 268 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 313: ...25 PACKAGE 304 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...