Can't get rid of the error !! :@

Thread Starter

olvine

Joined Mar 10, 2014
99
In MPLAB(X) with a proper made project. You do not need to include the chip specific header file;)
Yup...exactly...
I had removed the error by masking whole PORT register.

and now I know y that error was....as mentioned by to6afre...I was neglecting that line...that contains extern volatile
 

t06afre

Joined May 11, 2009
5,934
@ErnieM Is there a need to add p24fj64ga004.h un glcd.c if i include it in glcd.h ?

@t06afre thanks alot :) this was the thing i was missing.

@nurdegutta no prob. Thanks alot for your help.

Attached is the main file too.
I am puzzled about why in the earth you were so incredible stubborn on this matter. I do not think you even tried to change the TRISCBITS to TRISCbits. To see if this could help you. That make me quite sad and disappointed over you! Because you wasted about 3 pages worth of time to the people trying to help you. In the future I hope you put away your stubbornness and do what you are suggested to do. Then report back if this solve your question or not capiche!
Looking at your main file. You have not include xc.h. This file SHOULD ALWAYS be included in ANY project using the XC16 compiler. This may also be of some help http://flyingpic24.com/resources/Chapter1-HelloEmbeddedWorld.ppt
I will also recommend this book http://flyingpic24.com/1.html But only the second edition. As this book use the same compiler as you are working with
 

Thread Starter

olvine

Joined Mar 10, 2014
99
@t06afre....I was in a bit of hurry when I posted this question and then I have had to use masking technique for the whole structure and got the job done.
Now I have used TRISCbits and it worked for me.
Thank you the links. It would be very helpful.

And I am really really sorry if you think that way. I am not stubborn. and my english is also not very good. may be that is reason you think this way.
 
Top