English
Language : 

MC68HC05X16 Datasheet, PDF (59/232 Pages) Freescale Semiconductor, Inc – High-density complementary metal oxide semiconductor HCMOS) microcontroller unit
Freescale Semiconductor, Inc.
4.5.2 Port data register C (PORTC)
Port C data (PORTC)
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
$0002
PC2/
ECLK
Undefined
Each bit can be configured as input or output via the corresponding data direction bit in the port
data direction register (DDRx).
4
In addition, bit 2 of port C is used to output the CPU clock if the ECLK bit in the EEPROM
CTL/ECLK register is set (see Section 4.3).
The state of the port data registers following reset is not defined.
4.5.3 Port data register D (PORTD)
Port D data (PORTD)
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
$0003 PD7 PD6 PD5 PD4 PD3 PD2 PD1 PD0 Undefined
All the port D bits are input-only and are shared with the A/D converter. The function of each bit is
determined by the ADON bit in the A/D status/control register.
The state of the port data registers following reset is not defined.
4.5.4 A/D status/control register
A/D status/control
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
$0009 COCO ADRC ADON 0 CH3 CH2 CH1 CH0 0000 0000
ADON — A/D converter on
1 (set) – A/D converter is switched on; all port D pins act as analog inputs for
the A/D converter.
0 (clear) – A/D converter is switched off; all port D pins act as input only pins.
Reset clears the ADON bit, thus configuring port D as an input only port.
MC68HC05X16
INPUT/OUTPUT PORTS
For More Information On This Product,
4-5
Go to: www.freescale.com