Enable Vref- with ASM

For C and ASSEMBLY users to post questions and code snippets for programming in C and ASSEMBLY. And for any other C or ASM course related questions.

Moderators: Benj, Mods

Post Reply
Desdewit
Posts: 130
Joined: Sat Feb 26, 2011 4:26 am
Location: South Africa
Has thanked: 25 times
Been thanked: 11 times
Contact:

Enable Vref- with ASM

Post 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?

Spanish_dude
Posts: 594
Joined: Thu Sep 17, 2009 7:52 am
Location: Belgium
Has thanked: 63 times
Been thanked: 102 times
Contact:

Re: Enable Vref- with ASM

Post 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

Desdewit
Posts: 130
Joined: Sat Feb 26, 2011 4:26 am
Location: South Africa
Has thanked: 25 times
Been thanked: 11 times
Contact:

Re: Enable Vref- with ASM

Post 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.

Post Reply