lookup2 not counting all table. who can help?
is there any way to devide into wo parts?
or is there any way that count goes until sutain figure and then start counting backward?
Freq var word
say var byte
countera var word
loop:
If PORTB.7 =0 THEN
CounterA = 0
Yelp3:
Lookup2 CounterA,[902,902,902,884,884,884,851,851,835,820,820,806,80 6,792,778,765,_
752,740,740,716,716,705,705,683,683,653,663,663,64 4,635,618,627,602,594,578,578,557,_
564,549,531,531,519,513,501,492,475,465,465,456,44 2,434,422,414,406,389,389,373,373,_
352,334,329,318,307,296,283,279,263,252,249,238,23 2,232,238,249,252,263,279,283,296,_
307,318,329,334,352,373,373,389,389,406,414,422,43 4,442,456,465,465,475,492,501,_
513,519,531,531,549,564,557,578,578,594,602,627,61 8,635,644,663,663,653,683,683,_
705,705,716,716,740,740,752,765,778,792,806,806,82 0,820,835,851,851,884,884,884,_
902,902,902],Freq
For say=1 to 25
High PORTa.0
PauseUS Freq
Low PORTa.0
PauseUS Freq
Next say
pause 50
if PORTB.7=0 then
CounterA = CounterA + 1
if Countera < 142 then goto yelp3
endif
ENDIF
goto loop
Bookmarks