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.

Compiler/MSP430FR2111: changing of port pin for MSP430FR2111

Part Number: MSP430FR2111

Tool/software: TI C/C++ Compiler

Hi,

I am using MSP430FR111 MCU, default port for MISO is P1.6 and for MOSI it is P1.7 which i want to change  MISO to P1.2 and MOSI to P1.3. Please tell me how to change my MISO and MOSI port from P1.6 & P1.7 to P1.2 & P1.3.

Please reply as soon as possible

Thanks

Rohit 

  • Hi Rohit!

    The MSP430FR2111 cannot change it's pin functions - the controller does not support port mapping. When using the USCI module, you have to take P1.6 and P1.7. If this is not possible you could use bitbanging on any pin, but this has to be done in software. This is no problem at all when only transferring small data packets - it depends on your application.

    Dennis
  • Hi,

    What is the software configuration to use P1.2 and P1.3 as UCA0SOMI and UCA0SIMO.

    Rgds

    Chandra

  • Oh, the device has this function on multiple pins - that's a difference, sorry. I thought you want to have the function on some pins of your choice. In this case you can remap the function, of course. Have a look at the SYSCFG3 register of the device. The USCIARMP bit controls wether P1.4 to P1.7 or P1.0 to P1.3 are used for USCI A0 (user's guide 1.16.6.4). Furthermore look at table 6-34 of the datasheet to see the required port configurations.

**Attention** This is a public forum