An apparatus for generating an analog signal and methods of operating the
same results in a cost effective solution for an audio sound generator.
The apparatus for generating an analog signal comprises an I.sup.2 C
interface configured to provide programming data in response to write
control signals, a non-volatile memory coupled to the I.sup.2 C interface
configured to store the programming data, a pulse width modulator coupled
to the non-volatile memory configured to receive the programming data from
the non-volatile memory and provide a pulse width modulated output in
response to the programming data, and a d/a converter coupled to the
non-volatile memory configured to receive the programming data from the
non-volatile memory and provide an analog output in response to the
programming data. The pulse width modulated output can be coupled to a
piezoelectric speaker to produce audible sound. The analog output provides
a line out signal that can be coupled to a dynamic speaker.