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.

CCS/MSP430FR2633: i2c confusion with MSP430FR2633

Part Number: MSP430FR2633
Other Parts Discussed in Thread: MSP430WARE, CAPTIVATE-FR2633, CAPTIVATE-PGMR

Tool/software: Code Composer Studio

I am a newbie swapping over from PIC and just getting started with CCS and MSP430.

My first problem is with I2C, the "suggested" I2C library within CCS (resource centre) for MSP430FR2633 is DriverLib which has quite a complex implementation of I2C (coming from PIC!) using EUSCI_B_I2C...... API but the MSP430 family user guide uses  UCBx...API. As far as I can see both of these refer to the same hardware implementations but come at I2C in very different ways, and to be honest the MSP430 family user guide is a lot more accessible to a newbie getting their feet wet. Can someone explain the reason for two quite different ways to implement I2C and which is the preferred option.

Many Thanks

  • Welcome to CCS/MSP430! When talking about the MSP430 User's Guide UCBx notation you are actually referring to the eUSCI_B I2C registers that the Driver Library functions access to control the I2C communication. Looking inside of the eusci_b_i2c.c file of the driverlib/MSP430FR2xx_4xx folder you can see how the EUSCI_B_I2C API is meant to ease development by controlling the UCBx registers at a higher level. But C code examples are provided if you would like to avoid DriverLib and control the registers manually: www.ti.com/.../slac700

    Regards,
    Ryan
  • Ryan, many thanks for your response. That makes sense and I will apply it tomorrow when I get back to work on the MSP430. Whilst I have you here I wonder if you could help, I was looking for a tutorial that would give me an overview of CCS ...whats where, what does what, code examples from blinking led up etc. I think the problem is that I have entered the MSP430 world via the MSP_CAPT_FR2633 development board. I have been through the tutorials for Design Studio, which are excellent and given me a good introduction to capacitive touch. but there isnt really anything that relates to getting started with CCS (that I can find!). Can I use a different development board as a guide to CCS/MSP430 i.e. basic tutorials that are still apllicable to the MSP430FR2633

    Again thanks for your help

    Sean

  • Hey Sean,

    My recommendation is to get familiar with the compiled resources from MSP430Ware that can be found inside of CCS's TI Resource Explorer. Here you can find C code examples (Devices folder), Driver Library examples (Libraries folder), and examples for specific LaunchPads and BoosterPacks (Development Tools folder). CCSTUDIO-MSP also offers Getting Started Guides and MSP430 Workshops:

    processors.wiki.ti.com/.../Category:CCS_Training
    processors.wiki.ti.com/.../Getting_Started_with_the_MSP430_LaunchPad_Workshop
    training.ti.com/msp430-workshop-series
    www.ti.com/.../overview.page

    You could choose to purchase a LaunchPad to help you get started with MSP430 resources but we do not yet offer a CapTIvate LaunchPad. Fortunately you are able to use the CAPTIVATE-PGMR and CAPTIVATE-FR2633 as a development platform.

    Regards,
    Ryan

**Attention** This is a public forum