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.

machine readable datasheet for msp430 uCs

Other Parts Discussed in Thread: CC430F5137, MSP430FR5969, MSP430FR5994, MSP430FR2355, MSP430FR2433, MSP430FR2476, MSP430FR4133, MSP430F5529, MSP430F5510

I'm looking for machine readable files that contain pin name, pin function and control bits needed for every of these functions for all msp430 micros. is there any up-to-date tool that contains at least a subset of this?

for instance in PIC land there is a MPLAB Code Configurator that allows users to create all the initialization code for pins, clocks, timers, serial comms etc from a GUI for some of their micros. this tool's backend would need exactly the files I'm looking for. I'm not familiar with CCS, but looking at it's installed files did not reveal anything useful. ccs_base/msp430/include_gcc/devices.csv is in the right direction, but unfortunately it's got nothing pin related.

extracting this information automatically from the device pdfs is not impossible, but it would be prone to parser errors.

  • Hi,

    Are you looking for something in the below link?

    https://www.ti.com.cn/tool/cn/MSP430-GCC-OPENSOURCE

    Best regards,

    Cash Hao

  • no, let me explain. that's a link to the toolchain that I'm already using. it contains the headers for all the msp430 micros, but it does not provide a link between the device pin names and the supported functions/peripherals, it's expected that the user links the two based on information from the datasheet.

    for instance, in order to output SMCLK to a pin on a msp430 microcontroller, one needs to initialize the function like this:

    #if defined (__CC430F5137__)
    P3DIR |= BIT7;
    P3SEL |= BIT7;
    #elif defined (__MSP430FR5994__) || ((__MSP430FR5969__))
    P3DIR |= BIT4;
    P3SEL1 |= BIT4;
    #elif defined (__MSP430FR2355__)
    P3DIR |= BIT4;
    P3SEL0 |= BIT4;
    P3SEL1 &= ~BIT4;
    #elif defined (__MSP430FR2433__) || (__MSP430FR2476__)
    P1DIR |= BIT7;
    P1SEL0 &= ~BIT7;
    P1SEL1 |= BIT7;
    #elif defined (__MSP430FR4133__)
    P8DIR |= BIT0;
    P8SEL0 |= BIT0;

    #elif defined (__MSP430F5510__) || (__MSP430F5529__)
    P2DIR |= BIT2;
    P2SEL |= BIT2;
    #endif

    this link between pin name (for CC430F5137: P3.7), pin function (SMCLK) and control bits (P3SEL & BIT7, P3DIR & BIT7) is taken from the pdf. I'm hoping that there are also machine readable files that provide this information so that code like the one above can be generated automatically, like MPLAB Code Configurator provides this feature for PIC microcontrollers.

    again, I'm looking only for the datasheet-equivalent machine readable files for all msp430 microcontrollers, let me worry about the tool/script that generates the code from it. in my first post I referenced a file from the CCS for Linux package that is a csv containing all supported msp430s and columns that contain memory map pointers for each. this is info available in the device datasheet, but it's used by CCS internally for sanity checks, linking etc. I expect a similar file exists for pins/functions/peripherals/control bits in some other TI tool.

    I hope this is a better explanation.

  • Hi,

    I get what you are looking for now. However, as far as I know, I do not think we have the exact same thing you need.

    For each MCU, we have a dedicated head file not a combined one.

    I can check with our software team on it for more details. But I am not guarantee anything.

    Best regards,

    Cash Hao

**Attention** This is a public forum