48
EPSON
S1C63358 TECHNICAL MANUAL
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (I/O Ports)
4.7 I/O Ports (P00–P03, P10–P13, P20–P23, P30–P33 and P40–P43)
4.7.1 Configuration of I/O ports
The S1C63358 has 20 bits general-purpose I/O ports. Figure 4.7.1.1 shows the configuration of the I/O
port.
Address
Data
register
Data bus
P
Address
Address
Address
I/O control
register (IOC)
Pull-up control
register (PUL)
Mask option
V
DD
Fig. 4.7.1.1 Configuration of I/O port
The P10–P13 I/O port terminals are shared with the serial interface input/output terminals and this
function is selected by the software. The P40–P43 I/O port terminals are shared with the A/D converter
input terminals and this function is also selected by the software.
At initial reset, these are all set to the I/O port.
Table 4.7.1.1 shows the setting of the input/output terminals by function selection.
Table 4.7.1.1 Function setting of input/output terminals
Terminal
name
P00–P03
P10
P11
P12
P13
P20–P23
P30–P33
P40
P41
P42
P43
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–P23 (Input & pull-up
∗
)
P30–P33 (Input & pull-up
∗
)
P40 (Input & Pull-up
∗
)
P41 (Input & Pull-up
∗
)
P42 (Input & Pull-up
∗
)
P43 (Input & Pull-up
∗
)
Serial I/F
Master
Slave
P00–P03 P00–P03
SIN(I)
SIN(I)
SOUT(O) SOUT(O)
SCLK(O) SCLK(I)
P13
SRDY(O)
P20–P23 P20–P23
P30–P33 P30–P33
A/D
converter
P00–P03
P20–P23
P30–P33
AD0(I)
AD1(I)
AD2(I)
AD3(I)
∗
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 (in 1-bit
unit). Modes can be set by writing data to the I/O control registers.
Refer to Section 4.12, "Serial Interface", for control of the serial interface.
Refer to Section 4.10, "A/D Converter", for control of the A/D converter.
Содержание S1C63358
Страница 1: ...Technical Manual CMOS 4 BIT SINGLE CHIP MICROCOMPUTER S1C63358 Technical Hardware S1C63358 MF1022 04 ...
Страница 4: ......
Страница 6: ......