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.

LMX2492: LMX2492 Readback (Using microWire/SPI)

Part Number: LMX2492
Other Parts Discussed in Thread: LMX2491

Hello,

I am stuck with LMX2492. 

I can write the data into registers of LMX2492 but unable to readback.

My simple algorithm is as follows:

A. Write

Initial Conditions Clock = Data = low, LE = High, MSB of data = o,

Pull LE Low

Set the data on Data line

Pull clock high

Change the data on Data line

Pull clock low

.

.(Repeated for 24 bits of data(Address+data for LMX2492))

.

Pull LE high

B. Read

Initial Conditions Clock = Data = low, LE = High, MSB of data = 1,

Pull LE Low

Set the data on Data line

Pull clock high

Change the data on Data line

Pull clock low

.

.(Repeated for 16 bits of data(Address for LMX2492))

.

.

Pull Clock High

Read Data from Muxout pin (Repeat for 8 bits)

Pull Clock Low

Pull LE high

I verified the write by current change after enabling and disabling the PLL

But while reading, I find MUXout is always low(Using Oscilloscope as well). No activity on it at all.

Please help.

  • Sunil,

    Here are a few things to be aware of:

    1. MUXout_MUX needs to be set to "Output Readback" State 7
    2. MUXout_PIN needs to be set to "Output P-P" State 2

    Regards,
    Dean
  • Hi Dean,

    I have done following:

    1. MUXout_MUX[5] = 1 (R35 = 0xF9)

    2. MUXout_MUX[4:0] = 7 (R39 = 0x3E)

    3. MUXout_PIN[2:0] = 2 (R39 = 0x3E)

    Once I got some garbage values being read on MUXout. That can be my programming problem but I got some activity on MUXout.

    But after that I forgot what exactly I have done and now even after trying almost everything, there is no activity on MUXout at all.

    I don't understand what I am missing?

    Regards

    Sunil

  • Sunil,

    I think that these values are all wrong.  Note in TICSPro, you can set this up and also observe the registers.

    Try this:

    MUXout_MUX[5:0] =7

    MUXout_PIN[2:0]=2

    R35 = 0x0023D9

    R39 = 0x00273A

    Regards,

    Dean

  • Hello Dean,

    I observed that some of the POR values are not the same as mentioned in datasheet.

    Also there are some mistakes in datasheet of LMX2492. I found them corrected in LMX2491 datasheet.

    It worked when I did the settings as follows:

    R02 = 0x02

    R35 = 0x41;

    R39 = 0x3A;

    I noticed that 

    MUXout_MUX[5] should be 0 not 1. It is mentioned nowhere in datasheet to set it to 0. According to general conception I was settiing it to 1.

    I tried your settings as well and it is working. I need to use all the output and trigger pins thats why I used R35= 0x41. Is it right to do so?

    By the way,  thanks for your help.

    Regards

    Sunil