MOTOROLA.COM/SEMICONDUCTORS
HCS12
Microcontrollers
S12CPUV2/D
Rev. 0
S12CPUV2
Reference Manual
7/2003
S12CPUV2 Reference Manual
MOTOROLA 3
Motorola and the Stylized M Logo are registered trademarks of Motorola, Inc.
DigitalDNA is a trademark of Motorola, Inc.
This product incorporates SuperFlash® technology licensed from SST. © Motorola, Inc., 2003
S12CPUV2
Reference Manual
To provide the most up-to-date information, the revision of our documents on the
World Wide Web will be the most current. Your printed copy may be an earlier
revision. To verify you have the latest information available, refer to:
http://motorola.com/semiconductors
The following revision history table summarizes changes contained in this
document. For your convenience, the page number designators have been linked
to the appropriate location.
Revision History
Reference Manual S12CPUV2
4 Revision History MOTOROLA
Revision History
Date
Revision
Level
Description
Page
Number(s)
July,
2003
0 Initial release N/A
S12CPUV2 Reference Manual
MOTOROLA List of Sections 5
Reference Manual — S12CPUV2
List of Sections
Revision History 4
List of Sections 5
Table of Contents 7
List of Figures 15
List of Tables 17
Section 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . .19
Section 2. Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
Section 3. Addressing Modes . . . . . . . . . . . . . . . . . . . . .33
Section 4. Instruction Queue . . . . . . . . . . . . . . . . . . . . . .51
Section 5. Instruction Set Overview . . . . . . . . . . . . . . . .59
Section 6. Instruction Glossary . . . . . . . . . . . . . . . . . . . .91
Section 7. Exception Processing. . . . . . . . . . . . . . . . . .315
Section 8. Instruction Queue . . . . . . . . . . . . . . . . . . . .327
Section 9. Fuzzy Logic Support. . . . . . . . . . . . . . . . . . .341
Appendix A. Instruction Reference . . . . . . . . . . . . . . . .381
Appendix B. M68HC11 to CPU12 Upgrade Path. . . . . .409
Appendix C. High-Level Language Support. . . . . . . . .431
Index 439