Hey Bowser,
Try this...Code:CHK?RP _WaitCt movlw _TtW movwf _WaitCt DelayLoop decfsz _WaitCt, F goto DelayLoop
Hey Bowser,
Try this...Code:CHK?RP _WaitCt movlw _TtW movwf _WaitCt DelayLoop decfsz _WaitCt, F goto DelayLoop
DT
You answered my question quite succinctly: YES - I was crazy. Your solution solved the problem that was bugging me. And after getting that fixed, I took a better look at my code. I had several at least questionable lines in there. A cleaned up and working version is:
movlw _TtW
wloop
decfsz _Wct,F
goto wloop
That helped a BUNCH. (Sometimes it's good to know the truth.)
Hi Richard,
Great! Glad it worked out for you.
I guess I was a little short there, but now that you've got that figured out, you might want to take a look at this routine.
http://www.picbasic.co.uk/forum/showthread.php?p=22098
With that you can just go...for a 6us delay.Code:@ DelayUS 6
It looks really big, but it actually compiles to almost exactly the same thing you have. Without having to worry about OSC freq.
Don't know if that helps or not, but thought I'd mention it.
<br>
DT
Bookmarks