I did it like this
RESETALL VAR PORTA.0
RSTPLS VAR BIT
HULP0 VAR BIT
RSTPLS = RESETALL & ~ HULP0
HULP0 = RESETALL
(& = logical and ~ = invert)
' At RSTPLS you will get a pulse what is one cycle of your program if RESETALL goes high.
Ofcource
while
RESETALL = 1
wend
will also work




Bookmarks