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