- UID
- 849884
|
大家好,我在使用MB95F108AJS这款芯片,根据手册自己配置了一个2毫秒的中断,但是总是无法进入中断函数,请帮忙看一下,谢谢!
#define DIODE_0 PDR4_P43
#pragma invect Interrupt_Timer00 5
main()
{
__DI();//disable all interrupts;
Initial_System();
Initial_Port();
__EI();//enable all interrupts ;
while(1)
{
//Display();
}
}
__interrupt void Interrupt_Timer00(void)
{
T00CR1 &= 0xFB;// clear the flag of data registor blood;
UCHR_Time2ms ++;
if(UCHR_Time100ms <= 4)
{
DIODE_0 = 0;
}
else
{
DIODE_0 = 1;
}
} |
|