Hi to all, I have a 16F887 pic and I have connected at pin RA4 a TTL signal like in attached picture. How can I write a function that recognise the time of a low or high signal transmitted? If the signal is (low or high) for 256µs I have to put into an array 0 otherwise if the signal is 512µs I have to put into an array 1. Like in the picture the time measure of signal must be from low to high of the square wave.