Download GPL162002A/162003A Programming Guide

Transcript
GPL162002A/162003A Programming Guide
Bit
Function Type
[15:0]
IOCDIR
R/W
Description
Condition
This control register sets the direction of I/O
Refer to the above table,
PortC.
I/O port configuration and
In addition, the direction setup
value can be read back from the same
function.
control register.
P_IOC_Attrib
Bit
0x7873
15
14
13
12
IOC Attribution Register
11
10
9
Function
Default
Bit
0
0
0
0
0
7
6
5
4
3
2
0
0
0
0
0
1
0
0
0
0
IOCATT
R/W
0
y
l
n
O
0
l
a
i e
t
n s
e
U
d
i
f
n 司
o
C 公
s
限
u 有
l
p 份
l
a
r
e 股
n
e 技
G 科
格
普
Function Type
[15:0]
8
IOCATT
0
Description
Condition
This control register defines the attribution
Refer to the above table, I/O
of I/O PortC. In addition, the attribution
port
setup value can be read back from the
function.
configuration
and
same control register.
P_IOD_Data
Bit
0x7878
15
14
13
12
IOD Data Register
11
10
9
Function
Default
Bit
8
7
6
5
4
3
2
1
0
0
0
0
0
0
0
0
IODDATA
0
0
0
0
0
0
Function Type
[15:0] IODDATA R/W
0
0
0
Description
Condition
Executing the writing operation in this register will
Refer to the above
latch setup value into I/O PortD data register.
table,
Similarly, executing the read operation in this
configuration and
register will read the status from I/O PortD
function.
I/O
port
external pads.
P_IOD_Buffer
Bit
r
o
F
Function
Default
15
0x7879
14
13
12
IOD Buffer Register
11
10
9
8
7
6
5
4
3
2
1
0
0
0
0
0
0
0
0
IODBUF
0
0
0
0
0
0
0
0
0
Bit
Function
Type
Description
[15:0]
IODBUF
R/W
Executing the read operation in this register
will read the setup value from I/O PortD data
register, which is previously latched by
Condition
IODBUF(R)
=IODDATA(W)
=IODBUF(W)
IODDATA writing operation.
© Generalplus Technology Inc.
PAGE 52
V1.0 – Dec. 20, 2006