I'm really new with this stuff so bare with me please. I need to read the RPM of a spining shaft using two timers. Timer0 will generate an interrupt on the overflow that will read timer 1 which will be clocked every rotation of the shaft. If I know how many times the shaft spun in the time it tkes for timer 0 to overflow then I can manipulate the data into RPM. I undestand the concept of the timers however I've never used them before and I'm not clear on the sintax of the code. Can anyone give me some suggestions as how to set up the timers to do this in the proper sintax. Never mind the data manipulation.

example code:

#byte TMR0 = 0x01
#byte OPTION_REG = 0x81

OPTION_REG = 0xC7;

I thought this would be the right sintax but I;m getting an error on the last line when I compile. What am I doing wrong. Any help would be appreciated.