I am doing a project which requires me to determine real time when a pulse arrives at a pic micro controller.I am using pic 16f887 and the programmin g language I am using is microbasic. The pic would be connected to a device which sends pulses and the pic is supposed to store the time when the pulse arrived.Can someone please help me with the source code or anything that i can use to come with a working device.