After you find your real timing problem, don't forget to consider the Pulsout statement execution time.
I measured 47us delay between these signals running at 4MHz:
This showed 147us between the end of one to beginning of the next pulse:Code:AGAIN: PULSOUT PORTC.3, 1 PULSOUT PORTC.3, 1 GOTO AGAIN
Code:AGAIN: PULSOUT PORTC.3, 1 PAUSEUS 100 PULSOUT PORTC.3, 1 PAUSE 100 GOTO AGAIN




Bookmarks