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.

omapl138 i2c slave

Other Parts Discussed in Thread: OMAP-L138, OMAPL138

Hi,

I am trying to write a program which will my custom board will act as a slave I2C. I am using USB-I2C/SPI/GPIO Interface Adapter (DLN-2) which acts a master I2C, which read and write to my my custom board through I2C. I tried the code in evmomapl138_i2c.c and tried the i2c_init, read and write functions but I could not output the result when the DLN-2 tries to read it.

I have also set the ICOAR, ICIMR, ICSTR, ICCLKL, ICCLKH, ICCNT, ICDXR, ICSAR registers etc following the i2c guide.

Can anyone guide me on how to program the Omap-l138 to respond when it, a master I2C request for data?

  • Hi Shao Ying Cho,

    Are you using BIOS + PSP drivers?

    Can you please respond with the software versions you are using for the following?

    1. PSP drivers
    2. BIOS
    3. XDC tools
    4. Compiler (CG tools)

    Steve

  • Hi,

     

    I am running it on code composer studio v5 through the debugger on jtag.

     

    I am using psp_driver 1_30_00_06

    BIOS 6_33_01_25

    XDC tools 3_23_00_32

     

    how do I set the omapl138 to reply to the my diolan card (I2C master) do i just have to set the i2c registers?

  • Hi,

     

    anyone can help? I been using the sample code functions such as evmomapl138_uart.c and it is working fine. But i cant seem to get evmomapl138_i2c.c functions to be working. I have set the pinmux, I use i2c_init to initialize it to 100Khz, how to I send out the I2c data? do I just call i2c_write? I read throught the i2c guide it seems that i2c_write functions set the i2c registers setting that are required so I do not have to set any value to the registers?