Pages: [1]   Go Down
Author Topic: Setting the PWM frequency to 25kHz - Arduino Due  (Read 1782 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Jr. Member
**
Karma: 1
Posts: 65
Good Vibes, Bad Vibes, Random Vibe
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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
Logged

Offline Offline
Full Member
***
Karma: 1
Posts: 124
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Pages: [1]   Go Up
Jump to: