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.

LMK61E2: Availability of any software reference libraries or opensource C coding in GitHub? to provision different clock rates in Evaluation board

Part Number: LMK61E2
Other Parts Discussed in Thread: CODELOADER, LMX2581, , PLLATINUMSIM-SW

Hello, I was asked by customers to provision different clock rates (precisely between 156.250 to 170 MHz) on Evaluation board.

With the help of LMK61xx programming tool, I downloaded the set of reference registers for different clock rates.

Am not sure on register writing and EEPROM programming methodology to implement different Ti clock rates on Evaluation board. 

It would be much appreciated, if we get any guidance/directions to get a reference coding in C language or any other language.

Hoping to get some guidance from you guys.

Thanks

  • Harish,

    The raw C code for CodeLoader and TICSPro is proprietary TI software and something that we cannot share.

    However, we do have some other things that might be helpful.

    1. If your intention is to write code so that you can test your device, know that both TICSPro and CodeLoader can be called by another program using the ActiveX protocol. CodeLoader instructions show how to do this. With TICSPro, I created an excel worksheet that shows how this can be done. It is also possible to call these from Labview.

    2. In TICSPro, the each individual device has it's own code. For instance, for the LMX2581, you can go to [InstallDirectory]/Configurations/Devices/PLL+VCO/LMX2581 and the LMX2581_PLL.py code is python code for the PLL GUI.

    Regards,
    Dean
  • Thanks for the quick response.

    For the mentioned task, I am planning to write a code so that different clock rates can be supported on my device.
    And to gain some rough idea, I was looking for some reference libraries or open source items in handling the generated register set.
    Ideally our requirements specification pushes us to stick around with LMK61E2 and writing/reading up on the register set to set up clock frequency.

    I will try to see Point 2 option whether it can be fit into our specification.

    Thanks for your support
  • Harish,

    For the LMK61E2, it has two python files, LMK61E2_easyform.py and LMK61E2_extra.py, which I am attaching both.

    For this particular device, I think that there is a routine that is run by pressing the "Generate Configuration". Know that there is an Active X command to "Press Button" and also one to read back the boxes. If you mouse over the boxes, then it gives you the variable name.

    For the purposes of choosing the loop filter components, you might also find our PLLatinum Sim tool useful (ti.com/tool/PLLATINUMSIM-SW). It doesn't specifically support the LMK061E2, but you can model this a custom device.

    Regards,
    Dean
  • Hello,

    With the help of LMK61E2 oscillator tool and datasheet, we were able to set up one of the frequency (159 MHz) on our device.

    To enable the clock rate, we have used the mentioned PLL equation 1 from the datasheet. -> FVCO = FREF x D x [(INT + NUM/DEN)]. By observing the values(INT,NUM,DEN) from LMK61E2 tool, we kind of hard coded the values using an I2C interface to program its registers for the above clock rate.

    From the Datasheet I was able to correlate the calculation part in getting the values of INT, NUM, DEN, FVCO and  FREF (which is default 50 MHz), However am not able to get an inference in achieving the OUTDIV value.! Could you please help us in understanding the OUTDIV value, as we are in a process to enable a range(156 to 170 MHz) of clock rate support  in our device. Also, I was unable to locate "easyform.py", "extra.py" to get an idea, Also please provide us support in getting the path/link to see these modules.

    Regards, Harish 

  • Hi, Is there anybody on the forum to help and throw some light on above raised question
  • From Equation (2) in the datasheet, OUTDIV = Fvco / Fout.

    Please send an email to clock_support@list.ti.com to request the python files.

    Alan