XC68HC08KH12 Motorola, XC68HC08KH12 Datasheet - Page 192

no-image

XC68HC08KH12

Manufacturer Part Number
XC68HC08KH12
Description
MICROCONTROLLER
Manufacturer
Motorola
Datasheet
I/O Ports
12.6 Port D
Advance Information
192
When bit DDRCx is a logic one, reading address $0002 reads the PTCx
data latch. When bit DDRCx is a logic zero, reading address $0002
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 C pins.
Port D is an 8-bit general-purpose bidirectional I/O port that shares its
pins with the keyboard interrupt module (KBI). All Port D pins have built-
in schmitt triggered input.
DDRC
1. X = don’t care
2. Hi-Z = high impedance
3. Writing affects data register, but does not affect input.
Bit
0
1
READ DDRC ($0006)
WRITE DDRC ($0006)
WRITE PTC ($0002)
READ PTC ($0002)
PTC Bit
X
X
(1)
Table 12-4. Port C Pin Functions
Figure 12-9. Port C I/O Circuit
I/O Pin Mode
I/O Ports
RESET
Input, Hi-Z
Output
(2)
DDRCx
PTCx
Accesses to
Read/Write
DDRC[4:0]
DDRC[4:0]
DDRC
MC68HC(7)08KH12
Table 12-4
PTC[4:0]
Read
Accesses to PTC
Pin
summarizes
PTC[4:0]
MOTOROLA
PTC[4:0]
Write
Rev. 1.0
PTCx
(3)

Related parts for XC68HC08KH12