博客首页 注册 建议与交流 排行榜 加入友情链接
推荐 投诉 搜索: 帮助

随风...

我欲上青天 看沧海桑田.
piaoyizu.cublog.cn
单片机的中断向量表


extern interrupt void IRQIsr(void);

//extern interrupt void KBD_ISR();

//*****************************
//Put your ISR routines here.
//extern interrupt void yourAppISR(void);
extern interrupt void Vscirx();
extern interrupt void isrRTI();
//Put the Function Name of your interrupt handler into this constant array.
//at the ISR location that you want.

interrupt void UnimplementedISR(void)
{
  for(;;);
}

// Added redirected ISR vectors when BootLoader is enabled.
// The application cannot have a reset vector (resides in BootLoader).
#if (EMBEDDED_BOOTLOADER == TRUE)
    // Redirected ISR vectors
    const tIsrFunc _vect[] @0xEFCC = {  /* Interrupt table */
#else
    const tIsrFunc _vect[] @0xFFCC = {  /* Interrupt table */
#endif
        isrRTI,                 /* vector 25: RT */
        UnimplementedISR,       /* vector 24: IIC */
        UnimplementedISR,       /* vector 23: ATD */
        UnimplementedISR,       /* vector 22: KBI */
        UnimplementedISR,       /* vector 21: SCI2TX */
        Vscirx,                 /* vector 20: SCI2RX */
        UnimplementedISR,       /* vector 19: SCI2ER */
        UnimplementedISR,       /* vector 18: SCI1TX */
        Vscirx,                 /* vector 17: SCI1RX */
        UnimplementedISR,       /* vector 16: SCI1ER */
        UnimplementedISR,       /* vector 15: SPI */
        UnimplementedISR,       /* vector 14: TPM2OF */
        UnimplementedISR,       /* vector 13: TPM2C4 */
        UnimplementedISR,       /* vector 12: TPM2C3 */
        UnimplementedISR,       /* vector 11: TPM2C2 */
        UnimplementedISR,       /* vector 10: TPM2C1 */
        UnimplementedISR,       /* vector 09: TPM2C0 */
        UnimplementedISR,       /* vector 08: TPM1OF */
        UnimplementedISR,       /* vector 07: TPM1C2 */
        UnimplementedISR,       /* vector 06: TPM1C1 */
        UnimplementedISR,       /* vector 05: TPM1C0 */
        UnimplementedISR,       /* vector 04: ICG */
        UnimplementedISR,       /* vector 03: Low Voltage Detect */
        IRQIsr,                 /* vector 02: IRQ pin */
        UnimplementedISR        /* vector 01: SWI */
        /*_Startup, by default in library*/ /* Reset vector */
   };

发表于: 2008-06-19,修改于: 2008-06-19 21:54,已浏览286次,有评论0条 推荐 投诉

给我留言
版权所有 ChinaUnix.net 页面生成时间:7.54962