I rewrite a new program to activate Timer1 as free-running timer. I take the TMR1L and TMR1H value directly, and obtain a new result by:
Result = TMR1H*256+TMR1L
May I know, is the RESULT I get is in microsecond? As far as I understand, 4Mhz clock will result in 1us per cycle. Thus, is the value obtained in RESULT is in microsecond? Please correct me if I am wrong, I would like to have the result 1 milliseconds. Below is my code, hope some one can correct my mistake.
ResetTimer:
GoSub SetRe
Bookmarks