A system for controlling an output of an ultrasonic device, the system comprising: an amplifier receiving and processing a driver output signal for generating a drive signal that is provided to an ultrasonic device for controlling output of the ultrasonic device an output control circuit receiving and processing a signal related to a feedback signal generated by the ultrasonic device and a divider reference signal for generating a compensated clock signal that is adjusted for at least one of phase and frequency differences between the received feedback signal and the divider reference signal and a compensated drive circuit comprising: divider circuitry for stepping down the frequency of the compensated clock signal to a selectable frequency for generating a counter output signal flip-flop circuitry for splitting the counter output signal into first and second complementary square waves together forming a driver input signal, wherein a sample of at least one of the first and second complementary square waves is the divider reference signal and a driver for amplifying the driver input signal for generating the driver output signal wherein the driver comprises a phase delay circuit for selectively adjusting at least one of the phase relationship between the first and second complementary square waves of the driver output signal and pulse width of pulses of at least one of the first and second complementary square waves of the driver output signal.