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.

ADS52J90EVM: ADS52J90EVM: LMK04826 register access through SPI

Part Number: ADS52J90EVM
Other Parts Discussed in Thread: ADS52J90, LMK04826,

Dear Sir/Madam,

We have the ADS52J90 EVM and want to read/write the registers of the LMK04826 and the ADC. The board is connected through the USB cable to a PC. At the PC I am running a Python script in combination with the ftd2xx library. I set the FTDI chip in synchronous bit bang mode and generate the SPI signals to read/write the registers. However, when reading a register the data signal remains low (pin 27 of U6 (FT4232HL)). The only way to get this working is to start the HMC-DAQ GUI and close it again. Then reading a register shows me the data signal will represent the correct value (at least for register 3 which is PLL product device type).

I have some questions:

1. What will the HMC-DAQ GUI tool do at startup that makes SPI read/write possible?

2. Why is the HMC-DAQ GUI tool writing the value 2 to register 0 before each register read action in the "Quick Setup Advanced" tab?

3. The installation folder <drive>\Program Files (x86)\Texas Instruments\HMC-DAQ GUI\Scripts\ADS52J90\QUICK_START\ contains an Init.cfg script with register values for the ADS52J90EVM. However, it contains invalid register addresses for the LMK04826 (0x102 for instance), it also contains wrong register values for the LMK04826 (for instance register 0x17C = 0x15, but should be 0x18). Is this file used?

Best regards,

