Mikro C Help needed

Thread Starter

bilal sheikh

Joined Jan 21, 2015
22
i am trying to access particular bit of a Port in Pic18f4431 using mikro C. i am using the port as input port by writing TRISC=255;
however i am getting this error, kindly help.
Screenshot (39).png
 

John P

Joined Oct 14, 2008
2,026
I don't see how that could fail unless there's a fairly basic bug in the compiler, where it doesn't know how to control PortC. Is it possible that the bug is in your setup of your project, and you've told the compiler that you have some other processor, which doesn't have PortC?
 

ErnieM

Joined Apr 24, 2011
8,377
Post the exact code (copy & paste) for lines 51 and 52... also the preceeding few lines.

Sometimes an error in one line will not get detected till a few lines later, so always look what comes before an offending line if it looks perfect.
 
Top