#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。 这句是什么意思?? 还想请教一下各位,为什么程序跑不久,灯就不闪了呢?? |