XC68HC08KH12 Motorola, XC68HC08KH12 Datasheet - Page 190

no-image

XC68HC08KH12

Manufacturer Part Number
XC68HC08KH12
Description
MICROCONTROLLER
Manufacturer
Motorola
Datasheet
I/O Ports
12.5 Port C
12.5.1 Port C Data Register (PTC)
Advance Information
190
Address:
When bit DDRBx is a logic one, reading address $0001 reads the PTBx
data latch. When bit DDRBx is a logic zero, 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.
Port C is a 5-bit general-purpose bidirectional I/O port with software
configurable pullups and current drive options.
The port C data register contains a data latch for each of the five port C
pins.
Reset:
DDRB
1. X = don’t care
2. Hi-Z = high impedance
3. Writing affects data register, but does not affect input.
Read:
Write:
Bit
0
1
$0002
Bit 7
0
PTB Bit
X
Figure 12-7. Port C Data Register (PTC)
X
(1)
= Unimplemented
6
0
Table 12-3. Port B Pin Functions
I/O Ports
I/O Pin Mode
Input, Hi-Z
Output
5
0
(2)
Unaffected by reset
PTC4
4
Accesses to
Read/Write
DDRB[7:0]
DDRB[7:0]
DDRB
PTC3
3
MC68HC(7)08KH12
Table 12-3
PTC2
2
PTB[7:0]
Read
Accesses to PTB
Pin
PTC1
summarizes
1
MOTOROLA
PTB[7:0]
PTB[7:0]
Write
Rev. 1.0
PTC0
Bit 0
(3)

Related parts for XC68HC08KH12