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.

MSP430F449 to MSP430F4616

Other Parts Discussed in Thread: MSP430F449, MSP430F4616

Hi,

I'v code that run on MSP430F449 .

now I want it to run on MSP430F4616.

I run it under Rowley CrossWorks for MSP430.

 

under Project properties | Target processor I'v update to MSP430F4616.

I'v downloaded the code to target but it doesn't run properly.

what can i do ?

 

thank you very much ahead,

Assaf

  • There ar emore differences between individual MSPs than just the name. So switching the target will tell the fraework that a ew target is used that has different flash/ram sizes or neads special treatment., However, it does not automatically change the code. It even does not change the header files you include in your code (containing register addresses etc.).

    And of course the different MSPs have the same logical functions assigned to different physical pins.

    So the initialization required for your specific application may be different and require changes in the code, even if the MSPs seem to be pin-compatible at first glance (as it seems to be for the 449 and the 4616).

  • Hi again,

    I'v change the header file to "msp430x46x.h" and tried to compile.

    of course i got many errors such as: undeclared identifier 'URXE0', 'U0RXBUF'  and ect.

    i began to write a translation like this:

    #define U0RXBUF		UCA0RXBUF
    #define U0ME ME2
    #define UTXE0 UTXE1
    #define LCDCTL LCDACTL

    Do I need to translate manually all registers? or is there easier way?

    thanks,

    Assaf

  • The "normal" way to write easily-portable code is to isolate all target-dependencies into a (relatively) small set of target-specific files & functions.

    Common names for this are "drivers" or "driver layer" or "Hardware Abstraction Layer" (or "HAL" for short) or "BIOS", etc...

    If you didn't take care to write your code in a portable manner initially, then trying to make it portable can be almost as much work as re-writing it from scratch in a portable manner...

     

  • Hi again,

    two questions about msp430f4616, please:

    1. how do i initialize the LCD?

    2. where can i find another datasheet for msp430f4616, that gives specific information about the LCD and UART registers?

    (on the this official datasheet i could not find)

    thanks ahead,

    Assaf

  • I think the document you require is the MSP430x4xx Family User's Guide?

    Note how the forum automatically converts msp430f4616 to a clickable link. It takes you to http://www.ti.com/product/msp430f4616 - the resource page listing all the supporting materials available for the chip.

    There are application notes there about LCDs - and the Family User's Guide...

    Note that it is quite common these days for semiconductor manufacturers to divide their documentation between a "datasheet" - which gives physical characteristics and just a functional overview - and a "user manual" - which contains the detailed peripheral & register descriptions.

    (the names vary, but the approach is common)

  • Thank you Andy,

    in hebrew we say Toda (תודה)

    Assaf

**Attention** This is a public forum