what else the PIC do??? Should the input pulse lenght be measure ???