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.

Programming the LMX2581

Other Parts Discussed in Thread: LMX2581, CODELOADER

Hi,

I want to use the LMX2581 to generate a LO frequency for a mixing application, where the user can easily select his desired radio frequency via a GUI that communicates with a MCU that calculates the parameters and programs the LMX2581.

So now my question is if someone already has done something similar with the LMX2581 and would share parts of his C code with me. For example a library for the registers of the LMX2581 or for the communication between LMX2581 and MCU itself.

Another question is what MCU you would use, because I am only common to MCU of Atmel and never used a TI MCU before.

Best regards

  • Cristoph,

    We use the codeloader software to program the device.   This is easy to use and also displays the registers and programming words.   If you want to work on some software of your own, it might be useful to know that codeloader can be called with Active X though excel, labview, or another program.  We use this extensively for automation purposes.  On the web, we have the codeloader instructions, which discusses active x for codeloader, which is no that hard to do.

    Regards,

    Dean

  • Hi Dean,

    Thanks for your reply.

    The call with ActiveX is no option for our application, because the LMX2581 will be implementet in self-sufficient stations that are powered up via remote from a central station. The stations themselves do not have an ActiveX compatible device or any interface where the codeloader could be implemented. Only a MCU is provided to communicate with the LMX2581 via programing interface.

    The MCU will be able to communicate with a GUI via I²C or USART to configure the stations for the first use. Once the stations are ready for use the MCU calculates the needed registers and values and programs these to the LMX2581 automatically at every startup.

    So I am looking for a library or code examples to program the LMX2581 with a MCU only.

    Best regards

  • 1588.AN-1098.pdf

    Cristoph,

    If the goal is to figure out what information to send to our device to get it to behave a partcular way, then CodeLoader does this and shows this in the registers tab.

    On the other hand, if you are asking for code that toggles the bits on a parallel port or some sort of USB driver, then we don't have muh to offer.  If you are asking for the CodeLoader source code, it is complete spagetti code, does not support I2C, and could be considered as intellectual property, so sending you the source code for that does not seem like the right answer and is unlikely to help you.

    There is an application note AN-1098 which shows how to program one of our parts with a microcontroller.  Although the register information and part is different the basic method of sending CLK, DATA, and LE has not changed.  Hope this helps

    Regards,

    Dean

  • Ok that's understandable. Thanks for the help.

    Regards