It looks like the signal is getting chopped due to the reasons mentioned above. It's clear the top of the sine wave has been displaced to the negative side of the graph - like reversed polarity. Maybe worth a look at the code?
↧