Basic Programming Notes For The 68Hc12 - Motorola 68HC12 User Manual

Table of Contents

Advertisement

2. Basic Programming Notes:
There are 3 header files that must be included with any code written for the 68HC12
using the Introl C compiler.
These are:
HC812A4.H - This file contains all the register declarations for the 6812.
INTROL.H - This file contains several function declarations needed by Introl to
compile the program.
DBUG12.H - This contains the information need to call the D-Bug12 routines and to
handle interrupts.
Omitting this file will result in the calls to the D-Bug12
routines being flagged as errors by the compiler.
Your main function must be of the format: void _ _main().
The two (2) underscores
before main are necessary, as that is the format that Introl uses to recognize the
main function of the program.
3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents