mc9s12c128 header files

Showing results for 
Search instead for 
Did you mean: 

mc9s12c128 header files

Contributor I
This may be an ignorant question but I would like to know the answer. I would like to know if there is a mc9s12c128.h header file available for programming this microprocessor? If not does the mc9s12c32.h header file work?
Labels (1)
0 Kudos
1 Reply

Senior Contributor IV
The register map is the same for all S12 devices, the smaller devices are just missing parts of it (the registers are reserved instead of used).

I really don't know why Metrowerks/Freescale made separate register maps for separate derivates, it makes no sense since they are code compatible. Why they wrote the h-file non-standard C is also a good question. If you want to use ANSI C, the only option is to write your own register map.

I'm using my own register map called "s12reg" which is originally for DP256 but works fine with DG256, DG128, C128, C32 etc.
0 Kudos