Jump to content
43oh

MSP430 - Change PWM Frequency


Recommended Posts

Hey guys!

 

I'm having some fun with my MSP430 and started to play with the Energia IDE so I can make some tests faster than by the standard library of the microcontroller.

 

But I've searched on the reference and saw that the only function to use with PWM is analogWrite()... 

 

How could I change the frequency of the PWM instead of only its Duty cycle?

 

Thank you guys!

Link to post
Share on other sites

Hey guys!

 

I'm having some fun with my MSP430 and started to play with the Energia IDE so I can make some tests faster than by the standard library of the microcontroller.

 

But I've searched on the reference and saw that the only function to use with PWM is analogWrite()... 

 

How could I change the frequency of the PWM instead of only its Duty cycle?

 

Thank you guys!

Use
analogFrequency(xxxxx);
Link to post
Share on other sites
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...