pit定时器128芯片
//现象:PB灯闪动,周期是INTVERAL*(0.01)ms,可用来记时. //demo by whut_wj #include /* common defines and macros */ #include /* derivative information */ #pragma LINK_INFO DERIVATIVE "mc9s12xs128" #define INTVERAL 100 void SetBusClock(void) { CLKSEL=0X00;
下载地址
用户评论