I need to read and identify between different wave signals(sine, triangle and square), and I decided to use an inverter to get a spwm but I don\'t know how to read it while