首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

[求助]用邵老师的监控程序时,用C语言如何重新设置中断向量地址?

void (* const _vect[])() @0xEF00 = {   // Interrupt table
           AD1_Interrupt,
           Cpu_Interrupt,
           Cpu_Interrupt,
           Cpu_Interrupt,
           Cpu_Interrupt,
           Cpu_Interrupt,
           Cpu_Interrupt,
           Cpu_Interrupt,
           Cpu_Interrupt,
           Cpu_Interrupt,
           Cpu_Interrupt,
           Cpu_Interrupt,
           Cpu_Interrupt,
           Cpu_Interrupt,
           Cpu_Interrupt,
           Cpu_SWIInterrupt,
           _EntryPoint
   };
/*
void _EntryPoint(void)
{
  /*** ### MC68HC908QT4 "Cpu" init code ... ***/
  /*** PE initialization code after reset ***/
  /* System clock initialization */
  /* CONFIG1: COPRS=0,LVISTOP=0,LVIRSTD=0,LVIPWRD=1,LVI5OR3=0,SSREC=0,STOP=0,COPD=1 */
  CONFIG1 = 17;                        /* Set the CONFIG1 register */
  /* CONFIG2: IRQPUD=0,IRQEN=0,??=0,OSCOPT1=0,OSCOPT0=0,??=0,??=0,RSTEN=0 */
  CONFIG2 = 0;                         /* Set the CONFIG2 register */
  OSCSTAT = 0;                         /* Disable the external oscillator */
  /*** End of PE initialization code after reset ***/

  __asm   jmp _Startup ;               /* Jump to C startup code */

}
返回列表