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.

USB-I2X Program sequence for changing mode for PCM186x EVM

Other Parts Discussed in Thread: PCM1864, PCM9211, PCM1865EVM

Hi~

I am using PCM186x EVM and PurePath Console2.

I want to change mode in my applications. Can I get sample program for it?

  • Hi Jaein,

    For future reference if you want to see which registers have to be changed to switch modes you can enable logging in PurePath Console 2 (check box in the bottom right). Upon switching modes in the GUI the log will document the register changes. To view the changes click on the "view log" button. I have pulled the changes that the GUI performs after the device goes through startup.

    Below are the 3 modes and what registers the GUI changes upon switching:
    Note: Address 80 is the PCM9211 and address 94 is the PCM1864

    #Mode0
    w 80 40 00
    w 80 6d ff
    w 80 6e ff
    w 80 6d f0
    w 80 6e 0f
    w 80 34 c2
    w 80 6b 00
    w 80 6f 40
    w 80 60 44
    w 80 78 3d
    w 94 20 01

    #Mode1
    w 80 40 00
    w 80 6d ff
    w 80 6e ff
    w 80 6e 0f
    w 80 6f 40
    w 80 60 44
    w 80 78 3d
    w 94 20 11

    #Mode2
    w 80 40 00
    w 80 6d ff
    w 80 6e ff
    w 80 6d 00
    w 80 6f 40
    w 80 6b 55
    w 80 6d 00
    w 94 20 01

    Regards,
    Mike
  • Hi, Mike!

    Thank you for your information.

    But I want to make like simple pure path console program.

    I am not familiar with I2C.  I think you have a library for your board.

    If you don't have, could you make sample code for that.

    I got libusb-win32-bin-1.2.6.0. I can find Vid, Pid of PCM186x EVM board using that program.

    I attach the files. Could you change it can work PCM186x EVM board control.

    Thank you

    Jaein Kimusb_test.zip

  • I am not too familiar with libusb-win32-bin-1.2.6.0. After a brief look through some of the code it looks like you have a way to write to registers with the i2c1_write() function. I have already provided the registers you need to change to switch modes. I will clarify the syntax I provided in my previous post which should be able to translate into the functions you already have.

    Example:
    w 80 6d 00

    w = write
    80 = address of the device
    6d = specified register (in hex)
    00 = value to assign to the specified register (in hex)

    -Mike

  • Dear Mike,

    Thank you for kind information but I know and undersand.

    I want to know how to send "w 80 6d 00" in my computer except PurePath console.

    I want to send that command in my program. I think library or dll file for USB-I2X board.

    I have one more problem. I think the board does not work.(It does not light 3.3v LED in PCM1865EVM board.) Is there any method fix or change it?

    Sincerely.

    Jaein Kim

  • Hi Jaein,

    It does sound like your USB-I2X board is broken (the 3.3V light should be on when the board is powered). Can you get a replacement from your local TI distributor?

    In the meantime I will look into the command for your program.

    Regards,
    Mike Ulrich