HI,
In need to generate a sweeping tone to drive a piezzo element, i determined the tone should be sweeping back and forth between 2.5KHz and 4.5KHZ at an approximative rate of 4Hz, what is the best approach to achieve this? i am already using hardware PWM for another part of the system (to drive a MOS) but it doesnt seem very compatible with such use case since it has to be reconfigured each time the frequency is modified.
Thanks