Hi, Andre
If I understand it right ...
one led column (I-port C) is the meter, and the other ( j -portB) is the ref index ...
Now, you want to catch your ref level "in flight" ... ( Porta.2 turns to low )
1st problem...
time before you see level and you press the button ... level has changed.
Why not extract the MAXIMUM of the readings while button pressed ???
2nd problem...
time you keep the finger on the button, your ref level is changing ... ( k= i-1 in a continuous LOOP )
Your Button must act as a OneShot for K value ! ... or see Upper
Alain
Last edited by Acetronics2; - 19th May 2009 at 10:37.
************************************************** ***********************
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 " !!!
*****************************************
Bookmarks