English
Language : 

MC68HC908GP20 Datasheet, PDF (231/406 Pages) Freescale Semiconductor, Inc – M68HC08 Microcontrollers
When bit DDRBx is a logic 1, reading address $0001 reads the PTBx
data latch. When bit DDRBx is a logic 0, reading address $0001 reads
the voltage level on the pin. The data latch can always be written,
regardless of the state of its data direction bit. Table 16-3 summarizes
the operation of the port B pins.
Table 16-3. Port B Pin Functions
DDRB Bit PTB Bit
I/O Pin Mode
0
X(1)
Input, Hi-Z(2)
Accesses
to DDRB
Read/Write
DDRB7–DDRB0
1
X
Output
DDRB7–DDRB0
Notes:
1. X = Don’t care
2. Hi-Z = High impedance
3. Writing affects data register, but does not affect input.
Accesses to PTB
Read
Pin
PTB7–PTB0
Write
PTB7–PTB0(3)
PTB7–PTB0
MC68HC908GP20 — Rev 2.1
Freescale Semiconductor
Advance Information
231