View previous topic :: View next topic |
Author |
Message |
Fischer Guest
|
comparator PIC16F873A |
Posted: Wed Jul 23, 2003 8:05 am |
|
|
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 |
Posted: Wed Jul 23, 2003 9:14 am |
|
|
:=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
|
Re: comparator PIC16F873A |
Posted: Wed Jul 23, 2003 5:54 pm |
|
|
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 |
Posted: Thu Jul 24, 2003 2:12 am |
|
|
:=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 |
|
|
|