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.

MSP430F67791: How to Port Mapping

Part Number: MSP430F67791
Other Parts Discussed in Thread: MSP430WARE

Hi sir,

       Now i am working with MSP430F67791 chip.But i need BSL_TX and BSL_RX pin.How to use port mapping.Give me some example source code and also how to get data from PC to BSL_Rx and how to give data to BSL_Tx to PC.Give me some example source code for MSP430F67791.I am new for TI.Please do the needful.As soon as possible.

Thanks,

Ashokkumar

  • Hi,

    for information on the port mapping I'd first direct you to the MSP430x5xx and MSP430x6xx Family User's Guide Chapter 13 Port Mapping Controller. It will help you to understand how to use the port mapping.

    We also provide some code examples on using the port mapping controller in MSP430Ware. Those are also accessible in Code Composer Studio ->TI Resource Explorer->Software -> MSP430Ware ->Devices -> MSP430F5xx_6xx-> MSP430F67791-> Peripheral Examples -> Register Level ->MSP430F677x_PORTMAP_xx.c

    It shows how to configure pins as Timer, but it's pretty similar for other mapped functions. Please note that the BSL functionality cannot be mapped though as the configuration is invoked by the BSL entry sequence only.

    Your second question is centered around the functionality of BSL (if I understood you correctly). I'd first direct you to our Bootloader for MSP low-power microcontrollers web page which links to all important collateral and get started easily.

    Please let me know if this helps and if there are any additional questions.

    Thanks and best regards,

    Britta

  • Hi,

       Please give me example code for Exactly port mapping for BSL_Tx and BSL_Rx pin deatils.I dont know port mapping.Pls reply as soon as possible.

  • Hi,

       Now i have define some port mapping details for BSL-Tx and BSL_Rx.Please check and tell correction for me because code is not working.

    #define P2DIR_INIT (0)
    #define P2SEL0_INIT (BIT0+BIT1)
    #define P2SEL1_INIT (BIT0+BIT1)
    #define P2OUT_INIT (0)

    void PortMapping(void)
    {
    PMAPKEYID = 0x2D52;
    PMAPCTL = PMAPRECFG;
    P2MAP0 = PM_TA0_0;
    P2MAP1 = PM_TA0_1;
    }

  • How to configure baudrate details on BSL Tx and BSL Rx pin and Data tx and Data Rx details on DMA.Pls Tell me as soon as possible.
  • Hi,

    after going through this again the following correction applies: To configure the pins for BSL mode, port mapping is not applicable.

    The pins will be configured accordingly after applying the BSL entry sequence which is described in SLAU319 MSP430 Flash Device Bootloader User's Guide.

    With regards to the DMA. Please check the according chapter in the User's Guide and let me know with regards to which details you have follow up questions. We also provide code examples for DMA usage, you'll find those in the same tree as indicated for port mapping examples, just browse to DMA within the Register Level folder.

    Best regards,

    Britta

  • Hi,
    I am new for the port mapping topic.I have seen table 14 in datasheet,only explain SPI pin details.Please explain step by step process for port mapping. Please guide meAs soon as possible.
  • In my source code only define the following pins only.There is no define for BSL_tx and BSL_Rx pin.How to define BSL_tx and BSL_Rx pin.
    #define PM_NONE 0
    #define PM_UCA0RXD 1
    #define PM_UCA0SOMI 1
    #define PM_UCA0TXD 2
    #define PM_UCA0SIMO 2
    #define PM_UCA0CLK 3
    #define PM_UCA0STE 4
    #define PM_UCA1RXD 5
    #define PM_UCA1SOMI 5
    #define PM_UCA1TXD 6
    #define PM_UCA1SIMO 6
    #define PM_UCA1CLK 7
    #define PM_UCA1STE 8
    #define PM_UCA2RXD 9
    #define PM_UCA2SOMI 9
    #define PM_UCA2TXD 10
    #define PM_UCA2SIMO 10
    #define PM_UCA2CLK 11
    #define PM_UCA2STE 12
    #define PM_UCA3RXD 13
    #define PM_UCA3SOMI 13
    #define PM_UCA3TXD 14
    #define PM_UCA3SIMO 14
    #define PM_UCA3CLK 15
    #define PM_UCA3STE 16
    #define PM_UCB0SIMO 17
    #define PM_UCB0SDA 17
    #define PM_UCB0SOMI 18
    #define PM_UCB0SCL 18
    #define PM_UCB0CLK 19
    #define PM_UCB0STE 20
    #define PM_UCB1SIMO 21
    #define PM_UCB1SDA 21
    #define PM_UCB1SOMI 22
    #define PM_UCB1SCL 22
    #define PM_UCB1CLK 23
    #define PM_UCB1STE 24
    #define PM_TA0_0 25
    #define PM_TA0_1 26
    #define PM_TA0_2 27
    #define PM_TA1_0 28
    #define PM_TA2_0 29
    #define PM_TA3_0 30
    #define PM_ANALOG 31
  • Hi,

    I need to apologize to you.

    It seems that I got confused and made it worse for you.

    I really appreciate your patience with me and please let me explain to you now:

    You'll use the port mapper in general to switch between different functionalities on a certain pin. This is also reflected in the definition you've posted above.

    In case of BSL you won't do the configuration via firmware though. Therefor you won't find it in the definition and also not in the Port Mapper table. I've got that wrong before - sorry.

    BSL mode will be invoked by applying an external entry sequence. You'll find the details to the sequence and how to apply it to the right pins in the MSP430 Flash Device Bootloader (BSL) User's Guide. You'll find information on the entry sequence in Section 1.3 of this User's Guide.

    Please note that in case you want to use I2C interface for BSL external pullups will be required.

    I really apologize that I didn't direct you away from Port Mapping right away.

    Best regards,

    Britta

  • Hi,

    I've cleaned up the thread and provided the right information.
    Thanks for your understanding and I hope we can make it work now.

    Best regards,
    Britta
  • Hi,

         Now i need to port mapping for P2.0 And P2.1 for UART0. Now i will declare the follwing Step.This pin is now not working on UART0 tx and Rx

    what happen pls guide me

    #define P2DIR_INIT (BIT0)
    #define P2SEL0_INIT (BIT0+BIT1)
    #define P2SEL1_INIT (BIT0+BIT1)
    #define P2OUT_INIT (0)

    void PortMapping(void)
    {
    PMAPKEYID = 0x2D52;
    PMAPCTL = PMAPRECFG;
    P2MAP0 = PM_UCA0TXD;
    P2MAP1 = PM_UCA0RXD;
    }

  • Hi,

    let me quickly capture the conversation so far:

    To make use of the BSL pins P2.0 and P2.1 there is no configuration of pins required via software. The configuration will automaticlaly be invoked by the chip when the user applies the entry sequence as described in the BSL User's Guide (I've highlighted the link in my previous posts).

    You're now asking about configuration of the UART0 module. This is not connected to the BSL question, right?

    You can map UART0 Tx and Rx to P2.0 and P2.1. You'll find the possible options for example when looking at the Terminal Functions table in the datasheet ( Table 4 and Table 5). The default port mapping for those two pins will be Timer_A though.

    Please let me know in case anything is unclear.

    Best regards,

    Britta

  • HI,

        Now map the P2.0 and P2.1 pin to UART0.Now working fine.But your said cannot map UART0 Tx and Rx to P2.0 and P2.1 as the mappable functions are predefined.But my code is working fine using P2.0 and P2.1 as UART0.

  • Hi,
     
    i might have misunderstood.

    Yes, port mapping will work, UART0 is just not per default on those two pins so I was directly thinking to use the other two pins which are per default mapped to UART0, as you'll also use BSL on P2.0 and P2.1 (and I wasn't sure if application wise it adds to much complexity using the same pins unless strictly necessary).

    I"m happy it works for you though.

    Are there more open questions on Port Mapping?

    Regards,

    Britta

  • Hi,

    as I didn't hear back from you in a while I assume that your issue has been solved.
    Please go ahead and verify the given answer to also help other users that might run into the same issue.

    Note that I'll go ahead and close this thread in the next couple of days if I don't hear back from you. Replying to the thread will re-open it if necessary at some point.

    Best regards,
    Britta

**Attention** This is a public forum