Download Microcontrollers 8-Bit Single-Chip Microcontroller

Transcript
XC864
Parallel Ports
P0_PUDEN
Port 0 Pull-Up/Pull-Down Enable Register
7
6
Reset Value: 04H
5
4
3
2
1
0
0
P5
P4
P3
P2
P1
P0
r
rw
rw
rw
rw
rw
rw
Field
Bits
Type Description
Pn
(n = 0 – 5)
n
rw
Pull-Up/Pull-Down Enable at Port 0 Bit n
0
Pull-up or Pull-down device is disabled.
1
Pull-up or Pull-down device is enabled (default).
0
[7:6]
r
Reserved
Returns 0 if read; should be written with 0.
P0_ALTSELn (n = 0 – 1)
Port 0 Alternate Select Register
7
6
Reset Value: 00H
5
4
3
2
1
0
0
P5
P4
P3
P2
P1
P0
r
rw
rw
rw
rw
rw
rw
Field
Bits
Type Description
Pn
(n = 0 - 5)
n
rw
Pin Output Functions
Configuration of Px_ALTSEL0.Pn and
Px_ALTSEL1.Pn for GPIO or alternate settings:
00
Normal GPIO
10
Alternate Select 1
01
Alternate Select 2
11
Alternate Select 3
0
[7:6]
r
Reserved
Returns 0 if read; should be written with 0.
User’s Manual
Parallel Ports, V 1.0
6-18
V1.0, 2008-06