Setting ADCON1 register in 16F818

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
Tummers
Posts: 3
Joined: Mon Apr 16, 2007 9:52 am
Contact:

Setting ADCON1 register in 16F818

Post by Tummers »

How can i set the ADCON1 Register for a PIC 16F818 in Flowcode V3 Pro.

Reguards F.Tummers

User avatar
Steve
Matrix Staff
Posts: 3422
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Post by Steve »

In a 'C' icon, put something similar to the following:

Code: Select all

adcon1 = 0x55;
If you want to set it to the value of a Flowcode variable "MyVar", then do the following:

Code: Select all

adcon1 = FCV_MYVAR;
[/code]

Post Reply