What is the exact syntax to split off the high and low bits? That really is my confusion at this point. I want to do something like this, but I'm not sure the syntax...
Code:
myHolder VAR WORD
''' stop timer, which is now holding the result I want to measure
myHolder (the low byte) = TMR1L
myHolder (the high byte) = TMR1H
myHolder = myHolder - 200
''' now I'll goto another sub where I'm using the timeout as a trial
TMR1L = (the low byte of myHolder)
TMR1H = (the high byte of myHolder)
So I guess I'm just asking for the syntax of how to reference a high bit or a low bit in or out of a 16-bit variable, and also to clairify that once I have the value in "myHolder", I can do all the simple add/subtract math I want to it just like any normal variable as long as the values remain between 0 and 64,000andwhatever.
Right? :-)
Bookmarks