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: How can I control LMX2492 with out 'USB2ANY'???

Part Number: LMX2492
Other Parts Discussed in Thread: USB2ANY, CODELOADER

Hello!

(안녕하세요.)

I have some questions.

(제가 몇 가지 질문이 있습니다.)

First, I want to control LMX2492 with out 'USB2ANY'

(우선, USB2ANY 없이 LMX2492를 컨트롤 하고 싶습니다.)

I have created a module that can communicate with SPI using another MCU.

(저는 다른 MCU를 사용해서 SPI 통신이 가능한 모듈을 만들었습니다.)

The first thing I want to do is to catch the PLL LOCK Frequency.
(먼저 해보고 싶은 것은 PLL LOCK을 잡는 것입니다.)
Above picture is SPI picture of USB2ANY.
(위의 사진은 USB2ANY의 SPI 사진입니다.)
The above picture is a pulse generated by my module.
(위의 사진은 제가 만든 모듈에서 생성된 펄스입니다.)
As a result of SPI check, I confirmed that the pulse is the same as that of USB2ANY. But it does not work.

(SPI확인 결과 USB2ANY와 동일하게 펄스가 나오는 것을 확인 했습니다. 그러나 작동이 되지를 않습니다.)

Does I need to implement more things in addition?

(SPI 통신 이외에 추가적으로 다른 것을 더 구현해야하는 것이 있나요?)

Please let me know in detail.

(자세히 알려주세요.)

  • Jinwoo,

    Even though you are writing your own code, realize that you can use TICSPro to figure out what to write. As there are 141 registers that are written, there are many bits that can be off or registers not being programmed. Could it be the case that you are not writing all the registers?

    I would suggest to test the timing of your SPI write, try doing something more rudimentary than locking the PLL. For instance, try just programming register R2 and change the powerdown bit (R2[2:0]) between powerd up and powered down


    Regards,
    Dean
  • To Mr. Dean

    (Dean씨 에게)

    Thank you for the reply.

    (답변해주셔서 감사합니다.)

    I also know that 141 registers are needed through a program called codeloader.

    (저도 Codeloader라는 프로그램을 통해서 141개의 register가 필요하다는 것을 알고 있습니다.)

    So without 'USB2ANY', I thought I needed my own program to control the LMX2492.

    (그래서 'USB2ANY' 없이, LMX2492를 제어하기 위해서는 저만의 프로그램이 필요하다고 생각하였습니다.)

    So I created a program that allows serial communication through C #.

    (그래서 저는 C#을 통해서 직렬통신이 가능한 프로그램을 만들었습니다.)

    Of course, 141 registers can be sent in order at once.

    (물론 141개의  register를 순서대로 한꺼번에 보낼 수 있도록 되어있습니다.)

    The frequency I wanted to hold 'PLL Lock' was 10.3GHz.

    (제가 'PLL Lock'을 잡고 싶은 주파수는 10.3GHz 였습니다.)

    The value of R16 was 0x0001067 as a result of register check.

    ( Register 확인 결과 R16의 값이 0x0001067 이였습니다.)

    I checked the pulse from 'USB2ANY' and the module that I made using an oscilloscope and found that the same result as shown in the picture above.

    ('USB2ANY'에서 나온 펄스와 제가 만든 모듈을 오실로스코프로 확인결과 위의 사진처럼 동일했습니다.)

    Of course, we sent all 141 Registers.

    (물론 141개의 Register를 모두 전송했습니다.)

    But it does not work.

    (하지만 작동이 되지 않아요.)

    Please let me know if you have any other comments. Thank you.

    (다른 첨삭이 있다면 말씀해주세요. 감사합니다.)

    Regrads,

    Jinwoo

  • Hi Jinwoo,

    Could you also capture the waveform of the LE signal?
  • To Mr. Noel Fung

    Thank you for your attention.

    (관심가져주셔서 감사합니다.)

    This is a picture containing the LE signal.

    (LE 신호를 포함한 사진입니다.)

    The data is 0x0001067.

    (데이터는 0x0001067 입니다.)

  • Hi Jinwoo,

    Looks your SPI waveform is correct, you should be able to program the device.
    Could you try the following?
    1. Vcc power up the device
    2. record the current consumption
    3. program R2 with register bit POWERDOWN = 0. That is, R2[1:0]=0
    4. if you see a reduction in current, that means the programming is successful.
    5. Power down the device
    6. Vcc power up the device
    7. program all registers, starting from R141 and end with R0
    8. If you cannot make it lock, then either the programming values are not correct or there are problems with the hardware connection
  • To Mr.Neol Fung