I bout a PIC Kit 2 that came with a PIC16F690 micro controller. I'm a newbie to the PICs so please show a little mercy. I'm trying to follow an online tutorial in which the following code is to be used with the Swordfish environment.
DEVICE = 16F877 ' Specify What PIC your using
XTAL = 4 ' The Crystal/Osc Frequency
ALL_DIGITAL = True ' Make all pins digital
Symbol LED_1 = PortA.0 ' Define a symbol in the program
TRISA.0 = 0 ' Make PORTA.0 an output
PORTA.0 = 0 ' and set it low (0V)
Main:
If LED_1 = 0 then ' Check the status of the LED
LED_1 = 1 ' and toggle it
Else
LED_1 = 0
Endif
DelaymS 1000 ' Delay for 1 second
Goto Main ' Loop forever
The problem is that I am using a PIC16F690 and when I type that in instead of what he used and try to compile it, I get the following error "unable to open system file" and I don't know where to go from here. I really don't care to follow any code that is written in assembly but would rather learn a flavor of basic if possible. Can anyone point me in the right direction?