
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (I/O Port)
I-33
Table 4.5.1 lists the I/O port control bits and their ad-
dresses.
Control of I/O port
Table 4.5.1 I/O port control bits
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
DD
),
and when 0 is written, the level goes low (V
SS
). Port data
can also be written in the input mode.
•
When reading data
When 1 is read:
High level
When 0 is read:
Low level
P00–P03
Address
Comment
Register
D3
D2
D1
D0
Name
SR
1
0
0F6H
P03
P02
P01
P00
P03
P02
P01
P00
–
–
–
–
I/O port (P00–P03)
High
High
High
High
Low
Low
Low
Low
R/W
0FCH
0
0
0
IOC
R
0
0
0
IOC
0
I/O port P00–P03 Input/Output
Output
Input
R/W
Содержание E0C6001
Страница 4: ...Hardware E0C6001 I Technical Hardware ...
Страница 79: ...Software E0C6001 II Technical Software ...