S1C63358 TECHNICAL MANUAL
EPSON
51
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (I/O Ports)
Table 4.7.5.1(b) Control bits of I/O ports (2)
D3
D2
D1
D0
Name
Init
∗
1
1
0
Address
Comment
Register
FF4DH
PUL33
PUL32
PUL31
PUL30
R/W
PUL33
PUL32
PUL31
PUL30
1
1
1
1
On
On
On
On
Off
Off
Off
Off
P30–P33 pull-up control register
FF4EH
P33
P32
P31
P30
R/W
P33
P32
P31
P30
–
∗
2
–
∗
2
–
∗
2
–
∗
2
High
High
High
High
Low
Low
Low
Low
P30–P33 I/O port data
FF50H
IOC43
IOC42
IOC41
IOC40
R/W
IOC43
IOC42
IOC41
IOC40
0
0
0
0
Output
Output
Output
Output
Input
Input
Input
Input
P43 I/O control register (PAD3=0)
functions as a general-purpose register when A/D is enabled
P42 I/O control register (PAD2=0)
functions as a general-purpose register when A/D is enabled
P41 I/O control register (PAD1=0)
functions as a general-purpose register when A/D is enabled
P40 I/O control register (PAD0=0)
functions as a general-purpose register when A/D is enabled
FF51H
PUL43
PUL42
PUL41
PUL40
R/W
PUL43
PUL42
PUL41
PUL40
1
1
1
1
On
On
On
On
Off
Off
Off
Off
P43 pull-up control register (PAD3=0)
functions as a general-purpose register when A/D is enabled
P42 pull-up control register (PAD2=0)
functions as a general-purpose register when A/D is enabled
P41 pull-up control register (PAD1=0)
functions as a general-purpose register when A/D is enabled
P40 pull-up control register (PAD0=0)
functions as a general-purpose register when A/D is enabled
FF52H
P43
P42
P41
P40
R/W
P43
P42
P41
P40
–
∗
2
–
∗
2
–
∗
2
–
∗
2
High
High
High
High
Low
Low
Low
Low
P43 I/O port data (PAD3=0)
functions as a general-purpose register when A/D is enabled
P42 I/O port data (PAD2=0)
functions as a general-purpose register when A/D is enabled
P41 I/O port data (PAD1=0)
functions as a general-purpose register when A/D is enabled
P40 I/O port data (PAD0=0)
functions as a general-purpose register when A/D is enabled
PAD3
PAD2
PAD1
PAD0
0
0
0
0
Enable
Enable
Enable
Enable
Disable
Disable
Disable
Disable
R/W
FFD1H
PAD3
PAD2
PAD1
PAD0
P43 input channel enable/disable control
P42 input channel enable/disable control
P41 input channel enable/disable control
P40 input channel enable/disable control
FF70H
0
ESOUT SCTRG
ESIF
R
R/W
0
∗
3
ESOUT
SCTRG
ESIF
–
∗
2
0
0
0
Enable
Trigger
Run
SIF
Disable
Invalid
Stop
I/O
Unused
SOUT enable/disable control
Serial I/F clock trigger (writing)
Serial I/F clock status (reading)
Serial I/F enable (P1 port function selection)
*1 Initial value at initial reset
*2 Not set in the circuit
*3 Constantly "0" when being read
ESIF: Serial interface enable register (FF70H•D0)
Selects function for P10–P13.
When "1" is written: Serial interface input/output port
When "0" is written: I/O port
Reading: Valid
When using the serial interface, write "1" to this register and when P10–P13 are used as the I/O port,
write "0". The configuration of the terminals within P10–P13 that are used for the serial interface is
decided by the mode selected with the SCS1 and SCS0 registers (see Section 4.12).
In the slave mode, all the P10–P13 ports are set to the serial interface input/output port. In the master
mode, P10–P12 are set to the serial interface input/output port and P13 can be used as the I/O port.
At initial reset, this register is set to "0".
Содержание S1C63358
Страница 1: ...Technical Manual CMOS 4 BIT SINGLE CHIP MICROCOMPUTER S1C63358 Technical Hardware S1C63358 MF1022 04 ...
Страница 4: ......
Страница 6: ......