CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

comparator PIC16F873A

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Fischer
Guest







comparator PIC16F873A
PostPosted: Wed Jul 23, 2003 8:05 am     Reply with quote

I want to use the comparator of a pic 16F873A.
Used compiler: PCM ver.3.110
The compiler doesn't recognize the internal function "setup_comparator()"
Using a header file of a 16C621A there is no problem
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516281
R.J.Hamlett
Guest







Re: comparator PIC16F873A
PostPosted: Wed Jul 23, 2003 9:14 am     Reply with quote

:=I want to use the comparator of a pic 16F873A.
:=Used compiler: PCM ver.3.110
:=The compiler doesn't recognize the internal function "setup_comparator()"
:=Using a header file of a 16C621A there is no problem
I think the age of your compiler is the problem. You can try just adding the 'setup_comparator' defines to the 16F673a file, but back at V3.110, these were not present, and were added somewhere before 3.139 (the earliest version I have with them present). If is compiles, and works, with the 16C621A define file, it is probably worth trying this (you need the setup_vref defines as well), but I'd be very supised if it worked properly...

Best Wishes
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516283
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

Re: comparator PIC16F873A
PostPosted: Wed Jul 23, 2003 5:54 pm     Reply with quote

As far as I know PIC16F873A doesn't have an internal comparator. That's why you can't use that function.

Ali
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516301
R.J.Hamlett
Guest







Re: comparator PIC16F873A
PostPosted: Thu Jul 24, 2003 2:12 am     Reply with quote

:=As far as I know PIC16F873A doesn't have an internal comparator. That's why you can't use that function.
:=
:=Ali
Wrong. The 16F873, does not have the comparator, but the 'A' does. The functions are available, and work fine in latter compilers (I'd guess at about 3.125, as the earliest).

Best Wishes
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516306
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group