我用PIC单片机控制RC500,在执行M500PiccRequest()时.docVIP

  • 7
  • 0
  • 约1.32万字
  • 约 13页
  • 2018-08-23 发布于江苏
  • 举报

我用PIC单片机控制RC500,在执行M500PiccRequest()时.doc

我用PIC单片机控制RC500,在执行M500PiccRequest()时

我用PIC单片机控制RC500,在执行M500PiccRequest()时总是返回0xFF(-1) 下面是我的程序的一部分: #pragma code InterruptVectorHigh=0x08 void InterruptVectorHigh(void) { ????_asm ????????goto RC500ISR ????_endasm } #pragma code #pragma interrupt RC500ISR void RC500ISR() { ????if(INT0_F==1) ????{ ????????static unsigned char irqBits; ????????static unsigned char irqMask; ????????static unsigned char nbytes; ????????static unsigned char cnt; ????????GIE_H=0;????????????//关全局中断 ????????INT0_F=0;????????????//清外部中断标志 ????????if(blFlag.fHaveset) ????????{ ????????//Loop while IRQ pending . Attention :IRQ bit is inverted when ???????

文档评论(0)

1亿VIP精品文档

相关文档