CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (I/O Ports)

4.6 I/O Ports (P00–P03, P10–P13, P20–P23 and P30–P33)

4.6.1 Configuration of I/O ports

The S1C63558 has 16 bits general-purpose I/O ports. Figure 4.6.1.1 shows the configuration of the I/O port.

Pull-up control

Address register (PUL)

VDD

Data bus

Address

 

Data

PXX

Address

register

 

I/O control

Address register (IOC)

Mask option

Fig. 4.6.1.1 Configuration of I/O port

The I/O port terminals P10– P13, P30–P33 are shared with the input/output terminals of the serial interface (1) and (2). The P22 and P23 terminals are shared with the special output (CL, FR) terminals. The software can select these functions to be used.

At initial reset, these are all set to the I/O port.

Table 4.6.1.1 shows the setting of the input/output terminals by function selection.

 

Table 4.6.1.1

Function setting of input/output terminals

 

 

 

 

 

Terminal

Terminal status

Special output

 

Serial I/F (1), (2)

name

at initial reset

CL

FR

Async.

Clk-sync. Master

Clk-sync. Slave

P00–P03

P00–P03 (Input & Pull-up *)

P00–P03

P00–P03

P00–P03

 

P00–P03

 

P00–P03

P10

P10 (Input & Pull-up *)

P10

P10

SIN(I)

 

SIN(I)

 

 

SIN(I)

P11

P11 (Input & Pull-up *)

P11

P11

SOUT(O)

SOUT(O)

SOUT(O)

P12

P12 (Input & Pull-up *)

P12

P12

P12

 

 

 

 

 

 

 

 

SCLK(O)

SCLK(I)

P13

P13 (Input & Pull-up *)

P13

P13

P13

 

P13

 

 

 

 

SRDY(O)

P20

P20 (Input & Pull-up *)

P20

P20

P20

 

P20

 

 

P20

P21

P21 (Input & Pull-up *)

P21

P21

P21

 

P21

 

 

P21

P22

P22 (Input & Pull-up *)

CL

P22

P22

 

P22

 

 

P22

P23

P23 (Input & Pull-up *)

P23

FR

P23

 

P23

 

 

P23

P30

P30 (Input & Pull-up *)

P30

P30

SIN(I)

 

SIN(I)

 

 

SIN(I)

P31

P31 (Input & Pull-up *)

P31

P31

SOUT(O)

SOUT(O)

SOUT(O)

P32

P32 (Input & Pull-up *)

P32

P32

P32

 

 

 

 

 

 

 

SCLK(O)

 

SCLK(I)

P33

P33 (Input & Pull-up *)

P33

P33

P33

 

P33

 

 

 

 

SRDY(O)

When "with pull-up resistor" is selected by the mask option (high impedance when "gate direct" is set)

When these ports are used as I/O ports, the ports can be set to either input mode or output mode individually (in 1-bit unit). Modes can be set by writing data to the I/O control registers.

Refer to Section 4.11, "Serial Interface", for control of the serial interface.

S1C63558 TECHNICAL MANUAL

EPSON

41