Hi,
Are you sure you don't have the timebase setting on the scope set in the uncal mode, ie. not an even 1-2-5 whatever per division? Try something simple likeThat should give you a 1Hz toggle which would be easy enough to eyeball with a simple a LED. Then change to PAUSE 5 and check again with scope. I'm pretty sure it has nothing to do with the PAUSEUS statement in your code but rather something like the oscillator isn't running at the correct frequency or you're not measuring it correctly. But of course, I could be wrong.Code:TRISB = 0 Again: PortB.2 = 1 Pause 500 PortB.2 = 0 Pause 500 Goto Again
/Henrik.
Bookmarks