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.

I2C memory tool in PPS

Other Parts Discussed in Thread: TLV320AIC3254

Hi 

I used I2C memory tool in PPS (v. 5.95 build 1 revision 34798) to read a register value.

After I executed the cfg file,it returned "I2C file executed" at the bottom of window (see attached picture).

But where are the data being read? The Read/Write on the top portion did return data when I read.

Do I need to do some special settings to display data when executing cfg file? Thanks.

Kevin

  • Hi, Kevin,

    Do you have the TLV320AIC3254EVM connected and running? In order to use the I2C tool it is necessary to have an EVM connected at the PC.

    Best regards,
    Luis Fernando Rodríguez S.
  • I did connect to a DANCEVM which contains AIC3254 and running.
    I can use the Read/ Write button on the top portion of the window to read/ write I2C data successfully. So I think I2C is connected OK.
    There is only one line in my I2C command file.
    r 08 0C 3
    Thanks for your help.
  • Hi, Kevin,

    The I2C command file must be in the correct format to have a successful write/read. Please modify your I2C command file to be in the format below:

    r 30 xx yy

    r (read command)
    30 (TLV320AIC3254 I2C address)
    xx (register address)
    yy (register data)

    This command line must be in hex format.

    Best regards,
    Luis Fernando Rodríguez S.
  • Hi Luis,

    Thanks for pointing out the correct I2C command structure.

    I would like to read 3 bytes starting from 0xC at page 0x8 (see the picture below) and 

    When I executed the cfg with the command " r 30 0C 3", it returned nothing.

    Do I need another command line to direct to page 8?

    Thanks for your help.

    Kevin

  • Hi, Kevin,

    Effectively, you would require another command line to read in another page. Please write the following command line to read registers of page 8:

    w 30 00 08 (page 8 selected)

    Then, you may read any register of that page.

    Best regards,
    Luis Fernando Rodríguez S.
  • Hi Luis,
    The additional line works. Thanks for your advice.
    But it actually works when I executed .cfg file in Tools> I2C command files, not in Tools> I2C memory tool as shown in the first picture I attached.
    And the results were found in .log file in the same folder of .pfw file. Is this the correct location of data output?

    Kevin
  • Hi, Kevin,

    That's correct. The .log file is used to store the read values.

    I also suggest to use the Read/Write tool of the I2C window. This tool can be used to read or write directly the registers of the AIC3254EVM. You only need to place the page, initial register and registers to read. Please take a look at the picture below for details:

    Best regards,
    Luis Fernando Rodríguez S.