hi ronsimpson!!! thanks for your help. i have two questions:
to calculate the interrupts with TMR1, I thought you had to divide the value by 66535 (0xFFFF). But, as you say, its 66536 because 0x0000 counts, right?
And one last thing. Suppose that a WORD variable is loaded with 60,000
Now we add to that variable, say 1000. Which is going to be the next result??? Is it going to be 0000 because it overflowed, or is it going to be 4535??? (60,000 + 1,000 - 65,535)???
Thanks for your help. Really quick answers you get in this forum!!!!!!!
Manuel




Bookmarks