Epson S1C33L03 User Manual

Page of 631
III PERIPHERAL BLOCK: SERIAL INTERFACE
B-III-8-2
EPSON
S1C33L03 FUNCTION PART
I/O Pins of Serial Interface
Table 8.1 lists the I/O pins used by the serial interface.
Table 8.1  Serial-Interface Pin Configuration
Pin name
I/O
Function
Function select bit
P00/SIN0
I/O I/O port / Serial IF Ch.0 data input
CFP00(D0)/P0 function select register(0x402D0)
P01/SOUT0
I/O I/O port / Serial IF Ch.0 data output
CFP01(D1)/P0 function select register(0x402D0)
P02/#SCLK0
I/O I/O port / Serial IF Ch.0 clock input/output
CFP02(D2)/P0 function select register(0x402D0)
P03/#SRDY0
I/O I/O port / Serial IF Ch.0 ready input/output
CFP03(D3)/P0 function select register(0x402D0)
P04/SIN1/
#DMAACK2
I/O I/O port / Serial IF Ch.1 data input
/ #DMAACK2 signal output
CFP04(D4)/P0 function select register(0x402D0)
CFEX4(D4)/Port function extension register(0x402DF)
P05/SOUT1/
#DMAEND2
I/O I/O port / Serial IF Ch.1 data output
/ #DMAEND2 signal output
CFP05(D5)/P0 function select register(0x402D0)
CFEX5(D5)/Port function extension register(0x402DF)
P06/#SCLK1/
#DMAACK3
I/O I/O port / Serial IF Ch.1 clock input/output
/ #DMAACK3 signal output
CFP06(D6)/P0 function select register(0x402D0)
CFEX6(D6)/Port function extension register(0x402DF)
P07/#SRDY1/
#DMAEND3
I/O I/O port / Serial IF Ch.1 ready input/output
/ #DMAEND3 signal output
CFP07(D7)/P0 function select register(0x402D0)
CFEX7(D7)/Port function extension register(0x402DF)
P27/TM5/SIN2
I/O I/O port / Serial IF Ch.2 data input
CFP27(D7)/Function select register(0x402D8)
SSIN2(D0)/Function select register(0x402DB)
P26/TM4/SOUT2
I/O I/O port / Serial IF Ch.2 data output
CFP26(D6)/Function select register(0x402D8)
SSOUT2(D1)/Function select register(0x402DB)
P25/TM3/#SCLK2
I/O I/O port / Serial IF Ch.2 serial clock input/output CFP25(D5)/Function select register(0x402D8)
SSCLK2(D2)/Function select register(0x402DB)
P24/TM2/#SRDY2
I/O I/O port / Serial IF Ch.2 ready input/output
CFP24(D4)/Function select register(0x402D8)
SSRDY2(D3)/Function select register(0x402DB)
P33/#DMAACK1/
SIN3
I/O I/O port / Serial IF Ch.3 data input
CFP33(D3)/Function select register(0x402DC)
SSIN3(D0)/Function select register(0x402D7)
P16/EXCL5/
#DMAAND1/
SOUT3
I/O I/O port / Serial IF Ch.3 data output
CFP16(D6)/Function select register(0x402D4)
SSOUT3(D1)/Function select register(0x402D7)
P15/EXCL4/
#DMAAND0/
#SCLK3
I/O I/O port / Serial IF Ch.3 serial clock input/output CFP15(D5)/Function select register(0x402D4)
SSCLK3(D2)/Function select register(0x402D7)
P32/#DMAACK0/
#SRDY3
I/O I/O port / Serial IF Ch.3 ready input/output
CFP32(D2)/Function select register(0x402DC)
SSRDY3(D3)/Function select register(0x402D7)
SINx (serial-data input pin)
This pin is used to input serial data to the device, regardless of the transfer mode.
SOUTx (serial-data output pin)
This pin is used to output serial data from the device, regardless of the transfer mode.
#SCLKx (clock input/output pin)
This pin is used to input or output a clock.
In the clock-synchronized slave mode, it is used as a clock input pin; in the clock-synchronized master mode,
it is used as a clock output pin.
In the asynchronous mode, this pin is used as clock input when an external clock is used. This pin is not used
when the internal clock is used, so it can be used as an I/O port.
#SRDYx (ready-signal input/output pin)
This pin is used to input or output the ready signal that is used in the clock-synchronized mode.
In the clock-synchronized slave mode, it is used as a ready-signal output pin; in the clock-synchronized
master mode, it is used as a ready-signal input pin.
This pin is not used in the asynchronous mode, so it can be used as an I/O port.
Method for setting the serial-interface input/output pins
All of the pins used in the serial interface are shared with I/O ports. At cold start, they are all set for I/O port
pins P0x (function select bit Pxx, CFPxx = "0"). When using the serial interface, make function select bit
settings for the pins used, according to the channel and transfer mode to be used.
At hot start, the pins retain their status from prior to the reset.