
Originally Posted by
Michael
Pulsin works great. Heck, I just used the first part of that rentron code and did this with it --
I get a perfect momentary on/off with a bit of needed pause.
Main:
PULSIN PORTB.0,0,Leader ' leader pulse is ~9mS low-going
IF Leader < 850 THEN
LOW PORTB.2
GOTO Main
ENDIF
IF LEADER > 850 THEN
HIGH PORTB.2
PAUSE 300
ENDIF
LEADER = 0
PAUSE 100
GOTO MAIN
Bookmarks