Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
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.