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.

Port Mapping for MSP430f5529

Other Parts Discussed in Thread: MSP430F5529

Hello,

I am trying to use the port mapping module of the MSP430f5529 microcontroller.

The port mapping module is required since I have an input at port 4 which requires an interrupt, however, port 4 does not support interrupt on its own.

I have successfully mapped the pin to Timer B Capture and Compare Register (TB0CCR0A), however, I found out that this port is also connected to Port 5 of the MCU, thus the two signals somewhat overwrite each other during the code.

According to the User's Guide of the microcontroller, the port mapping also allows mapping to TA0CCR, or the capture input of timer A. However, the definition for the port mapping, PM_TA0CCR0A, which is the mnemonic for the function, is not defined in the header file, msp430f5529.h.

I also looked for it in the datasheet for both MSP430f5529 as well as the family user guide for msp430x5xx Family. But the definition for PM_TA0CCR0A is not defined. 

Does anybody know the defined value for PM_TA0CCR0A? 

Thanks and Good day!

Regards, 

Roman Lorenzo A. Balayan

  • Hi Roman,

    No, the port mapping controller in the MSP430F5529 cannot map any TAxCCRy function to port 4.  A given MCU (like the '5529) has only a subset of the functions described in the User Manual.

    You must use a TB0CCRx function.  To prevent conflict with other port pins that can also provide the same TB0CCRx function, do *not* set the PxSEL.y bit for the other port pins. In your case, P5.6 will *not* function as TB0CCR0 if you do not set P5SEL.6.

    Jeff

**Attention** This is a public forum