MC68HC908KX2 MOTOROLA [Motorola, Inc], MC68HC908KX2 Datasheet - Page 157

no-image

MC68HC908KX2

Manufacturer Part Number
MC68HC908KX2
Description
Microcontrollers
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
MC68HC908KX8 • MC68HC908KX2 • MC68HC08KX8 — Rev. 1.0
MOTOROLA
Figure 10-8
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.
the operation of the port B pins.
DDRB
1. Writing affects data register, but does not affect input.
X = Don’t care
Hi-Z = High impedance
Bit
0
1
READ DDRB ($0005)
WRITE DDRB ($0005)
WRITE PTB ($0001)
READ PTB ($0001)
PTB
Bit
X
X
shows the port B I/O logic.
Input/Output (I/O) Ports
Input, Hi-Z
I/O Pin
Output
Mode
Table 10-2. Port B Pin Functions
Figure 10-8. Port B I/O Circuit
RESET
DDRB7–DDRB0
DDRB7–DDRB0
Read/Write
Accesses
to DDRB
DDRBx
PTBx
PTB7–PTB0
Table 10-2
Read
Pin
Accesses to PTB
Input/Output (I/O) Ports
PTB7–PTB0
summarizes
PTB7–PTB0
Technical Data
Write
Port B
PTBx
(1)
157

Related parts for MC68HC908KX2