A system for controlling an output of an ultrasonic device, the system comprising: an amplifier configured to receive and process 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 configured to receive and process 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 configured to receive and process the compensated clock signal for generating the divider reference signal, and for generating the driver output signal; wherein the output control circuit includes a compensating circuit operatively coupled to the compensated drive circuit, the compensating circuit having a phase locked loop, and the output control circuit comprises a wave shaping circuit configured to receive and process the feedback signal and generate a square wave reset signal having a frequency substantially identical to the feedback signal; the compensating circuit is configured to receive and process the reset signal for generating a compensated reference signal having substantially the same frequency as the reset signal and substantially 180° out-of-phase with respect to the reset signal, wherein frequency and amplitude characteristics of the compensated reference signal are determined at least by the reset signal; and the PLL is configured to receive and process first and second input signals, wherein the first input signal is the compensated reference signal, and the second input signal is the divider reference signal, and the PLL is configured to process the first and second input signals for generating the compensated clock signal. an amplifier configured to receive and process 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 configured to receive and process 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 configured to receive and process the compensated clock signal for generating the divider reference signal, and for generating the driver output signal; wherein the output control circuit includes a compensating circuit operatively coupled to the compensated drive circuit, the compensating circuit having a phase locked loop, and the output control circuit comprises a wave shaping circuit configured to receive and process the feedback signal and generate a square wave reset signal having a frequency substantially identical to the feedback signal; the compensating circuit is configured to receive and process the reset signal for generating a compensated reference signal having substantially the same frequency as the reset signal and substantially 180° out-of-phase with respect to the reset signal, wherein frequency and amplitude characteristics of the compensated reference signal are determined at least by the reset signal; and the PLL is configured to receive and process first and second input signals, wherein the first input signal is the compensated reference signal, and the second input signal is the divider reference signal, and the PLL is configured to process the first and second input signals for generating the compensated clock signal.