that one id not voltage
You can only use integer arithmetic, its easy to convert a voltage into an adc count by using a calculator
5V = 1023 adc value
the code above is an analog one
i want you to check it
I did check and I posted the corrected program
i cant test it to hardware
Why cant you test to hardware.???
what is the code above configuration for ? (PIC)
can you tell me how to generate the conf word ?
Which PIC are you using.?
hi TT,
When you post a question you must give more details or explanation of what it is you are trying to do, at the moment I have to keep guessing what you want.
Try OPTIONS 'configuration bits'
Last edited: