9-1_Timer1_Interrupt rev A.pbp
I am trying to use the timer1 interrupt to determine the pulse width of a servo pulse (1 to 2 milliseconds). I plan to have about 10 servos and will need to refresh them every 20 milliseconds. Thus, I am hoping to use the interrupt so I do have to wait for the pulse to end.
I am using the ME Labs Trainer using the PIC16F1937 as a test bed. I cannot get the attached program to enter the interrupt handler. As timing is not critical, I figure I can use the ON INTERRUPT command.
Once I get this working, I will also use the interrupts to indicate the completion of the ADC conversion—that will eventually load the value to timer 1.
All suggestions would be appreciated.
Larry Cardo
I am trying to use the timer1 interrupt to determine the pulse width of a servo pulse (1 to 2 milliseconds). I plan to have about 10 servos and will need to refresh them every 20 milliseconds. Thus, I am hoping to use the interrupt so I do have to wait for the pulse to end.
I am using the ME Labs Trainer using the PIC16F1937 as a test bed. I cannot get the attached program to enter the interrupt handler. As timing is not critical, I figure I can use the ON INTERRUPT command.
Once I get this working, I will also use the interrupts to indicate the completion of the ADC conversion—that will eventually load the value to timer 1.
All suggestions would be appreciated.
Larry Cardo
Comment