generation square-wave signal | Cypress Semiconductor
generation square-wave signal
I want to generated a square-wave signal with adjustable pulse width and frequency so I think the best will be use PWM module.
This signel had also adjustable voltage level so I need DAC module.
I want to do so that the PWM module generates a signal. On the rising edge I set one voltage level and on the falling edge I set second voltage level.
I know that PWM can generated only one interrupt so PWM module will be generated interrupt on the rising edge. How can I generated interrupt on the falling edge ? I may use GPIO to generated this interrupt but in my projekt all pins have used.