Jump to content
Forum sending old emails Read more... ×
curtis63

MSP430G2553 PWM Accuracy

Recommended Posts

I need to have a very accurate PWM frequency generated with my MSP430G2553IRHB32R.  I'm shooting for 25.1khz.  However, when running on different boards, I can see variances of up to 3khz in the frequency.  I understand this is due to the slight inaccuracy in the processor's internal clock.  So, I would like to attach an external crystal or oscillator to it but don't know how.  I've read a couple places that say that this chip doesn't support a crystal, but that I could use an oscillator.

The questions I have is how does one connect the oscillator, and what code changes are necessary to take advantage of the oscillator?

Thanks.

Share this post


Link to post
Share on other sites

slaa322c.pdf

 

See slaa322c.pdf at TI.com.  Also look at the documentation for the LaunchPad to see how they did it.  There is more information in the datasheet and family users guide   

If I remember correctly there is a firmware example in CCS on how to use the external oscillator.  Energia does it automatically.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×