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

 找回密码
 立即注册
搜索
电子烟方案单片机单片机开发深圳单片机开发
单片机方案国产单片机8位单片机电子烟方案开发
查看: 3423|回复: 1
打印 上一主题 下一主题

picc中断中可以调用其他函数码?

[复制链接]
跳转到指定楼层
1#
发表于 2009-3-31 15:09:02 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我写了一小段程序,编译时出错。请帮忙看看:
=======错误信息====
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);  
  
}

}
///-------
-------------------------------------
2#
 楼主| 发表于 2009-3-31 15:09:10 | 只看该作者
在一些变量前加关键字 bank1 或bank2。即可
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|公司首页|Microchip单片机,模拟器件,接口电路,麦肯单片机,单片机应用交流 ( 粤ICP备09008620号 )

GMT+8, 2024-11-24 06:35 , Processed in 0.048003 second(s), 23 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表