That is only partly correct!
HIGH/LOW manages the TRIS register for you but it does NOT manage ANSEL, CMCOM or any other registers which may prevent a digital pin from functioning as an output.
That would be why, then.
Another win for the manual :)
This is a goto. Absolute jump.
I have PBPX 22.214.171.124 and is compiles OK - an obvious mistake is to select 16F877 when you mean 16F887. Maybe the syntax is different in 2.6? Anyone with 2.6?
Among the more common things that got...
Having problems with the one line IF THEN LABEL not returning.
Is this a call or an absolute jump?
Hi Archangel and kenif,
I uninstalled MCS and PBP, and reinstalled both programs, and now it works.
Thanks for your time.
HIGH and LOW do not require any port setup. They set as output automatically, see the manual.
You don't need the ANSELs.
Sorry I copy pasted your code, see the image. Now if you select a chip WITHOUT ansel you will error out.
I have the correct PIC selected. I was looking around at the menus, and inadvertently told it to find automatically the PBP compiler under View, Compile and Program Options. It...
Compiles without issue for me.
Check to be SURE you have selected the correct PIC in Microcode studio, If that's not correct you will see those errors.