Flash memory control signal generator