[求助]用邵老师的监控程序时,用C语言如何重新设置中断向量地址?
- UID
- 111798
- 性别
- 男
|
[求助]用邵老师的监控程序时,用C语言如何重新设置中断向量地址?
用邵老师的监控程序时,因为原有的中断向量地址FF00-FFFF被监控程序占用,用户要使用中断,中断向量地址要设到EF00-EFFF,用C语言如何重新设置中断向量地址?敬请赐教!![em17] |
|
|
|
|
|
- UID
- 104631
- 性别
- 男
|
监控程序应该已经把中断向量跳转到EF00-EFFF中了吧?
你是想自己把FF00-FFFF的地址重新定位到EF00-EFFF,还是想在EF00-EFFF中断向量表中写入你的中断程序地址? |
|
|
|
|
|
- UID
- 111798
- 性别
- 男
|
我是想在EF00-EFFF中断向量表中写入我的中断程序地址?如何作呢? |
|
|
|
|
|
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 */
} |
|
|
|
|
|
- UID
- 115868
- 性别
- 男
|
如何重新定位中断向量表
我想把DP256中断向量表从0xff80——0xffff重新影射到0x7f80——0x7fff,在cw12里应该怎么弄?请指点。 |
|
|
|
|
|