I am trying the AD converter in Pic 12F675 and I'm not sure what GCBASIC command I'll use for setting the volt. ref. I use "ADCON0.VCFG = 1" and "#define VCFG ADCON0.6" in any of this setting GCBASIC bring any error. because of that I have a dude, please tell me witch of that is correct
or if exist any other command to do it. Thanks in advance for your atention. PCS
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying the AD converter in Pic 12F675 and I'm not sure what GCBASIC command I'll use for setting the volt. ref. I use "ADCON0.VCFG = 1" and "#define VCFG ADCON0.6" in any of this setting GCBASIC bring any error. because of that I have a dude, please tell me witch of that is correct
or if exist any other command to do it. Thanks in advance for your atention. PCS
Make the Vref pin an input, set the VCFG bit on, apply new voltage reference, then double check with volt meter that new a-d is correct.
dir GPIO.1 in
Set VCFG On
Thanks you for your fast assistance, dudes aways, regards pcs.