Jump to content

Adc.pic18.lib Missing?

Recommended Posts


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?





PS. sorry if this is in the wrong category...

Link to post
Share on other sites

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.





Link to post
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...