Look at post #9. This is its main loop:
Code:Main: ' do other stuff here as required IF CF.0 THEN ' figure out & print result only after last capture PW = PW-T1 ' High pulse width = PW-T1 CF.0 = 0 ' clear flag bit HSEROUT [DEC PW,"uS High",13,10] ENDIF GOTO Main
Bookmarks