Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
"illegal directive" sounds like an assembly language thing. You need a C compiler. Follow Bill's advice.slique said:i already try to compile it using sourceboost IDE, but theres a lot of "illegal directive" and i don't know how to solve it.. so can anybody help me.. i think there is nothing wrong with the coding..but i still can't compile it..
#use delay ( clock = 4000000, restart_wdt ) /* sets appropriate compiler constants */
#use fast_io ( A ) /* don't set TRIS on each I/O statement */
#use fast_io ( B )
/* Set configuration bits in the PIC processor */
#pragma XT, NOPROTECT, WDT, PUT
blueroomelectronics said:Hmm well CCS C is on the site where the code came from. You could try contacting the site owner.
http://www.vermontficks.org/pic.htm
slique said:oh yes...i think it is my mistake.. i try to modified a little so it can work with sourceboost..
i already download the CCS C compiler at CCSinfo.com.. but when i try to compile the the code i found 5 error.. that is
***Error 18 'Lock.c" Line 1(9,18): File can not be opened
Not in "C:\Program Files\PICC\devices\16F84.h"
Not in "C:\Program Files\PICC\drivers\16F84.h"
Not in "C:\Program Files\PICC\devices\16F84.h"
Not in "C:\Program Files\PICC\drivers\16F84.h"
Not in local "C:\New Folder\16F84.h
***Error 111 'Lock.c" Line 4(7,31): unknown keyword in #FUSES "PUT"
***Error 99 'Lock.c" Line 35(5,75): Option invalid Not a valid port: A
etc..
i think the problem is, i don't know how to compile the file correctly..
why they can't find 16F84.h?
slique said:thanks for the tips but i can't find 16f84.h in the folder you mention above.. maybe its because mine is demo version only.. can any body attach the 16f84.h file from ccs c here? because when download 16f84.h from the internet, the compiler detect a lots of error.
Also I would think the 16F84.h is copyrighted.CCS said:The demo is a limited PCWHD compiler for the Microchip PIC®mcu's: 14-bit PIC16F877, 14-bit PIC16C544, 16-bit PIC18F458, and all 24-bit dsPIC30/dsPIC33/PIC24 DSCs. The demo compiler is licensed for 30 days and has a 2k program size limit.
#int_rtcc void TimerInterrupt ( void ) /* 65mS tic */