是在Microchip网站上下载的AN967(用PIC16F72驱动单相交流电机)的原代码 压缩包里面包括一个asm 和一个inc文件 我用MPLab 8.1 (网站上下的次新稳定版) 编译 报错,内容如下: ---------------------------------------------------------------------- Release build of project `E:\pic test\1\1.mcp' started. Fri Jul 04 11:37:28 2008 ---------------------------------------------------------------------- Make: The target "E:\pic test\1\MC_16F72.o" is out of date. Executing: "C:\Program Files\Microchip\MPASM Suite\MPASMWIN.exe" /q /p16F72 "MC_16F72.asm" /l"MC_16F72.lst" /e"MC_16F72.err" /x"MC_16F72.xrf" /aINHX8M Error[149] E:\PIC TEST\1\MC_16F72.ASM 76 : Directive only allowed when generating an object file Error[149] E:\PIC TEST\1\MC_16F72.ASM 79 : Directive only allowed when generating an object file Error[149] E:\PIC TEST\1\MC_16F72.ASM 83 : Directive only allowed when generating an object file Message[302] E:\PIC TEST\1\MC_16F72.ASM 89 : Register in operand not in bank 0. Ensure that bank bits are correct. Message[302] E:\PIC TEST\1\MC_16F72.ASM 91 : Register in operand not in bank 0. Ensure that bank bits are correct. Message[302] E:\PIC TEST\1\MC_16F72.ASM 118 : Register in operand not in bank 0. Ensure that bank bits are correct. Message[302] E:\PIC TEST\1\MC_16F72.ASM 120 : Register in operand not in bank 0. Ensure that bank bits are correct. Message[302] E:\PIC TEST\1\MC_16F72.ASM 135 : Register in operand not in bank 0. Ensure that bank bits are correct. Message[302] E:\PIC TEST\1\MC_16F72.ASM 141 : Register in operand not in bank 0. Ensure that bank bits are correct. Message[302] E:\PIC TEST\1\MC_16F72.ASM 144 : Register in operand not in bank 0. Ensure that bank bits are correct. Message[302] E:\PIC TEST\1\MC_16F72.ASM 733 : Register in operand not in bank 0. Ensure that bank bits are correct. Message[302] E:\PIC TEST\1\MC_16F72.ASM 734 : Register in operand not in bank 0. Ensure that bank bits are correct. Message[302] E:\PIC TEST\1\MC_16F72.ASM 750 : Register in operand not in bank 0. Ensure that bank bits are correct. Error[149] E:\PIC TEST\1\MC_16F72.ASM 900 : Directive only allowed when generating an object file Halting build on first failure as requested. ---------------------------------------------------------------------- Release build of project `E:\pic test\1\1.mcp' failed. Fri Jul 04 11:37:30 2008 ---------------------------------------------------------------------- BUILD FAILED
|