Control Of I/O Port - Epson E0C6001 Technical Manual

Cmos 4-bit single chip microcomputer
Table of Contents

Advertisement

Control of I/O port

Table 4.5.1 I/O port control bits
Address
D3
P03
0F6H
0
0FCH
P00–P03
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (I/O Port)
Table 4.5.1 lists the I/O port control bits and their ad-
dresses.
Register
D2
D1
D0
Name
P02
P01
P00
P03
P02
R/W
P01
P00
0
0
IOC
0
0
R
R/W
0
IOC
I/O port data (0F6H)
I/O port data can be read and output data can be written
through the port.
• When writing data
When 1 is written: High level
When 0 is written: Low level
When an I/O port is set to the output mode, the written
data is output from the I/O port pin unchanged. When 1
is written as the port data, the port pin goes high (V
and when 0 is written, the level goes low (V
can also be written in the input mode.
• When reading data
When 1 is read:
When 0 is read:
SR
1
0
High
Low
High
Low
I/O port (P00–P03)
High
Low
High
Low
0
Output
Input
I/O port P00–P03 Input/Output
High level
Low level
Comment
),
DD
). Port data
SS
I-33

Advertisement

Table of Contents
loading

Table of Contents