Frank van Eijkelenburg

  • Hi,

    Thanks for using ADS52J90.

    We will reply your question very soon.

    Thank you!

    Have a nice day!

    Best regards,

    Chen

  • Hi,

    Thank you for using ADS52J90 EVM and hopefully you are using TSW data capture boards (TSW1400 and/or TSW14J56) together.

    since our HMC-DAQ GUI (running for ADS52J90) will need to link and call with HSDC pro GUI each other.

    for your question:

    1. HMC-DAQ GUI (for startup purpose) on its screen will call Init.cfg file onto GUI screen,

    and then you can choose "DUT RESET" button, "Initialize Device" button to startup the ADS52J90 device + LMK device first.

    and after that, you can continue to select different mode (by clicking on the different button) to choose "Data Format" as you request.

    Note: you can see the ADS52J90 User's Guide Figure 17 on Page 17.

    2. When you set the register Address=0x00 data=0x0002,

    that means you enable register to be Readout Mode.

    Therefore, you need to follow the ADS52J90 Datasheet Figure 93 page 77

    and read out the register value serially from SDOUT output pin.

    3. For your concern about the LMK04826 register settings,

    please let me check on it.

    I will return your question again.

    Thank you again!

    Best regards,

    Chen

  • Dear Chen,

    1. If I look at the logic analyzer I do not see the init.cfg is called at startup. I think it is called when I click the "Initialize Device" button. However, without clicking this button I can get my own register read/write to the LMK04826 chip working (just by starting and closing the GUI without clicking the "Initialize Device" button or the "Reset DUT" button. So there must be something done at startup like a reset through the TDI chip or something else.

    2. I read about this for the ADS52J90 chip, but I saw this at the logic analyzer for the LMK04826 chip (inclusive an active chip enable signal). AFAIK, this is not correct.

    3. I will wait for you for more details on this.

    Best regards,

    Frank van Eijkelenburg

  • Hi,

    Please let us know if you are using both ADS52J90EVM and either TSW1400 Board and/or TSW14J56 Board or not?

    Because if you are not, then the GUI may not work correctly for you.

    So could you please confirm this?

    For your question 1 and 2,

    quickly reply to the customer.

    Please look at the following dirctory:

    C:\Program Files (x86)\Texas Instruments\HMC-DAQ GUI\Scripts\ADS52J90\QUICK_START

    you can find init.cfg file.

    This file is required when you are running GUI and click on "Initialize Device" button.

    If you miss this init.cfg file but you still click on "Initialize Device" button,

    you will receive an error message.

    Also, please open the init.cfg file (it is readable),

    you can see this file includes:

    ADS52J90_ADC register, ADS52J90_JESD register and LMK04826 chip setup

    If you can read all the data coming from your logic analyzer,

    then you can see all the register data are set through USB to FTDI chip.

    Thank you!

  • Hi,

    for your 3rd question,

    At the QUICK_START position,

    LMK04826 is not really used a lot for quickly running purpose.

    So some of the commands for LMK04826 are not active at all.

    But later more control signals when using LMK04826 control,

    then their commands needed to be correct.

    You can see other register control in other directory.

    LVDS: 16ch 10x 10b using "ADS52J90_16ch_10x_10b_SINE_DIV1.cfg"
    LVDS: 16ch 12x 12b using  "ADS52J90_16ch_12x_12b_SINE_DIV1.cfg"
    LVDS: 16ch 14x 14b using "ADS52J90_16ch_14x_14b_SINE_DIV1.cfg"

    when using LMK04826, all the register settings must be set correctly in order to work correctly.

    Please refer to other cfg files.

    Thank you!

  • Hi,

    In my first comment you can see that I am asking about the init.cfg. So I have this file at my system. Furthermore, I explained that I am not clicking on the "Initialize Device" or "Dut Reset" button at all. Just starting the GUI and closing it results in a working situation. Finally the init.cfg file contains wrong register values for (at least) the LMK04826 chip.

    Meanwhile, I have a working situation. The issue was a setting for the FTDI chip. When I set the chip in synchronous bit bang mode and configure the SPI_DIN signal as output (while input would be more logically), then I am able to read back the registers of the LMK04826 chip.

    Best regards,

    Frank van Eijkelenburg

  • Hi,

    Yes, we understand what you were doing. Actually under the following directory shown below:

    C:\Program Files (x86)\Texas Instruments\HMC-DAQ GUI\Scripts\QS_Scripts.ini

    here is one .ini file. Inside shows //ADS52J90

    which may have setup the LMK registers before you clicked on "Initialize Device" button. That can explain what happened from your message.

    LMK_Init = "Init.cfg"
    Initialization = "Init.cfg"
    LVDS: 16ch 10x 10b = "ADS52J90_16ch_10x_10b_SINE_DIV1.cfg"
    LVDS: 16ch 12x 12b = "ADS52J90_16ch_12x_12b_SINE_DIV1.cfg"
    LVDS: 16ch 14x 14b = "ADS52J90_16ch_14x_14b_SINE_DIV1.cfg"
    JESD: 16ch 16x 14b 4ADC/Lane = "ADS52J90_16ch_SINE_4L_16x_14b_GBLCLKDIV1_FSDIV4_SYSREFDIV24_20x.cfg"

    For your question about LMK04826 register settings such as 0x102, 0x17C

    please let me ask other engineer about it and let you know later.

    Thank you again!

    Have a nice day!

    Best regards,

    Chen

  • Hi,

    Also for your question about the LMK04826 device,

    one engineer replied that:

    Yes, your are correct. please set 0x17C to be 0x18 according to its datasheet.

    but since only we are using it at room temp only, so it may not be affected by setting different register value for room temp.

    Thank you!

    Have a nice day!

    Best regards,

    Chen

  • Hi,

    Also when you are loading into ADS52J90 EVM GUI,

    you can press F10, F9 or F8 keyboard button.

    Then you can see more options for LMK04826 registers

    then you can choose the options as you want.

    or you can select "LOW LEVEL VIEW" to see the register options are you need. 

    and also you can modify the register value as you want.

    Thank you!

    Best regards,

    Chen

  • Hi,

    since for the LMK04826 (0x102) register not existing any more,

    please delete that.

    Thank you!

    Have a nice day!

    Best Regards,

    Chen