English
Language : 

MC68HC708MP16 Datasheet, PDF (326/398 Pages) Freescale Semiconductor, Inc – Microcontrollers
Input/Output (I/O) Ports
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 15-3 summarizes
the operation of the port C pins.
Table 15-3. Port C Pin Functions
DDRC
Bit
PTC Bit
I/O Pin Mode
0
X(1)
Input, Hi-Z(2)
Accesses to
DDRC
Read/Write
DDRC[6:0]
1
X
Output
DDRC[6:0]
1. X = don’t care
2. Hi-Z = high impedance
3. Writing affects data register, but does not affect input.
Accesses to PTC
Read
Pin
PTC[6:0]
Write
PTC[6:0](3)
PTC[6:0]
15.6 Port D
Technical Data
326
Port D is a 7-bit input only port that shares its pins with the pulse width
modulator for motor control module (PWMMC).
The port D data register (PTD) contains a data latch for each of the
seven port pins.
Address: $0003
Bit 7
6
5
4
3
2
1
Read: 0
Write:
PTD6 PTD5 PTD4 PTD3 PTD2 PTD1
Reset:
Unaffected by reset
= Unimplemented
Figure 15-11. Port D Data Register (PTD)
Bit 0
PTD0
PTD[6:0] — Port D Data Bits
These read/write bits are software programmable. Reset has no
effect on port D data.
Input/Output (I/O) Ports
MC68HC708MP16 — Rev. 3.1
Freescale Semiconductor