|
MC68HC908GT16 Datasheet, PDF (235/412 Pages) Motorola, Inc – Microcontrollers | |||
|
◁ |
Input/Output (I/O) Ports
Port B
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 PTB
Bit Bit
I/O Pin
Mode
Accesses
to DDRB
Read/Write
Accesses
to PTB
Read
Write
0
X(1) Input, Hi-Z(2) DDRB7âDDRB0
Pin
PTB7âPTB0(3)
1
X
Output
DDRB7âDDRB0 PTB7âPTB0 PTB7âPTB0
1. X = Donât care
2. Hi-Z = High impedance
3. Writing affects data register, but does not affect input.
MC68HC908GT16 ⢠MC68HC908GT8 â Rev. 2
MOTOROLA
Input/Output (I/O) Ports
Technical Data
235
|
▷ |