Hcs12 programming manual






















HCS12 Microcontroller and Embedded Systems: Using Assembly and C with CodeWarrior, 1e features a systematic, step-by-step approach to covering various aspects of HCS12 C and Assembly language programming and interfacing. The text features several examples and sample programs that provide students with opportunities to learn by doing. a. AsmIDE with HCS12 assembler b. Sample programs with source code c. Freescale application notes for the HCS12 d. Data sheets for on-board hardware e. User’s manual f. Reference documents 3. RS cord 4. V AC adapter for North America customers If you miss any part of the kit, please contact sales@www.doorway.ru or call for help. - HCS12 can add/sub at most bit numbers using one instruction - To add/sub numbers that are larger than 16 bits, we need to consider the carry or borrow resulted from bit operation. - Carry flag is set to 1 when the subtraction operation produces a borrow 1. This borrow should be subtracted from the next subtraction operation.


- A summary of C language constructs that will be used in HCS12 programming. - Books on C language 1. Kernighan Ritchie, “The C Programming Language”, Prentice Hall, 2. Deitel Deitel, “C: How to Program”, Prentice Hall, 3. Kelly Pohl, “A Book on C: Programming in C”, Addison-Wesley, assembler program about such things as where to put code and data into mem-ory. All of the assembler directives can be found in Pages 46 through 49 of the manual for the evaluation version of the Cosmic Compiler. A PDF version of this manual can be found on the EE home page. We will use only a few of these directives. The HCS12 allows the program to jump to any memory address during program execution, and the jump to subroutine instruction may be used to call a routine that needs to be executed on periodic bases.


D-Bug12 is a software program that is burned into the Flash memory of the HCS12 The Dragon development board consists of an HCS12 chip connected to a. Specifies output format. – Specifies the end of a program. • Assembly language instructions. – HCS12/MC9S12 instructions. • Comments. Chapter 2 HCS12 Assembly Programming 39 Decrementing and Incrementing Instructions 70 Interfacing the HDU to the HCS12 Microcontroller

0コメント

  • 1000 / 1000