If I reset the timer I will obviously always get the same value because temp will always display the same value.
So I rewrote the code to this:
and I specified different values to display in staticVal.Code:staticVal var word temp VAR word TMR1H=0 ' Reset timer value TMR1L=0 T1CON.0=1 ' start the timer pauseus 1000 T1CON.0=0 ' Stop the timer staticVal = 70 T1CON.0=1 ' start the timer LCDOUT $FE,$80,"TMR1 = ", dec staticVal T1CON.0=0 ' Stop the timer temp.HighByte=TMR1H temp.LowByte=TMR1L LCDOUT $FE,$C0,"Disp Time = ", dec temp
It turns out that displaying 1 to 9 took 3819 ms
to display 10 to 29 and 40 to 49 took 3944 ms
to display 30 to 39 and 50 to 69 took 3938 ms
and so on...
So you are right, this confirms that the difference of time LCDOUT is taking to display is based on which value is beeing displayed. This makes me wonder because technically it is always computing 4 bit at a time but at least now I know what is going on and I thank you for your help and your patience.
Mike




Bookmarks