Freescale Semiconductor, Inc.
Order this document by
MC68HC805P18/D
Rev. 2.0
Freescale Semiconductor, Inc...
MC68HC05P18
MC68HC805P18
Advance Information
This document contains information on a new product.
Specifications and information herein are subject to change without notice.
For More Information On This Product,
Go to: www.freescale.com
N O N - D I S C L O S U R E
A G R E E M E N T
HC05
R E Q U I R E D
Freescale Semiconductor, Inc.
Advance Information
R E Q U I R E D
Freescale Semiconductor, Inc...
A G R E E M E N T
N O N - D I S C L O S U R E
Motorola reserves the right to make changes without further notice to
any products herein to improve reliability, function or design. Motorola
does not assume any liability arising out of the application or use of any
product or circuit described herein; neither does it convey any license
under its patent rights nor the rights of others. Motorola products are not
designed, intended, or authorized for use as components in systems
intended for surgical implant into the body, or other applications intended
to support or sustain life, or for any other application in which the failure
of the Motorola product could create a situation where personal injury or
death may occur. Should Buyer purchase or use Motorola products for
any such unintended or unauthorized application, Buyer shall indemnify
and hold Motorola and its officers, employees, subsidiaries, affiliates,
and distributors harmless against all claims, costs, damages, and
expenses, and reasonable attorney fees arising out of, directly or
indirectly, any claim of personal injury or death associated with such
unintended or unauthorized use, even if such claim alleges that Motorola
was negligent regarding the design or manufacture of the part.
© Motorola, Inc., 1999
Advance Information
2
For More Information On This Product,
Go to: www.freescale.com
MC68HC(8)05P18 — Rev. 2.0
MOTOROLA
Freescale Semiconductor, Inc.
Advance Information — MC68HC05P18/MC68HC805P18
List of Sections
Section 1. General Description . . . . . . . . . . . . . . . . . . . . 17
Section 2. Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Freescale Semiconductor, Inc...
Section 3. Central Processing Unit (CPU) . . . . . . . . . . . 35
Section 4. Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Section 5. Resets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Section 6. Operating Modes . . . . . . . . . . . . . . . . . . . . . . . 53
Section 7. Input/Output (I/O) Ports . . . . . . . . . . . . . . . . . 63
Section 8. EEPROM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Section 9. Analog-to-Digital (A/D) Converter . . . . . . . . . 79
Section 10. 16-Bit Timer . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Section 11. Serial Input/Output Port (SIOP) . . . . . . . . . . 99
Section 12. Instruction Set . . . . . . . . . . . . . . . . . . . . . . . 107
Section 13. Electrical Specifications . . . . . . . . . . . . . . . 123
Section 14. Mechanical Specifications . . . . . . . . . . . . . 133
Section 15. Ordering Information . . . . . . . . . . . . . . . . . 135
Appendix A. Emulation . . . . . . . . . . . . . . . . . . . . . . . . . . 137
MC68HC(8)05P18 — Rev. 2.0
MOTOROLA
List of Sections
For More Information On This Product,
Go to: www.freescale.com
Advance Information
3
Freescale Semiconductor, Inc.
List of Sections
Freescale Semiconductor, Inc...
Advance Information
4
List of Sections
For More Information On This Product,
Go to: www.freescale.com
MC68HC(8)05P18 — Rev. 2.0
MOTOROLA
Freescale Semiconductor, Inc.
Advance Information — MC68HC05P18/MC68HC805P18
Table of Contents
Section 1. General Description
1.1
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
Mask Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
Freescale Semiconductor, Inc...
1.2
1.3
1.4
1.5
Functional Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
1.5.1
V
DD
and V
SS
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
1.5.2
OSC1 and OSC2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
1.5.3
Crystal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
1.5.3.1
Ceramic Resonator . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
1.5.3.2
External Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
1.5.4
Reset (RESET).
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23
1.5.5
Port A (PA0–PA7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23
1.5.6
Port B (PB5/SDO, PB6/SDI, and PB7/SCK) . . . . . . . . . . . .24
1.5.7
Port C (PC0–PC2, PC3/AD3, PC4/AD2, PC5/AD1,
PC6/AD0, and PC7/V
REFH
) . . . . . . . . . . . . . . . . . . . . . . .24
1.5.8
Port D (PD5/CKOUT and PD7/TCAP) . . . . . . . . . . . . . . . . .24
1.5.9
TCMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
1.5.10 Maskable Interrupt Request (IRQ) . . . . . . . . . . . . . . . . . . . .25
Section 2. Memory
2.1
2.2
2.3
2.4
2.5
MC68HC(8)05P18 — Rev. 2.0
MOTOROLA
Table of Contents
For More Information On This Product,
Go to: www.freescale.com
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27
Input/Output and Control Registers . . . . . . . . . . . . . . . . . . . . .27
RAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34
ROM (MC68HC05P18 Only) . . . . . . . . . . . . . . . . . . . . . . . . . .34
Advance Information
5