This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP-EXP430F5529 Experimenter Board (PWM Outputs)

Other Parts Discussed in Thread: MSP430F5529

Hi all,

The MSP430F5529 offers Timers that can provide PWM outputs.

I would like to know if it’s possible to get PWM outputs out of the

MSP-EXP430F5529 experimenter board? From the datasheet it looks like these pins are 

set to LCD and for other purposes. Is it possible to set the available output port pins to these PWM outputs from timers?

Any help is greatly appreciated.

Thank you.

  • The F5529 includes port mapping on the port 4 pins, and all 8 of the port 4 pins are brought out on headers on the MSP-EXP430F5529 experimenter's board. Therefore, by correctly configuring the port mapping controller on the part, you should be able to bring the PWMs out on any of the port 4 pins that you'd like.

    Regards,

    Katie

  • Dear Katie,

    Thank you for your reply.

    I actually came across a sample code that uses the Timer B to generate the PWM outputs.

    When we use Timers the PWM outputs are actually set to the respective output pins in F5529.

    For instance, for Timer B the PWM outputs (TB0.0 to TB0.6) are sent to (P5.6, P5.7, P7.4, P7.5, P7.6, P3.5)

    Out of these P7.6, P7.4, P5.6, P5.7 are set  to LCD outputs in the experimenter board.

    Likewise, the PWM outputs of timer A is set to (P1.1 to P1.5). These are not available in the output headers.

    Could you please tell me if its possible to set the PWM outputs of these timers to port 4 pins? or are they hardware configured?

    Thanks...

  • I wrote the example code for this app note so that the PWM outputs from timer B would come out on Port 4 pins for exactly the reason of being able to test it on an MSP-EXP430F5529 experimenter's board. Look at the F5529 code example in the folder, the portion concerning the Port_Mapping() function and P4 registers. You should be able to use all of the timer setup from your other code example, just see the port configuration done in this example (the code example in this app note is for a special, non-standard way of doing PWMs on the timer, so you might want to ignore the timer part of the code).

    Zip file: slaa513

    The port mapping controller is documented in the 5xx user's guide and the F5529 datasheet for reference.

  • It works. Thanks a lot Katie.

    Vignesh.

  • Hi Katie,

    Is this port mapping feature available for the hall sensor input pins as well?

    Again the experimenter board does not provide access to port 1 pins.

    Please clarify.

    Thanks & Regards,

    Vignesh.

  • Hi Vignesh,

    There isn't anything designated as a "Hall sensor input" on the MSP430F5529, but I'm guessing you are maybe trying to use this app note (slaa503), which runs on an F5529. Any Port pin can be used as a GPIO input, no port mapping required. But, if you are using the above app note, this code needs to use interruptible GPIO inputs for the Hall sensors, so you need to use either port 1 or port 2 (these are the interruptible GPIOs on the F5529). If you look at the MSP-EXP430F5529 on the upper right portion of the board there are headers where several port 2 pins are brought out. Of course you'll need to check these against the schematic to see if there's anything else connected to these pins that could affect your interrupts.

    If you look at the schematic and it ends up turning out that the port 2 pins are all being used already, I'd recommend moving to one of the FET target board for the MSP430F5529 (http://www.ti.com/tool/msp-ts430rgc64usb or http://www.ti.com/tool/msp-ts430pn80usb) - this board brings out all of the pins on the part with only minimal connections to get the part to run and for the USB to work, so you'd really have access to whatever pins you'd like.

    Regards,

    Katie

  • Thanks a lot Katie.

**Attention** This is a public forum