English
Language : 

MC68HC908GP32_08 Datasheet, PDF (123/266 Pages) Freescale Semiconductor, Inc – M68HC08 Microcontrollers
Figure 12-11 shows the port C I/O logic.
NOTE
For those devices packaged in a 40-pin dual in-line package and 42-pin
shrink dual in-line package, PTC5 and PTC6 are connected to ground
internally. DDRC5 and DDRC6 should be set to a 0 to configure PTC5 and
PTC6 as inputs.
READ DDRC ($0006)
WRITE DDRC ($0006)
RESET
WRITE PTC ($0002)
VDD
DDRCx
PTCx
PTCPUEx
READ PTC ($0002)
INTERNAL
PULLUP
DEVICE
PTCx
Port C
Figure 12-11. Port C I/O Circuit
When bit DDRCx is a logic 1, reading address $0002 reads the PTCx data latch. When bit DDRCx is a
logic 0, 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. Table 12-4 summarizes the operation of the port C pins.
Table 12-4. Port C Pin Functions
PTCPUE Bit DDRC Bit PTC Bit I/O Pin Mode
Accesses to DDRC
Read/Write
1
0
X(1)
Input, VDD(4)
DDRC6–DDRC0
0
0
X
Input, Hi-Z(2)
DDRC6–DDRC0
X
1
X
Output
DDRC6–DDRC0
Notes:
1. X = Don’t care
2. Hi-Z = High impedance
3. Writing affects data register, but does not affect input.
4. I/O pin pulled up to VDD by internal pullup device.
Accesses to PTC
Read
Write
Pin
PTC6–PTC0(3)
Pin
PTC6–PTC0(3)
PTC6–PTC0 PTC6–PTC0
MC68HC908GP32 Data Sheet, Rev. 10
Freescale Semiconductor
123