Can't find ADCS2 in the 16F877 include file

General discussion on mikroPascal.
Post Reply
Author
Message
PC Pete
Posts: 68
Joined: 10 Nov 2005 09:19
Location: Melbourne, Australia
Contact:

Can't find ADCS2 in the 16F877 include file

#1 Post by PC Pete » 08 Mar 2009 03:40

I've tried to set the ADCS2 bit in the ADCON1 register on the PIC16F877A, but that isn't defined as a constant anywhere.

The workaround is to add it as a constant to each project:

const
ADCS2 = 6;

and that seems to work.

Could this be added to the next release of MP/etc? Or am I missing something obvious?

janni
Posts: 5373
Joined: 18 Feb 2006 13:17
Contact:

#2 Post by janni » 08 Mar 2009 12:04

The constants are colleced in processor definition files (defs sub-directory in mP main dir). The're sometimes incomplete but you may edit them thus avoiding adding definitions to every project.

Post Reply

Return to “mikroPascal General”