Quote Originally Posted by mackrackit View Post
PROBLEM...

I thought the MPASM *.inc file had all of the info we needed for this but now it looks like I am wrong.

I can not find where the ports are defined.
Where does it tell that the 16F676 only has six pins on a port?

Evidently the data sheet is the only place to find the info.
HIGH PORTC.7
compiles just fine for a 16F676.
Hi Dave,

It fooled me too. I've now been through ALL of the files (PBP, MPASM, and Proton) and see no way to glean the individual port bits that don't exist. So I've found the right spot in the code to toss in exceptions to the general rules. Now, if the part name is "16F676" or "16F630", it will show only PORTA and PORTC with bits 0-5 enabled. As additional problem children are identified I can keep adding the special handling for them there.

I'll have a new version posted sometime today.

With regard to the ADC settings, I remain woefully short in the imagination department. Could someone please post what items you would like to select for setting up the ADC, then show me an example of what the output should look like? That would be a big help...

Best Regards,
Paul