gwpt 0 Posted September 23, 2009 Report Share Posted September 23, 2009 Hi, im trying to do some adc coding on a 18F2685 and am using C++. I noticed that adc.pic18.lib is missing (all the other 16/18 pairs are there) Is this an bug/omission or is it deliberate? If it isn't a bug... any clues towards doing adc stuff on a 18F? Thanks Guy PS. sorry if this is in the wrong category... Quote Link to post Share on other sites
Reynard 0 Posted September 23, 2009 Report Share Posted September 23, 2009 Hi Guy, The library for PIC18 probably never existed. The manual only mentions PIC16. Given the library only contains a single function it doesn't do much for you anyway. Using the library will not configure the ADC for the correct timings etc., it will not be of any use if you want to use the ADC with interrupts instead of your program twidling its thumbs waiting for conversion complete to occur. Make a small test program for a PIC16, look at the generated assembler code and you have your adc_read() function. Cheers Reynard Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.