I noticed you declared the array as WORD(100)
and your for to loop as 0 to 100 (= 101)
maybe 0 to 99 will make it work?
I noticed you declared the array as WORD(100)
and your for to loop as 0 to 100 (= 101)
maybe 0 to 99 will make it work?
Rodger, Try something like this:
declare this:
@TIMER0 = TMR0L
TIMER0 VAR WORD EXT
This will treat TMR0L as a word. Then all you need to do is something like this:
IR_Time_Data(index) = TIMER0 'READ CURRENT TIMER VALUE and place into word array by (index).
Dave Purola,
N8NTA
EN82fn
Thanks a lot Dave.
I'll have to dig in this "EXT" to see exactly what this does, but it (sorry: "you") actually solved my problem.
Thank you very much again![]()
Roger
Rodger, Perhaps this thread will help:
http://www.picbasic.co.uk/forum/showthread.php?t=3891
Dave Purola,
N8NTA
EN82fn
Thank you Dave.
This is indeed very interesting and helpful (at least in my case)![]()
Roger
No chance here, doesn't change anything, but good observation - I missed that oneI noticed you declared the array as WORD(100)
and your for to loop as 0 to 100 (= 101)
maybe 0 to 99 will make it work?![]()
Roger
Bookmarks