if i use a PIC16F877A, then i use potentiometer to control the voltage sending in to the input of the PIC from 0 - 5v..then in programming, what can it detect? is shows in digital what form? example if i vary 2.5v, then in programming what should i write?
Hello and welcome to the community.
Your post is a little confusing and surely it is in the wrong group.
Or what is your concept you want to discuss ??
(You postet in Design concepts … )
But to answer your question:
then i use potentiometer to control the voltage sending in to the input of the PIC from 0 - 5v..then in programming, what can it detect?
The voltage between 0 and 5 Volt ???
If your question is how to program this in general you should take the datasheet of the PIC and a nice source of “How to program a PIC”
If you want to control a midi value with it: You can use the AIN Module for this purpose.
Sorry if this sounds a bit hard (english isn’t my native language) but it could also be, that I misunderstood your question …
example if i vary 2.5v, then in programming what should i write?
You should write what you want to do with the 2,5V at the input …
greets
Doc