Jump to content

Simple Adc Example Sourceboostc? Thank You.

Recommended Posts



I've just started learning SourceBoostC. I did do some picbasic pro previously. Been looking around for a very simple example of using the ADC on the pic16f688. I would like to connect and read a potentiometer on pin AN0.


I do know that I must config:


trisa = 00000001b //make pin 13 (AN0) an input pin.

ansel = 00000001b //make pin 13 (AN0) analog.


What are the commands to read, etc. ?



Thanks for any help or references, very much appreciated.


Thanks again,


Share this post

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...