That's odd… that kind of error happens when a label does not exist that you are trying to GOTO. The same thing would happen if you remarked "Main:" in your program. Look at the .ASM file to see if you can find where "GO_DONE" is supposed to be. .. use a text editor that shows line numbers and look near line 145 and line 147 to see what's going on there or see where that block is called from. Can you post the .ASM file?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ASM: compiled.asm:145:Error Symbol not previously defined (GO_DONE).
ASM: compiled.asm:147:Error Symbol not previously defined (GO_DONE).
Compile error. Is there an issue in the dat file? I just do not know what to correct.
Thanks
Code.
;Chip Settings
#chip 16F1847,32
#config OSC=INTOSC
dir PORTA.0 in
dir PORTB.0 out
Main:
PWMLevel = ReadAD(AN0)
set PORTB.0 on
for PWMCount = 1 to 255
if PWMCount > PWMLevel then set PORTB.0 off
next
goto Main
That's odd… that kind of error happens when a label does not exist that you are trying to GOTO. The same thing would happen if you remarked "Main:" in your program. Look at the .ASM file to see if you can find where "GO_DONE" is supposed to be. .. use a text editor that shows line numbers and look near line 145 and line 147 to see what's going on there or see where that block is called from. Can you post the .ASM file?
I have changed the chip to16F1825.
Same error.
My test program.
I have no problem compiling with GCB (0.9 31/5/2012). COMPILE.BAT file contains instructions for using the internal assembler:
I was going to guess an outdated MPLAB and MPASM for the newer enhanced midrange device files?
Superb response. The error has now gone.
I have changed to the internal assembler '/A:GCASM'.
Thank you.