XC68HC08KH12 Motorola, XC68HC08KH12 Datasheet - Page 188

no-image

XC68HC08KH12

Manufacturer Part Number
XC68HC08KH12
Description
MICROCONTROLLER
Manufacturer
Motorola
Datasheet
I/O Ports
12.4 Port B
12.4.1 Port B Data Register (PTB)
Advance Information
188
Address:
Port B is an 8-bit general-purpose bidirectional I/O port with software
configurable pullups.
The port B data register contains a data latch for each of the eight port B
pins.
PTB[7:0] — Port B Data Bits
The port B pullup enable bit, PBP, in the port option control register
(POC) enables pullups on port B pins if the respective pin is configured
as an input.
Reset:
1. X = don’t care
2. Hi-Z = high impedance
3. Writing affects data register, but does not affect input.
Read:
Write:
These read/write bits are software-programmable. Data direction of
each port B pin is under the control of the corresponding bit in data
direction register B. Reset has no effect on port B data.
DDRA
Bit
0
1
$0001
PTB7
Bit 7
(See 12.9 Port
PTA Bit
Figure 12-4. Port B Data Register (PTB)
X
X
(1)
PTB6
6
Table 12-2. Port A Pin Functions
I/O Ports
Input, Hi-Z
PTB5
I/O Pin
Output
Mode
5
Options.).
(2)
Unaffected by reset
PTB4
4
Read/Write
DDRA[7:0]
DDRA[7:0]
Accesses
to DDRA
PTB3
3
MC68HC(7)08KH12
PTB2
PTA[7:0]
2
Read
Accesses to PTA
Pin
PTB1
1
MOTOROLA
PTA[7:0]
PTA[7:0]
Write
Rev. 1.0
PTB0
Bit 0
(3)

Related parts for XC68HC08KH12