ADC 18F2580

Forum for problems or queries regarding other Flowcode Components. Eg LEDs, Switches, LCD, Gfx LCD etc

Moderators: Benj, Mods

Rob
Flowcode V4 User
Posts: 10
Joined: Mon Mar 09, 2009 5:24 pm
Contact:

ADC 18F2580

Postby Rob » Wed Aug 11, 2010 7:45 am

Hi, I am trying to use six ADC channels on a 18F2580 however the flow code program (I have tried 3 & 4, both full versions) does not follow the seqence i.e. ADC0-4,ADC8-10 instead it goes ADC0-7 ?
I tried to edit the fcd file but it did not seem to have an effect. Any help would be most welcome :P
Thanks for your time
regards
Rob

User avatar
Benj
Matrix Staff
Posts: 14154
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4330 times
Been thanked: 4080 times
Contact:

Re: ADC 18F2580

Postby Benj » Wed Aug 11, 2010 8:58 am

Hello Rob,

This updated v3 FCD file now fixes the misnumbered ADC channels.

To fix the FCD file I changed the ADCPins count from 8 to 11 and changed the ADCPins so that the unused channels are set to 0. I will fix the problem in the FCD source so the next release of Flowcode will have all the correct FCDs for these devices.
Attachments
18F2580.fcd
(7.39 KiB) Downloaded 184 times

Rob
Flowcode V4 User
Posts: 10
Joined: Mon Mar 09, 2009 5:24 pm
Contact:

Re: ADC 18F2580

Postby Rob » Wed Aug 11, 2010 9:26 am

Benji,
The file worked on flowcode 3 and I inserted the changes into the flowcode 4 fcd and now that seems to work fine as well,

thank you for the speedy reply :P

regards
Rob