O Ports (P Ports); Configuration Of I/O Ports - Epson S1C88655 Technical Manual

Cmos 8-bit single chip microcomputer
Table of Contents

Advertisement

10 I/O PORTS
10 I/O PORTS (P PORTS)

10.1 Configuration of I/O Ports

The S1C88655 is equipped with 24 bits of I/O ports
(P00–P07, P10–P17, P20–P27).
Figure 10.1.1 shows the structure of an I/O port.
Pull-up control
register
I/O control
register
Data
register
*1
Input
*2
control
*1:
During output mode
*3
*2:
During input mode
*3:
Schmitt input can be selected for P10–P17
and P20–P27 by mask option.
Fig. 10.1.1 Structure of I/O port
An I/O control register is provided for each I/O
port to set the port into input or output mode.
The I/O port terminals are shared with other
functions shown below and are software
configurable.
Table 10.1.1 Terminal shared function
Port
Shared functions
P00
Data bus (D0)
P01
Data bus (D1)
P02
Data bus (D2)
P03
Data bus (D3)
P04
Data bus (D4)
P05
Data bus (D5)
P06
Data bus (D6)
P07
Data bus (D7)
P10
Serial I/F 0 data input (SIN0)
P11
Serial I/F 0 data output (SOUT0)
P12
Serial I/F 0 clock input/output (SCLK0)
P13
Serial I/F 0 ready signal output (SRDY0)
P14
Serial I/F 1 data input (SIN1)
P15
Serial I/F 1 data output (SOUT1)
P16
Serial I/F 1 clock input/output (SCLK1)
P17
Serial I/F 1 ready signal output (SRDY1)
P20
PTM 0/1 output (TOUT0/TOUT1)
P21
PTM 2/3 output (TOUT2/TOUT3)
P22
Clock output (FOUT)
P23
PTM 2/3 inverted output (TOUT2/TOUT3)
P24
1) Bus release request signal input (BREQ)
2) PTM 0 external clock input (EXCL0)
P25
1) Bus release ACK signal output (BACK)
2) PTM 1 external clock input (EXCL1)
P26
1) LCD clock output (CL)
2) PTM 2 external clock input (EXCL2)
P27
1) LCD frame signal output (FR)
2) PTM 3 external clock input (EXCL3)
64
P00–P07: D0–D7
The P00–P07 terminals are shared with the data
bus D0–D7. When the bus mode is set to
expansion mode, they function as the data bus
terminals and cannot be used for general-
purpose inputs/outputs. In single chip mode,
V
DD
they can be used as the P00–P07 I/O ports. See
Chapter 6, "System Controller and Bus Control",
for the bus mode and the data bus.
When these terminals are used as the data bus,
Mask
the data registers and I/O control registers of
option
the I/O ports can be used as general-purpose
Pxx
registers that do not affect the terminal status.
The pull-up control registers are effective for the
data bus.
P10–P13: SIN0, SOUT0, SCLK0, SRDY0
V
SS
P14–P17: SIN1, SOUT1, SCLK1, SRDY1
The P10–P13 and P14–P17 terminals are shared
with the inputs/outputs of the serial interface.
Some terminals may be used as the I/O ports
depending on the transfer mode to be set even if
the serial interface is used. See Chapter 11,
"Serial Interface", for details.
The data registers and I/O control registers of
the ports used for serial input/output can be
used as general-purpose registers that do not
affect the terminal status. The pull-up control
registers are effective for the input terminals.
P20: TOUT0/TOUT1
I/O
P21: TOUT2/TOUT3
___________ ___________
I/O
P23: TOUT2/TOUT3
I/O
The P20, P21, and P23 terminals are shared with
I/O
the programmable timer (PWM) outputs. See
I/O
Section 13.6, "Setting TOUT Outputs", for
I/O
details.
I/O
When using the terminal for a timer output, set
I/O
the port to output mode and set the output level
I
when the timer output is disabled to the data
O
I or O
register.
O
The data register, I/O control register, and pull-
I
up control register of the port while the timer
O
output is enabled do not affect the terminal
I or O
status.
O
O
P22: FOUT
O
The P22 terminal is shared with the clock
O
output. See Section 8.6, "Clock Output (FOUT)",
O
for the clock output function.
I
When using the terminal for the clock output,
I
set the P22 port to output mode and set the
O
output level when the clock output is disabled
I
to the data register.
O
The data register, I/O control register, and pull-
I
up control register of the port while the clock
O
output is enabled do not affect the terminal
I
status.
EPSON
___________ ___________
___________ ___________
S1C88655 TECHNICAL MANUAL

Advertisement

Table of Contents
loading

Table of Contents