Page 1 of 1
Enable Vref- with ASM
Posted: Fri Feb 03, 2012 9:59 pm
by Desdewit
Hi
Can the Vref(-) on a pic16f877 be activated with asm code in flowcode?
If not how can it be activated in flowcode?
Re: Enable Vref- with ASM
Posted: Sun Feb 05, 2012 11:01 pm
by Spanish_dude
You should be able to do it in C. I suppose there's some bit to set in a register for the ADC.
Check the datasheet for Vref-.
Nicolas
Re: Enable Vref- with ASM
Posted: Mon Feb 06, 2012 10:46 am
by Desdewit
Hi Nicolas
Thanks for the reply.
I've changed the Adcon1 bit to 0x08 in flowcode so when you enable Vref+ in the AtoD setup it enable the Vref- also.