Menu

How can I set the vref pin on with GCBASIC?

Help
2009-04-28
2013-05-30
  • Nobody/Anonymous

    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

     
    • kent_twt4

      kent_twt4 - 2009-04-28

      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

       
      ❤️
      1
    • Nobody/Anonymous

      Thanks you for your fast assistance, dudes aways, regards pcs.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.