Hello.

I have a pic 12F675.
I want to store in memory time while a port is high.
Ex. GPIO.0 is in low. He's going in high and wait until it goes again low. I want to know how much time passed and save in memory.
Time must be between 5 and 15 seconds. If it is more, chooses the maximum value. If it is less, the minimum value.

Thanks.