I'm using a digital pin to create a 1khz wave. The problem is that its a square wave and it has harmonics. I can hear the harmonic on my radio even in fm band > 90mhz. I'm trying to use a passive rc low pass filter but it seems it doesn't have any affect. Is there a way to create a wave that doesn't have harmonics? Either using some filter or by software?