另外,胡乱写了一个中断程序,出现这个连接错误,什么原因?
initializing of vector IT_routine failed beacuse of over- or underflow vector value
code:
====================
#include /* common defines and macros */
#include /* derivative information */
#pragma LINK_INFO DERIVATIVE "mc9s12dp256b"
#pragma TRAP_PROC
void IT_Routine(void)
{
PTH=0xFF;
}
void main(void) {
/* put your own code here */
EnableInterrupts;
DDRH=0;
for(;;) {} /* wait forever */
}
VECTOR 6 IT_Routine
VECTOR 0 _Startup /* reset vector: this is the default entry point for a C/C++ application. */
//VECTOR 0 Entry /* reset vector: this is the default entry point for a Assembly application. */
//INIT Entry /* for assembly applications: that this is as well the initialisation entry point */
==========================作者: strongchen 时间: 2005-5-13 14:13
加一句即可:
#include /* common defines and macros */
#include /* derivative information */
#pragma LINK_INFO DERIVATIVE "mc9s12dp256b"
#pragma CODE_SEG __NEAR_SEG NON_BANKED
#pragma TRAP_PROC
void IT_Routine(void)
{
PTH=0xFF;
}
void main(void) {
/* put your own code here */
EnableInterrupts;
for(;;) {} /* wait forever */
}作者: vincent2046 时间: 2005-5-13 14:18