You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You set the PWM wrap to 250 but amplitude levels in e.g. sample.h go up to 256, doesn't that mean that you slightly amplify the sound (by 256/250) and then clip the loudest parts of the waveform?
Thanks a lot for sharing this project!
You set the PWM wrap to 250 but amplitude levels in e.g. sample.h go up to 256, doesn't that mean that you slightly amplify the sound (by 256/250) and then clip the loudest parts of the waveform?
See this chart for the specs:
IIUC
wrap = top counter level = 250
level = end of duty cycle
so, that for all values >= 250 you get a full duty cycle / voltage.
The text was updated successfully, but these errors were encountered: