s908qc16vdse Freescale Semiconductor, Inc, s908qc16vdse Datasheet - Page 112

no-image

s908qc16vdse

Manufacturer Part Number
s908qc16vdse
Description
M68hc08 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Input/Output Ports (PORTS)
11.5 Port C
Port C is an 4-bit general purpose port. PTC3 is an input only port pin, while PTC2–PTC0 can be
configured for either input or output. Each port C pin can be configured to have an internal pullup when
used as an input pin.
11.5.1 Port C Data Register
The port C data register (PTC) contains a data latch for each of the port C pins.
PTC[2:0] — Port C Data Bits
PTC3 — Port C Data Bit
112
1. X = don’t care
2. I/O pin pulled to V
3. Writing affects data register, but does not affect input.
4. Hi-Z = high impedance
PTBPUE
These read/write bits are software programmable. Data direction of each port C pin is under the control
of the corresponding bit in data direction register C. Reset has no effect on port C data.
This read-only bit reads the state of the PTC3 pin.
Bit
X
1
0
Reset:
Read:
Write:
DDRB
PTC3 has a high voltage detector to enable entry into special modes. Do
not exceed the V
Bit
0
0
1
DD
MC68HC908QC16 • MC68HC908QC8 • MC68HC908QC4 Data Sheet, Rev. 4
by internal pullup.
Bit 7
0
PTB
X
Bit
X
X
(1)
= Unimplemented
Figure 11-9. Port C Data Register (PTC)
DD
6
0
Input, Hi-Z
Input, V
Table 11-2. Port B Pin Functions
level on this pin in normal operation.
I/O Pin
Output
Mode
DD
5
0
(2)
(4)
Unaffected by reset
NOTE
4
0
Accesses to DDRB
DDRB7–DDRB0
DDRB7–DDRB0
DDRB7–DDRB0
Read/Write
PTC3
3
PTC2
2
PTB7–PTB0
PTC1
Read
1
Pin
Pin
Accesses to PTB
Freescale Semiconductor
PTC0
Bit 0
PTB7–PTB0
PTB7–PTB0
PTB7–PTB0
Write
(3)
(3)

Related parts for s908qc16vdse