我编了一个程序(PT0输出比较),初始化程序如下,
void InitSystem (void)
{
DDRA =0xFF; //PORTA set as output;
TIOS =0x81; // InputCapture or OutputCompare choice;
TSCR1=0X80;
TSCR2=0X0F; // The cloclk moduls choice : 1/128;
TCTL1= 0X00;
TCTL2=0X00;
TC0= 0xffff; // input compare value;
TC7=0XFFFF;
TIE= 0x01; // enable interruption PT0;
TIOS=0X01;
}
中断地址为0xffee,编译后显示LINK ERROR :L1108: Initializing of Vector TimeInt failed because of over- or underflow of vector value
Link Error : Link failed
望不啬赐教,小生这厢有礼了!
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |