英锐恩单片机论坛,Microchip单片机,模拟器件,接口电路,麦肯单片机,单片机应用交流

标题: picc中断中可以调用其他函数码? [打印本页]

作者: winnie    时间: 2009-3-31 15:09
标题: picc中断中可以调用其他函数码?
我写了一小段程序,编译时出错。请帮忙看看:
=======错误信息====
lean: Deleting intermediary and output files.
Clean: Deleted file "F:\a_new\PIC\dldc\main.obj".
Clean: Deleted file "F:\a_new\PIC\dldc\main.cce".
Clean: Deleted file "D:\HT-PIC\bin\picc   .lde".
Clean: Deleted file "D:\HT-PIC\bin\picc   .cof".
Clean: Done.
Executing: "C:\HT-PIC\BIN\PICC.EXE" -C -E"main.cce" "main.c" -O"main.obj" -I"C:\HT-PIC\include" -Zg9 -O -ASMLIST -W3 -Q -MPLAB -
CRACK BY CYPOK.
Compiler operating in demo mode.
Some command line options are disabled and compilation is delayed.
Register this compiler to enable these options.Executing: "C:\HT-PIC\BIN\PICC.EXE" -E"picc   .lde" "F:\a_new\PIC\dldc\main.obj" -M"picc   .map" -W3 -O"picc   .cof" -O"picc   .hex" -Q -MPLAB -  
CRACK BY CYPOK.
Compiler operating in demo mode.
Some command line options are disabled and compilation is delayed.
Register this compiler to enable these options.
Error[000]   : Can't find 0x3 words (0x3 withtotal) for psect intsave in segment BANK0
Error[000]   : Can't find 0x2 words (0x2 withtotal) for psect code_ptr in segment BANK0
Error[000]   : Can't find 0x1 words (0x1 withtotal) for psect intsave in segment BANK0
Error[000]   : Can't find 0x1 words (0x1 withtotal) for psect intsave in segment BANK0
Error[000]   : Can't find 0x1 words (0x1 withtotal) for psect intsave_0 in segment COMBANK
BUILD FAILED: Tue Aug 03 19:01:25 2004
=======================================
、、-------10bit AD采样 16次-------
unsigned int gADdata(unsigned char channal)
{
}
///--------Inerrupt prog------------------------
static void interrupt
isr(void)
{
if(TMR1IF)
{
  TMR1IF = 0;  // Clear interrupt flag, ready for next
  TMR1H=vTH;
  TMR1L=vTL;
  //-----------------
  Vsamp=gADdata(Voltch);
  Tsamp=gADdata(Tempch);  
  
}

}
///-------
-------------------------------------
作者: winnie    时间: 2009-3-31 15:09
在一些变量前加关键字 bank1 或bank2。即可




欢迎光临 英锐恩单片机论坛,Microchip单片机,模拟器件,接口电路,麦肯单片机,单片机应用交流 (http://enroobbs.com/) Powered by Discuz! X3.2