Does anyone know if it possible to set up an interrupt routine that will trigger off both the rising and falling clock pulses? In my code I want to set an interrupt that will make pin RA0 HI a set time delay after the first rising clock edge and then will make RA0 go LO on the falling clock pulse. Is this possible using Timer1 of the 16F877?
Timer1 can be configured (timer / counter modes) to increment on either the rising edge of the external clock or on every instruction cycle. So the answer is no.
Perhaps :roll: it might be possible using the two CCP modules (configure one to interrupt on rising edge the other on falling edge.