I've recorded the wave form when using the hardware PWM modules on the chip to explain the issue I'm getting.



If you compare this to using the multi_swpm file and port D you notice there are loads of spikes in the HWPM signal and some harmonics ? - the amplitude is also a lot less (I had to increase the volume for the HWPM to get a similar trace)