Port A
MC68HC908JL3E Family Data Sheet, Rev. 4
Freescale Semiconductor
107
10.2.3 Port A Input Pull-up Enable Register (PTAPUE)
The port A input pull-up enable register (PTAPUE) contains a software configurable pull-up device for
each of the seven port A pins. Each bit is individually configurable and requires the corresponding data
direction register, DDRAx be configured as input. Each pull-up device is automatically and dynamically
disabled when its corresponding DDRAx bit is configured as output.
PTA6EN — Enable PTA6 on OSC2
This read/write bit configures the OSC2 pin function when RC oscillator option is selected. This bit has
no effect for X-tal oscillator option.
1 = OSC2 pin configured for PTA6 I/O, and has all the interrupt and pull-up functions
0 = OSC2 pin outputs the RC oscillator clock (RCCLK)
PTAPUE[6:0] — Port A Input Pull-up Enable Bits
These read/write bits are software programmable to enable pull-up devices on port A pins
1 = Corresponding port A pin configured to have internal pull-up if its DDRA bit is set to 0
0 = Pull-up device is disconnected on the corresponding port A pin regardless of the state of its
DDRA bit
Table 10-2
summarizes the operation of the port A pins.
Address:
$000D
Bit 7
6
5
4
3
2
1
Bit 0
Read:
PTA6EN
PTAPUE6
PTAPUE5
PTAPUE4
PTAPUE3
PTAPUE2
PTAPUE1
PTAPUE0
Write:
Reset:
0
0
0
0
0
0
0
0
Figure 10-5. Port A Input Pull-up Enable Register (PTAPUE)
Table 10-2. Port A Pin Functions
PTAPUE Bit
DDRA
Bit
PTA Bit
I/O Pin Mode
Accesses to DDRA
Accesses to PTA
Read/Write
Read
Write
1
0
X
(1)
1. X = Don’t care.
2. I/O pin pulled to V
DD
by internal pull-up.
3. Writing affects data register, but does not affect input.
4. Hi-Z = High Impedance.
Input, V
DD(2)
DDRA[6:0]
Pin
PTA[6:0]
(3)
0
0
X
Input, Hi-Z
(4)
DDRA[6:0]
Pin
PTA[6:0]
(3)
X
1
X
Output
DDRA[6:0]
PTA[6:0]
PTA[6:0]