> >where am i going wrong please ? > >thanks very much for your help >i appreciate it >glen Hi Glen, I assume that your code does something after the "movwf strttmr" and doesn't just run off into the "table" subroutine. .. :-) Otherwise your code looks ok, I suspect that you problem lies in the way you have connected the switches. The quickest way to confirm if this is the problem is to measure the voltage when the switches are operated. You should see less than 0.8V for low and greater than 2.0V for high. Preferably a bit more either way. Also, to have any chance of that circuit working you would have to have the "weak-pullups" enabled in the OPTION register. I would prefer pull up resistors rather than pull down anyway. And another thing, why have you got the 10k resistor there anyway? it is not needed for switches. (assuming the weak-pull-ups are enabled). Ray Gardiner ray@hdc.com.au