|
MC68HC908KX8 Datasheet, PDF (153/310 Pages) Motorola, Inc – Microcontrollers | |||
|
◁ |
Input/Output (I/O) Ports
Port A
READ DDRA ($0004)
WRITE DDRA ($0004)
RESET
DDRAx
WRITE PTA ($0000)
PTAPUEx
READ PTA ($0000)
PTAx
VDD
INTERNAL
PULLUP
DEVICE
PTAx
Figure 10-4. Port A I/O Circuit
When bit DDRAx is a logic 1, reading address $0000 reads the PTAx
data latch. When bit DDRAx is a logic 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. Table 10-1 summarizes
the operation of the port A pins.
Table 10-1. Port A Pin Functions
PTAPUE
Bit
DDRA PTA
Bit
Bit
I/O Pin
Mode
1
0
X
Input, VDD(1)
0
0
X
Input, Hi-Z
X
1
X
Output
X = Donât care
Hi-Z = High impedance
1. I/O pin pulled up to VDD by internal pulllup device
2. Writing affects data register, but does not affect input.
Accesses
to DDRA
Read/Write
DDRA4âDDRA0
DDRA4âDDRA0
DDRA4âDDRA0
Accesses to PTA
Read
Pin
Pin
PTA4âPTA0
Write
PTA4âPTA0(2)
PTA4âPTA0(3)
PTA4âPTA0
MC68HC908KX8 ⢠MC68HC908KX2 ⢠MC68HC08KX8 â Rev. 1.0
MOTOROLA
Input/Output (I/O) Ports
Technical Data
153
|
▷ |