#include <hidef.h> /* common defines and macros */
#include "derivative.h" /* derivative-specific definitions */
#pragma LINK_INFO DERIVATIVE "mc9s12dp256"
#pragma CODE_SEG __NEAR_SEG NON_BANKED
interrupt 26 void underflow_ISR(void)
{
EnableInterrupts;
MCFLG=0x80;
PORTB=0x77;
}
#pragma CODE_SEG DEFAULT
void main(void)
{ EnableInterrupts;
MCCTL=0xc7;
//MCCNT=0xff;
DDRB=0xff;
PORTB=0x01;
for(;;)
{}
}
以上这个程序进不了中断,请大家帮我看看怎么回事啊?相当郁闷中! |