winnie 发表于 2009-3-31 15:09:02

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   : Can't find 0x3 words (0x3 withtotal) for psect intsave in segment BANK0
Error   : Can't find 0x2 words (0x2 withtotal) for psect code_ptr in segment BANK0
Error   : Can't find 0x1 words (0x1 withtotal) for psect intsave in segment BANK0
Error   : Can't find 0x1 words (0x1 withtotal) for psect intsave in segment BANK0
Error   : 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:10

在一些变量前加关键字 bank1 或bank2。即可
页: [1]
查看完整版本: picc中断中可以调用其他函数码?