CMCON = 0 compiling ERROR !!!

General discussion on mikroBasic PRO for PIC.
Post Reply
Author
Message
qbasic
Posts: 69
Joined: 21 Aug 2012 07:28
Location: Italy

CMCON = 0 compiling ERROR !!!

#1 Post by qbasic » 08 Jul 2022 22:12

Hi all,
I'm programming the PIC16F877.
When compiling, I have the error "Identifier 'CMCON' was not declared" at the following line:

Code: Select all

CMCON = 0
Why ???
Any idea ?
I don't know.
Identifier CMCON was not declared.png
Identifier CMCON was not declared.png (7.25 KiB) Viewed 893 times
I'm using Mikrobasic PRO for PIC, versione 7.6.0

Thanks

hexreader
Posts: 1784
Joined: 27 Jun 2010 12:07
Location: England

Re: CMCON = 0 compiling ERROR !!!

#2 Post by hexreader » 08 Jul 2022 23:50

PIC16F877 has no register called CMCON

Maybe you are confused with PIC16F877A, which does have a CMCON register?

PIC16F877 does not have a Comparator module
Start every day with a smile...... (get it over with) :)

qbasic
Posts: 69
Joined: 21 Aug 2012 07:28
Location: Italy

Re: CMCON = 0 compiling ERROR !!!

#3 Post by qbasic » 09 Jul 2022 00:17

oooppsss !
Yes, you're right, thanks.
The 16F877 doesnt have the CMCON register,
only the 16F877A has the CMCON.
Many thanks !

Post Reply

Return to “mikroBasic PRO for PIC General”