How can i set the ADCON1 Register for a PIC 16F818 in Flowcode V3 Pro.
Reguards F.Tummers
Setting ADCON1 register in 16F818
- Steve
- Matrix Staff
- Posts: 3422
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
- Contact:
In a 'C' icon, put something similar to the following:
If you want to set it to the value of a Flowcode variable "MyVar", then do the following:
[/code]
Code: Select all
adcon1 = 0x55;
Code: Select all
adcon1 = FCV_MYVAR;