This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

myt calculator project (emulator)

hi,

Does any of you knows how to play an sound with a singel chip. For example something like "Ok" And Or "Cancel" spoken

thank you.

  • Easy. Record the sound as 8-bit mono PCM data. Convert the sound to binary data - or a const static C array of bytes - and place in your source code. Then use PWM or an analog output to emit the samples at the same speed the recording was sampled.

    Your PWM code will not know if it is playing a recording or a sine wave or something else.