MC68HC908GT16_07 FREESCALE [Freescale Semiconductor, Inc], MC68HC908GT16_07 Datasheet - Page 127

no-image

MC68HC908GT16_07

Manufacturer Part Number
MC68HC908GT16_07
Description
Microcontrollers
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
Figure 12-4
When bit DDRAx is a 1, reading address $0000 reads the PTAx data latch. When bit DDRAx is a 0,
reading address $0000 reads the voltage level on the pin. The data latch can always be written,
regardless of the state of its data direction bit.
12.2.3 Port A Input Pullup Enable Register
The port A input pullup enable register (PTAPUE) contains a software configurable pullup device for each
of the eight port A pins. Each bit is individually configurable and requires that the data direction register,
DDRA, bit be configured as an input. Each pullup is automatically and dynamically disabled when a port
bit’s DDRA is configured for output mode
Freescale Semiconductor
1. X = Don’t care
2. I/O pin pulled up to V
3. Writing affects data register, but does not affect input.
4. Hi-Z = High impedance
PTAPUE
Bit
X
1
0
shows the port A I/O logic.
Address:
DDRA
Reset:
Read:
Write:
Bit
0
0
1
MC68HC908GT16 • MC68HC908GT8 • MC68HC08GT16 Data Sheet, Rev. 5.0
Figure 12-5. Port A Input Pullup Enable Register (PTAPUE)
DD
READ DDRA ($0004)
WRITE DDRA ($0004)
WRITE PTA ($0000)
READ PTA ($0000)
PTAPUE7
$0004
by internal pullup device
Bit 7
0
PTA
X
Bit
X
X
(1)
PTAPUE6
6
0
Input, Hi-Z
Input, V
Table 12-2. Port A Pin Functions
RESET
Figure 12-4. Port A I/O Circuit
I/O Pin
Output
Mode
PTAPUE5
DD
5
0
(2)
(4)
Table 12-2
PTAPUE4
DDRAx
Accesses to DDRA
PTAx
4
0
DDRA7–DDRA0
DDRA7–DDRA0
DDRA7–DDRA0
.
Read/Write
PTAPUE3
summarizes the operation of the port A pins.
3
0
PTAPUE2
2
0
PTAPUEx
PTA7–PTA0
Read
PTAPUE1
Pin
Pin
1
0
Accesses to PTA
V
DD
45 k
PTAPUE0
Bit 0
PTAx
0
PTA7–PTA0
PTA7–PTA0
PTA7–PTA0
Write
Port A
(3)
(3)
127

Related parts for MC68HC908GT16_07