I am trying to start a project using mplab 6.20, pickit 3 and pic16f877.
I am using C language. I have Pragmas set, i defined names for each pin and i could set which ones are inputs and outputs.
i did declare 3 int variables.
The problem i have is: once i get in the void main(void) {} stage, i can write a simple if{} routine assessing whether 2 variables are 0 or 1 and set the state of a the third one. However, if, instead of those variables i try the same with the pin names to read them or write on off (0 or 1) to them i get inmediatly a spree of red marks in the left and error hints claming unrecognizing tokens. it only happens when invoking named pins as variables, not actual int variables.
I did other job last year using the same setup and a pic16f819 and after some learning curve it works.
May i be forgetting to set something up in the project to use named micro pins as variables?