Quote Originally Posted by Mathy Knaapen View Post
Other question:
normaly the speaker is on one pin and the other on VDD (or VSS depending...)
But if I put the speaker on two pins, and invert those two pins at the same time( so 1 = + the other -), would that improve the sound quality? It's a kind of pushpulling the speakercone.... Just a wild gues.
Mathy
It'll only be louder. A bit of info...
A square wave is comprised of a sine wave at frequency 'X' plus all odd harmonics on either side of the primary frequency. So, a square wave is fundamentally a whole lot of frequencies all rolled up into one.
Also, how do you get decent distortion from an electric guitar? You 'clip' the sine waves coming out of it, that is, flatten out the tops of the sine wave. What does the top of a square wave look like? Yep, flat, just like that clipped sine wave.
So, if you listen to a pure sine wave vs. a pure square wave, the square wave will sound more R2D2-ish, and the sine wave more pleasing.

By push-pulling a speaker vs. just pulling it...same result...crap.
Yes, you could filter the output thru a filter network and make those square waves a bit more rounded off and resemble a sine wave. It won't be pretty, but it'll work, and it'll seem a bit louder (and more annoying).

You still want to do what you said back in post #3? And that's it?