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.

MSP430FR2111: CCS version of SW I2C Slave code (now IAR)?

Part Number: MSP430FR2111

Customer is debugging 100 kHz I2C Slave connecting to a host from SW_I2C_slaa703a.pdf app note/code.

>>With 8-MHz MCLK, software slave I2C can achieve 100-kHz SCL clock frequency using assembly code and 43-kHz SCL clock frequency using C code.

P. 7 (and my scope confirms 43 MHz SCL clock with FR2111_SW_I2C_Slave coming from FR2311_HW_I2C_Master ), seems to say to use ASM for 100 kHz.

>>The provided assembly code supports only IAR Embedded Workbench IDE.

From p. 8 of app note),  looks like the assembly version is IAR and not CCS. Do we have a CCS version?

Have seen posts like the following with people manually converting.IAR assembly to CCS

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/447408/converting-assembly-from-iar-to-ccs

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1073562/msp430f1611-convert-a-iar-project-in-assembly-to-ccs

How hard would converting  be for about 400 lines of FR2111_slave_i2c_isr.d43? Just syntax or lots of assembly instruction differences?

[Quick comment. we were able to run an FR2433 version of the SW I2C C code, successfully writing ~83 kHz SW I2C Slave with FR2433 running 16 MHz clock (from the I2C Master FR2311 Launchpad).

 So might not need the FR2111_SW_I2C_Slave_withASMcode]

  • Hello Joe,

    I'm glad you where able to move forward here.

    To answer the assembly question, you would just need to look at the differences of syntax between the compilers, so you will need some of the links in the posts you already have found for that information. 

    As to how hard? Depends on how well you work in assembly :) 

**Attention** This is a public forum