#include <hidef.h> /* common defines and macros */
#include <mc9s12xdt256.h> /* derivative information */
#pragma LINK_INFO DERIVATIVE "mc9s12xdt256"
unsigned int j;
void main(void) {
void transfer_delay1(void);
DDRB=0xFF;
PORTB=0xFF;
transfer_delay1();
EnableInterrupts;
}
void transfer_delay1(void){
for(j=0;j<20000;j++){
while(j>15000){
PORTB=~PORTB;
transfer_delay1();
}
}
}
BDMSTS BDM register not correct or status mismatch.
A hardware reset might have occurred.
DBG Trigger occurred。
这句是什么意思??
还想请教一下各位,为什么程序跑不久,灯就不闪了呢??
单片机还是别用递归函数了,堆栈一下就满了
谢谢啦~~
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |