a pic with timer1 gate control would be a perfect fit for this , eg 16f1825