About the #config, although sometimes also Microchip wrong reports for 16F690 _BOD_OFF (for instance in PICKIT2 lessons), the right parameter is _BOR_OFF (see 16F690 datasheet, or http://forum.microchip.com/tm.aspx?m=154521\)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Greetings!
I'm trying to use a couple of Look Up Tables in my program, but I receive following compiler Errors:
compiled.asm:49:Error [127] Too many arguments.
compiled.asm:51:Error [113] Symbol not previously defined (ROWPRG).
Here is the code:
#chip 16F690,4
#config _INTRC_OSC_NOCLKOUT, _WDT_OFF,_PWRTE_OFF,_MCLRE_OFF,_CP_OFF, _BOR_OFF, _IESO_OFF,_FCMEN_OFF
do
Rowcount=1
do while Rowcount < 4
ReadTable Rowmask, Rowcount, Rowprg
Rowcount = Rowcount +1
loop
loop
''''''''''''''''''''''''''''''''''''''''''
' Lookup Table '
''''''''''''''''''''''''''''''''''''''''''
Table Rowmask
b'00100000'
b'01000000'
b'01100000'
b'10000000'
End Table
What's wrong?
There seems to be a bug in ReadTable. This is a fault in the compiler, and I shall fix it as soon as possible. Thanks for letting me know about it.
There were a few small bugs in the ReadTable command that made it unable to accept a location from a variable. The new fixed .exe is now online at http://gcbasic.sourceforge.net/newfiles/gcbasic.exe.
The #config line in your program has a slight error - the 16F690 uses _BOD_OFF, not _BOR_OFF.
Hmmm...Hugh, I'm getting 404 File not found trying to download the new executable..
Thanks a lot !
About the #config, although sometimes also Microchip wrong reports for 16F690 _BOD_OFF (for instance in PICKIT2 lessons), the right parameter is _BOR_OFF (see 16F690 datasheet, or http://forum.microchip.com/tm.aspx?m=154521\)
SourceForge has made the . a part of the hyperlink. The correct address is:
http://gcbasic.sourceforge.net/newfiles/gcbasic.exe
This often seems to happen with links on here.
Ok, the link work.
Problems with Tables away.
Thanks a lot