bigfarmerdave
New Member
I was writing some code in Microcode Studio and then using PICBASIC PRO DEMO to compile my code. My program got bigger than what the demo version would compile so I am now using the purchased version of PICBASIC PRO, version 2.40. I'm getting several errors when trying to compile any of my code using the purchased version. I wrote the following code as a simple test for the demo and purchased versions....
TRISC.0 = 0 'Sets pin 1 on port C to an output
loop:
PORTC.0 = 1 ' Turn on LED
Pause 500 ' Delay for .5 seconds
PORTC.0 = 0 ' Turn off LED
Pause 500 ' Delay for .5 seconds
Goto loop ' Go back to loop and blink LED forever
The demo version will compile the code with no errors while the purchased version returns the following errors. What am I doing wrong?
Error LEDBLI~2.ASM 43:[225] undefined symbol 'trisc'
Error LEDBLI~2.ASM 46:[225] undefined symbol 'portc'
Error LEDBLI~2.ASM 48:[225] undefined symbol 'portc'
Fatal LEDBLI~.ASM 48:[300] too many errors
I think I might have found the problem.... ver 2.40 doesn't look like it supports the PIC16F690. At least when using MicroCode Studio, when I click on the dropdown box that shows which IC's you can pick from, the 16F690 isn't listed so can I safely assume it is not an option? Are there any PICS with the same pinout that I could select so as to try to trick MicroCode Studio?
TRISC.0 = 0 'Sets pin 1 on port C to an output
loop:
PORTC.0 = 1 ' Turn on LED
Pause 500 ' Delay for .5 seconds
PORTC.0 = 0 ' Turn off LED
Pause 500 ' Delay for .5 seconds
Goto loop ' Go back to loop and blink LED forever
The demo version will compile the code with no errors while the purchased version returns the following errors. What am I doing wrong?
Error LEDBLI~2.ASM 43:[225] undefined symbol 'trisc'
Error LEDBLI~2.ASM 46:[225] undefined symbol 'portc'
Error LEDBLI~2.ASM 48:[225] undefined symbol 'portc'
Fatal LEDBLI~.ASM 48:[300] too many errors
I think I might have found the problem.... ver 2.40 doesn't look like it supports the PIC16F690. At least when using MicroCode Studio, when I click on the dropdown box that shows which IC's you can pick from, the 16F690 isn't listed so can I safely assume it is not an option? Are there any PICS with the same pinout that I could select so as to try to trick MicroCode Studio?
Last edited: