Hi,
1) @20Mhz ... min Pauseus is ... 3µs !!!
2) UNTIL NOT PortA.5 is much quicker than UNTIL PortA.5 = 0
3) PortF.6 = 1 is much quicker than HIGH PortF.6
4) Instead of Repeat - Until NOT PortA.5, try While PortA.5 - Wend ...
Alain
************************************************** ***********************
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