[求助]用邵老师的监控程序时,用C语言如何重新设置中断向量地址?
harbin 该用户已被删除
|
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
};
/* |
|
|
|
|
|
harbin 该用户已被删除
|
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 */
} |
|
|
|
|
|