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/TMS320F28069M: Does any suitable i2c example code can suggest to me?

Part Number: TMS320F28069M
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hello, I am a student who is new to use CCS and TMS320F28069M. I only have used arduino before. And in this project, I need to use 2 x TMS320F28069M, 2 x Lora shield v1.4, and 1 x PAC1934(four channel power/energy monitor) to do a wireless i2c communication. In other words, I want to receive the data from PAC1934 by using TMS320F28069M (client part). Then, I can use CCS to read the data from TMS320F28069M (client part) by connecting the TMS320F28069M (server part) to the computer.

There is a similar example by using arduino with no sensor or power monitor. https://www.instructables.com/id/How-to-Get-Sensor-Data-From-a-Remote-Arduino-Via-W/  

The questions that I have got:

1. Does any suitable i2c example code can suggest to me?

2. Can I powering the Lora shield v1,4 (3.3V)and the i2c commuication with PAC1934(5V) by using TMS320F28069M (client part)? Can I use this method?https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/682843?LAUNCHXL-F28069M-Powering-the-LaunchPad-with-an-External-Source 

I hope someone can help me. thank you.

I am sorry if my English is bad.

  • Hi Anson,

    Answers to your questions below:

    1. There are a couple example codes I can point you to.
      1. One in the C2000WARE install that's interrupt based
        1. C:\ti\c2000\C2000Ware_2_01_00_00\device_support\f2806x\examples\c28\i2c_eeprom
      2. One provided in the E2E post below, that should be simpler to work off and is not interrupt based. The functions can be re-used easily for your application
        1. https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/773846
    2. Are you meaning using the F28069 LaunchPad for power? And if so how are you planning on powering it, i.e. through the on-board 5V USB or some external PWR? As mark stated, the F2806x MCU / LaunchPad needs 3.3V PWR to operate.

    Best,

    Kevin

  • Hi Kevin,

    Thanks for replying me and give some example codes. I will try on them later.

    Regarding to the question 2, I would like to power the F28069m externally. Can I powering it by connecting like this?

    5V from supply -> pin41(F28069m)        <--------Can this powering all of the pin? just like using 5V USB?

    GND -> GND

    Do I need to one more supply to MCU separately? If yes, How to provide 3.3V to MCU? (using J9?)

    I afaid that I will short the board so I would like to confirm whether my statements are correct or not. 

    Thanks,

    Anson

  • Hi Anson,

    OK, I see.

    Anson Lo said:

    Regarding to the question 2, I would like to power the F28069m externally. Can I powering it by connecting like this?

    5V from supply -> pin41(F28069m)        <--------Can this powering all of the pin? just like using 5V USB?

    GND -> GND

    No, this won't work. There is no 5V to 3.3V converter on the C2000 side of the board. Only 5V USB to 3.3V on the XDS100 side, which can be jumped over to the C2000 side (though this breaks the isolation barrier).

    You'll need to supply 3.3V to the C2000 side some way. Connecting 3.3V / GND to J9 would work.

    Best,

    Kevin