Hi eveybody
I'm trying to measure time between 2 pulses on PORTA.4 which just so happens to be the Timer1 Gate.
I was thinking that it should be possible to start the timer when the port goes high and then stop it again when it goes high the next time and see if 10 seconds has passed. If 10 seconds has passed I want to do something otherwise something else.
My problem is that I don't know where to start.
Anybody who could give me an example of how I should go about this?
I'm using PIC16F631 running at 4MHz
Thanks in advance
I'm trying to measure time between 2 pulses on PORTA.4 which just so happens to be the Timer1 Gate.
I was thinking that it should be possible to start the timer when the port goes high and then stop it again when it goes high the next time and see if 10 seconds has passed. If 10 seconds has passed I want to do something otherwise something else.
My problem is that I don't know where to start.
Anybody who could give me an example of how I should go about this?
I'm using PIC16F631 running at 4MHz
Thanks in advance