Here you can find an example ( in assembler ... YES ! ) that shows how it is done.
http://www.piclist.com/techref/micro...x4key1ad7r.htm
did you also read that one ???
http://www.picbasic.co.uk/forum/showthread.php?t=17956
Alain
Here you can find an example ( in assembler ... YES ! ) that shows how it is done.
http://www.piclist.com/techref/micro...x4key1ad7r.htm
did you also read that one ???
http://www.picbasic.co.uk/forum/showthread.php?t=17956
Alain
Last edited by Acetronics2; - 3rd April 2015 at 11:14.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Thanks ! But still no have answers on my problem ...
Hi Fratello,
1) Do you have two PCB with different resistor values?
or
2) Have you changed resistors to same board and tested with two SW settings?
In case
1) there must be some other differences on PCB
2) resistors are not with correct values
Thanks, Mr. Gusse, for support !
I have only one PCB, without the resistors from chain (just R2=1k is soldered on PCB, between +5V and ADC_IN).
I put the resistors from chain 1 from R2/ADC_IN to ground ; in first case works perfect.
Then I soldered the R9=100k from R2/ADC_IN to ground ; I put resistors from chain 2 into circuit (in parallel with R9). In this case nothing happens.
All the resistors are measured, look to be OK (this was my first concern too ...).
Tomorrow I'm going to try to set some debounce ...
Last edited by fratello; - 3rd April 2015 at 20:35.
SOLVED !!!
In first case the code is :
"If adval > 419 and adval < 536 then gosub LED" = working fine.
In second case :
"If adval > 450 and adval < 600 then gosub LED" = NOT working.
So I tried this :
"If adval < 600 and adval > 450 then gosub LED"
And VOILA, IT'S WORKING !!!
Thanks for support ! Regards !
I don't get it. That looks identical to me.
Robert
Bookmarks