mc9s12c128 header files

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

mc9s12c128 header files

2,014 次查看
lost2007
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?
标签 (1)
0 项奖励
1 回复

344 次查看
Lundin
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 项奖励