beautypg.com

1 configuration of i/o ports, Data bus p – Epson S1C63558 User Manual

Page 51

background image

S1C63558 TECHNICAL MANUAL

EPSON

41

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.

Address

Data

register

Data bus

P

XX

Address

Address

Address

I/O control

register (IOC)

Pull-up control

register (PUL)

Mask option

V

DD

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

name

P00–P03

P10
P11
P12
P13
P20
P21
P22
P23
P30
P31
P32
P33

Special output

Serial I/F (1), (2)

Terminal status

at initial reset

P00–P03 (Input & Pull-up *)
P10 (Input & Pull-up *)
P11 (Input & Pull-up *)
P12 (Input & Pull-up *)
P13 (Input & Pull-up *)
P20 (Input & Pull-up *)
P21 (Input & Pull-up *)
P22 (Input & Pull-up *)
P23 (Input & Pull-up *)
P30 (Input & Pull-up *)
P31 (Input & Pull-up *)
P32 (Input & Pull-up *)
P33 (Input & Pull-up *)

CL

P00–P03

P10
P11
P12
P13
P20
P21

CL

P23
P30
P31
P32
P33

Clk-sync. Master

P00–P03

SIN(I)

SOUT(O)

SCLK(O)

P13
P20
P21
P22
P23

SIN(I)

SOUT(O)

SCLK(O)

P33

Clk-sync. Slave

P00–P03

SIN(I)

SOUT(O)

SCLK(I)

SRDY(O)

P20
P21
P22
P23

SIN(I)

SOUT(O)

SCLK(I)

SRDY(O)

FR

P00–P03

P10
P11
P12
P13
P20
P21
P22

FR

P30
P31
P32
P33

Async.

P00–P03

SIN(I)

SOUT(O)

P12
P13
P20
P21
P22
P23

SIN(I)

SOUT(O)

P32
P33

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 indi-
vidually (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.