Go Down

Topic: Setting the PWM frequency to 25kHz - Arduino Due (Read 1 time) previous topic - next topic

xaximpvp2

Hi guys,
I would like to set the frequency of the PWM (Arduino Due) to 25Khz with 12 bits resolution... Please, can anyone help me?

Thank you,

Ricardo.

randomvibe


The "pwm01.h" library will accommodate your needs.  Library, instructions and example in link below.  The function "pwm_set_resolution" sets the resolution in bits.  If needed, you can setup two separate PWM frequencies in the same program.  Good luck.

http://forum.arduino.cc/index.php?PHPSESSID=povm0bi5ipfp6s6o33a226h4s0&topic=144446.msg1149044#msg1149044

so3ody

Hi guys

How can I modify the pwm01.h in order to generate a 120 degree   phase shift between 3 pwm signals ?

Thanks in advance

Go Up