Userrr
Joined: 09 Jul 2004 Posts: 40 Location: Europe
|
Comparator Module Error |
Posted: Fri Jul 09, 2004 2:48 pm |
|
|
Please help with that code :
After compile that error that is VREF_LOW is undefined
Code: |
#include <16F648A.h>
#use delay(clock=1000000)
#fuses NOWDT,XT, NOPUT, NOPROTECT, NOBROWNOUT, NOMCLR, NOLVP, NOCPD
void main()
{
setup_comparator(A0_A3_A1_A2);
setup_vref(VREF_LOW|0|VREF_A2);
}
|
And please tell how to use comparator module in PIC18F458 (or I can't) |
|