OK. This looks good. Thanks.

I think the overkill blinking light is the right for me to use. I am unlear what to change to get timer 1 to fire off every 22ms.

I assume it starts with this seting
T1CON = $31 ; Prescaler = 8, TMR1ON

I have two different harware setups I am trying to put it in. Both use the PIC16F887, one with an external 20MHz Osc, the other with an internal 8MHz. It looks like a prescaler of 1:8 is the max, so I suspect I need to do a counter in the interupt routine that only fires my event every nth time to acheive the 22ms event? Is this a big burden or is there a simpler way? Can someone show me some examples of how to do the math to get the event to fire off properly with the two oscillator speeds?


Thanks,
Charlie