Re: 急救一下 compile沒辦法成功\
|
||||
---|---|---|---|---|
資深會員
|
bsf PORTC,3
reture ;;;return 這裡打錯字 ;;;;;;;;;;AD_Convert Subroutine;;;;;;;;;; 其它只要不是LABEL 都按一個TAB或按幾個空白,就OK了
發表於: 2008/1/22 8:46
|
|||
|
Re: 急救一下 compile沒辦法成功\
|
||||
---|---|---|---|---|
初級會員
|
請問一下你是怎麼用的
Quickbuild是什麼
發表於: 2008/1/21 16:47
|
|||
|
Re: 急救一下 compile沒辦法成功\
|
||||
---|---|---|---|---|
資深會員
|
用 Quickbuild 測試,assemble OK
你是如何作的? 錯誤訊息是什麼?
發表於: 2008/1/21 14:13
|
|||
|
急救一下 compile沒辦法成功\
|
||||
---|---|---|---|---|
初級會員
|
各位下面是我寫的程式,可是compile沒辦法成功,請各位可以幫我解決一下嗎
list p=16f877,R=DEC include "p16f877.inc" ;;;;;;;;;;User Variables;;;;;;;;;; AD_Status EQU 0X20 ;;;;;;;;;;PIC Restet Vector;;;;;;;;;; org 0x00 nop goto MainLine ;;;;;;;;;;Main Program;;;;;;;;;; MainLine call Initial MainLoop call AD_Convert call PWM_Out goto MainLoop ;;;;;;;;;;Initial Subroutine;;;;;;;;;; Initial banksel TRISC movlw B'00000000' movwf TRISC banksel PORTC movlw B'00000000' movwf PORTC movlw 0xff movwf PR2 banksel TMR2 clrf TMR2 movlw 0x80 movwf CCPR1L movlw 0x0C movwf CCP1CON movlw 0x00 movwf T2CON bsf T2CON,TMR2ON banksel ADCON1 movlw B'00000110' movwf ADCON1 bsf TRISA,0 bcf STATUS,RP0 movlw B'10000001' movwf ADCON0 banksel PORTC bsf PORTC,3 reture ;;;;;;;;;;AD_Convert Subroutine;;;;;;;;;; AD_Convert banksel ADCON0 bsf ADCON0,GO AD_Wait Btfsc ADCON0,GO goto AD_Wait movf ADRESH,W movwf AD_Status return ;;;;;;;;;;PWM_Out Subroutine;;;;;;;;;; PWM_Out movf AD_Status,W banksel CCPR1L movwf CCPR1L return ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; END 我是用MPLAB IDE v7.50顯示以下錯誤 Clean: Deleting intermediary and output files. Clean: Deleted file "xxx.err". Clean: Deleted file "C:\Program Files\Microchip\D\xxx.cod". Clean: Deleted file "C:\Program Files\Microchip\D\xxx.hex". Clean: Deleted file "xxx.lst". Clean: Done. Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F84 "xxx.asm" /l"xxx.lst" /e"xxx.err" Warning[205] C:\PROGRAM FILES\MICROCHIP\D\XXX.ASM 1 : Found directive in column 1. (list) Warning[215] C:\PROGRAM FILES\MICROCHIP\D\XXX.ASM 1 : Processor superseded by command line. Verify processor symbol. Warning[205] C:\PROGRAM FILES\MICROCHIP\D\XXX.ASM 2 : Found directive in column 1. (include) Message[301] C:\PROGRAM FILES\MICROCHIP\MPASM SUITE\P16F72.INC 35 : MESSAGE: (Processor-header file mismatch. Verify selected processor.) Message[302] C:\PROGRAM FILES\MICROCHIP\D\XXX.ASM 26 : Register in operand not in bank 0. Ensure that bank bits are correct. Message[302] C:\PROGRAM FILES\MICROCHIP\D\XXX.ASM 31 : Register in operand not in bank 0. Ensure that bank bits are correct. Message[302] C:\PROGRAM FILES\MICROCHIP\D\XXX.ASM 43 : Register in operand not in bank 0. Ensure that bank bits are correct. Message[302] C:\PROGRAM FILES\MICROCHIP\D\XXX.ASM 44 : Register in operand not in bank 0. Ensure that bank bits are correct. Warning[207] C:\PROGRAM FILES\MICROCHIP\D\XXX.ASM 50 : Found label after column 1. (reture) Error[113] C:\PROGRAM FILES\MICROCHIP\D\XXX.ASM 60 : Symbol not previously defined (ADRESH) Warning[205] C:\PROGRAM FILES\MICROCHIP\D\XXX.ASM 74 : Found directive in column 1. (END) Halting build on first failure as requested. BUILD FAILED: Mon Jan 21 16:42:42 2008
發表於: 2008/1/20 18:06
|
|||
|