Not sure watt you want to do.
As far i can see both your variables adval0 and adval1 are storing a 10 bit number in decimal range 0 to 1023
if you divide any of them by four they turn to 8bit...
Type: Posts; User: Fernando; Keyword(s):
Not sure watt you want to do.
As far i can see both your variables adval0 and adval1 are storing a 10 bit number in decimal range 0 to 1023
if you divide any of them by four they turn to 8bit...
Hello Helgeland
In order to configure the analog pins you have to write to som internal pic registers ADCON0 , ANSEL and TRISIO registers.
Here is a link to a very useful document describing...
Hello tacbanon
What i read from the waveform is diferent than you.
First the sensor has an internal pull up resistor so the idle state is 1
then you must send a low pulse and release back to...
Hello Macrackit
I do not understand how your anwser is related to my doubts.
Please clarify
Thanks
Fernando Carvalho
Hello
I want to measure a voltage from a sensor 0.5V to 4.5V
and convert it to a specific pulse..
12uS 12uS...