Modified HighTime routine too:
it returns 9.Code:MeasureHigh: HighTime = 0 While Signal = 0 : WEND ' Wait for low While Signal = 1 ' Measure high level HighTime = HighTime + 1 ' Resolution is 100us, change if needed PauseUS 92 ' Tweal to calibrate, depends on actual loop time WEND LCDOUT $FE,$c0, "T2:",DEC hightime, " " RETURN
Feels like MCU is operating very slow?
Bookmarks