Jump to content

Number of PWM outputs on MSP430F5529 Launchpad?

Recommended Posts

I found out from this post that there are 14 PWM outputs possible on the MSP430F5529 microcontroller, and 10 PWM outputs possible on the MSP430F5529 Launchpad. How many are possible when using Energia? I think it is less, but I can't tell from the .h file. I will be using a custom BoosterPack so it doesn't have to stick to that standard.





Link to post
Share on other sites

look at hardware/msp430/variants/launchpad_f5529/pins_energia.h for the digital_pin_to_timer[] array.


Entries with a Tx[AB]x type of notation are timer pins, but only ones ending in >=1 are usable for PWM (e.g. T2A0 isn't PWM-able).

As of Energia 13 and previous, I don't believe the Timer_B pins (TxBx) are usable due to a lack of infrastructure for setting the Port Mapper settings for the timer/PWM pins, so only the TxAx pins are available at the moment.


I have a pull request open in the Energia project to enable latched updates to the PWM as well as proper port-mapper support for chips that require it. https://github.com/energia/Energia/pull/449

Link to post
Share on other sites

The image shows 9 purples, but I believe P1_7 and P2_3 can't be used for a PWM outputs because they correspond TA1.0 and TA2.0. So that implies 7 PWMs are possible.


The .h file digital_pin_to_timer also lists seven that are >=1 at the end and are not B ports. It would be great to free up TB0.5 and TB0.6, but these are marked as reserved on the BoosterPack pinout standard, so maybe that's why. Maybe that is also the reason for TB0.2 which is marked **.  BTW, something is funny about that last line of digital_pin_to_timer because T0B1 is not on P4.7. 


Bottom line, the answer to my question appears to be 7. Thanks for the help!

Link to post
Share on other sites

Join the conversation

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

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