Re: Just can't get started
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.
Re: Just can't get started
Hi Archangel,
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 reselected C:\pbp, so nothing has changed. But I still get these 3 compile errors. Any other ideas?
regards,
mike
1 Attachment(s)
Re: Just can't get started
Quote:
Originally Posted by
mikejp56
Hi Archangel,
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 reselected C:\pbp, so nothing has changed. But I still get these 3 compile errors. Any other ideas?
regards,
mike
Attachment 8066Attachment 8066
Sorry I copy pasted your code, see the image. Now if you select a chip WITHOUT ansel you will error out.
Re: Just can't get started
HIGH and LOW do not require any port setup. They set as output automatically, see the manual.
You don't need the ANSELs.
Re: Just can't get started
Hi Archangel and kenif,
I uninstalled MCS and PBP, and reinstalled both programs, and now it works.
Thanks for your time.
regards,
mike
Re: Just can't get started
I have PBPX 3.0.7.1 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 wrong (does not apply to your immediate problem) clock not running, incorrect setting of fuses and not turning off comparators. Suggest you have a look at anything by Darrel Taylor and in particular his ALLDIGITAL and FUSE CONFIGURATION programs.
George
Re: Just can't get started
Quote:
HIGH and LOW do not require any port setup. They set as output automatically, see the manual.
You don't need the ANSELs.
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.
/Henrik.