1 Reply Latest reply on Dec 2, 2015 12:29 PM by user_342122993

    generation square-wave signal

    ukasz.nawrotek
              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.