PR6(BLuetooth Remote Control)-- c code

Bluetooth, XBee, RF......

Re: PR6(BLuetooth Remote Control)-- c code

Postby cheekangteh » Tue Mar 27, 2012 5:04 pm

Idris WROTE:Hi cheekangteh,
I have copy the code and only change #include <16f877a.h> to #include <pic.h>, I got ********** Build successful! **********
Maybe there have a problem on your compiler.


after i change to <pic.h>, i get these error:

***Error 18"PR6(Bluetooth Remote Control).c" Line (10,17): File not be opened
Not in "C:\Program Files\PICC\devices\pic.h"
not in "C:\Program Files\PICC\drivers\pic.h"
Not in local "C:\Users\Chee Kang\Desktop\PSM\Source Code PR6\pic.h"
***Error 128 "PR6(Bluetooth Remote Control).c" Line 20(1,8): A#DEVICE required before this line
***'PR6(Bluetooth Remote Control).c" Line 20: Error#28:Expecting an identifier
cheekangteh
Apprentice
 
Posts: 36
Joined: Mon Dec 26, 2011 5:20 pm

Re: PR6(BLuetooth Remote Control)-- c code

Postby cheekangteh » Tue Mar 27, 2012 5:11 pm

hi all...
thanks a lot
cheekangteh
Apprentice
 
Posts: 36
Joined: Mon Dec 26, 2011 5:20 pm

Re: PR6(BLuetooth Remote Control)-- c code

Postby ober » Tue Mar 27, 2012 9:38 pm

Hi, cheekangteh. Most of our sample source codes are compiled under HI-TECH C for PIC10/12/16 (Lite Mode) if the PIC used is PIC16F. If it is PIC18F, we are using MPLAB C18 as stated by robosang.

Yes, you can use CCS, but as suggested by robosang, you will need to edit some of the registers as all compiler have their own way to label register. Or you can follow what Idris suggested, use MPLAB IDE + Hi-TECH Compiler. You can download the necessary installer under most of the DIY project product page.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: PR6(BLuetooth Remote Control)-- c code

Postby cheekangteh » Fri Apr 06, 2012 2:41 pm

hi obey and all,

thanks for all idea and comment. Now i know what is my problem now. thanks
cheekangteh
Apprentice
 
Posts: 36
Joined: Mon Dec 26, 2011 5:20 pm

Previous

Return to Wireless Device

Who is online

Users browsing this forum: No registered users and 16 guests

cron