English
Language : 

MC908GR32AVFAE Datasheet, PDF (141/314 Pages) Freescale Semiconductor, Inc – Microcontrollers
Port C
Figure 12-11 shows the port C I/O logic.
When bit DDRCx is a 1, reading address $0002 reads the PTCx data latch. When bit DDRCx is a 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.
VDD
READ DDRC ($0006)
WRITE DDRC ($0006)
RESET
WRITE PTC ($0002)
DDRCx
PTCx
PTCPUEx
INTERNAL
PULLUP
DEVICE
PTCx
READ PTC ($0002)
Figure 12-11. Port C I/O Circuit
Table 12-4. Port C Pin Functions
PTCPUE
Bit
1
0
X
DDRC
Bit
0
0
1
PTC
Bit
X(1)
X
X
I/O Pin
Mode
Input, VDD(2)
Input, Hi-Z(4)
Output
Accesses to DDRC
Read/Write
DDRC6–DDRC0
DDRC6–DDRC0
DDRC6–DDRC0
1. X = Don’t care
2. I/O pin pulled up to VDD by internal pullup device.
3. Writing affects data register, but does not affect input.
4. Hi-Z = High impedance
Accesses to PTC
Read
Write
Pin
PTC6–PTC0(3)
Pin
PTC6–PTC0(3)
PTC6–PTC0
PTC6–PTC0
MC68HC908GR60A • MC68HC908GR48A • MC68HC908GR32A Data Sheet, Rev. 5
Freescale Semiconductor
141