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.

LMX2594EVM: Raspberry PI programming LMX2594EVM

Part Number: LMX2594EVM
Other Parts Discussed in Thread: LMX2594, USB2ANY

hello,

i am trying to program the LMX2594EVM using a Raspberry PI, could you please give me walk me through a simple example where i can write 3 bytes and read back data from R0 or any register for testing?

thanks much

Shady

  • Hi Shady,

    There are dozens of examples for how to set up SPI on the Raspberry Pi online. I'd start here (C library) or here (python tutorial) (and documentation for python spidev module).

    From there, you can try writing to register R0x00 with data 0x2519. This sets the MUXout pin to readback mode, and also powers down the LMX2594. You should be able to observe an immediate decrease in power supply current for the LMX2594, down to around 2-3mA. The SPI core works in powerdown, so you can also read back the value of register R0x00 to confirm the write was successful.

    The datasheet includes SPI timing diagrams and logic levels, a pinout diagram for wiring the LMX2594 to the Pi, a programming sequence recommendation, and a complete register map with descriptions of user-programmable settings. We also have TICS Pro register programming software available for the LMX2594, which contextualizes many of the register settings in a user-friendly GUI to better explain what they control and how the settings interact. The USB2ANY programmer is not required to display the logical dependencies between different register settings and desired configurations, and I find the visual presentation of TICS Pro much more intuitive than a register map.

    Regards,