English
Language : 

MC68HC11KW1 Datasheet, PDF (116/238 Pages) Motorola, Inc – High-density complementary metal oxide semiconductor HCMOS) microcontroller unit
6.3
Port C
Port C is an 8-bit bidirectional port, with both data and data direction registers. In addition to their I/O
capability, port C pins are used as the non-multiplexed data bus pins, as shown in the following table.
Pin
Alternative
function
PC0 DATA0

PC1 DATA1
PC2 DATA2



In expanded or test
 mode, the pins
PC3 DATA3


become the data
PC4 DATA4
PC5 DATA5
 bus and port C is not


included in the
 memory map.
PC6 DATA6


6
PC7 DATA7

The state of the pins on reset is mode dependent. In single chip or bootstrap mode, port C pins
are high-impedance inputs. In expanded or test modes, port C pins are the data bus I/O and
PORTC/DDRC are not in the memory map.
6.3.1 PORTC — Port C data register
Port C data (PORTC)
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
$0006 PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0 undefined
The bits may be read and written at any time and are not affected by reset.
6.3.2 DDRC — Data direction register for port C
Data direction C (DDRC)
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
$0007 DDC7 DDC6 DDC5 DDC4 DDC3 DDC2 DDC1 DDC0 0000 0000
DDC[7:0] — Data direction for port C
1 (set) – The corresponding pin is configured as an output.
0 (clear) – The corresponding pin is configured as an input.
PARALLEL INPUT/OUTPUT
MC68HC11KW1
6-4