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.

LMK04828BEVM: LMK04828BEVM

Part Number: LMK04828BEVM
Other Parts Discussed in Thread: LMK04828, USB2ANY

Hi

I have a LMK0482XEVM board that I am trying to interface to using a 3 wire interface. I was unable to perform reads or writes to the board from an FPGA design despite having all signals that matched the requirements of the datasheet.

So I have now tried to use the TICS PRO software using a USB2ANYWHERE device plugged into the evaluation board.

I know this works for write accesses as I can write to the powerdown bit and I can see a shift in the Current being drawn on the power supply.

Can you confirm that this device uses a 4 wire SPI interface only.

Can you also confirm that I can use any of the 4th wire signals as an SPI Output, These are:-

pin 5 - RESET/GPO

pin 48 - Status_LD2

pin58 - CLKin_SEL0

pin59 - CLKin_SEL1

Could you confirm that if I want to use pin59 - CLKin_SEL1 as the 4th wire for Serial Data Output from the LMK04828 I need to write the following registers:-

0x0000 0x10 (3 wire disable)

0x0149 0x33 (CLKin_SEL1 set to output and SPI Readback)

Are then any other registers that need setting to perform a correct SPI  readback function.

Also in your TICs Pro software RWA Registers setting could you confirm what the difference is between the Read Register mode and the Read Mode in the right hand side of the GUI.

The read appears to read back the correct register value, but the read register does not. Why is this?

Regards

Jeremy

 

  • Hi

    The only time I can get your TIC's Pro software to work is when I perform a default write to all registers using the default values. I then put the PLL2 LD into a OUTPUT push pull mode and set it to SPI Readback. I then perform a read all registers and it works. I cannot use any of the other 4 wire modes as the TICs Pro software will not let me use them. This is not really documented anywhere.

    Regards

    Jeremy

  • Hi Jeremy,

    The LMK0482x supports both 3-wire and 4-wire SPI. When using your own SPI controller, you can use any of pins 5/31/48/58/59 for readback, in addition to the 3-wire mode supported over SDIO. But as you have observed, TICS Pro/USB2ANY can only use STATUS_LD2 pin for SPI readback. If you load the device defaults and try to read all registers, TICS Pro should prompt you if you would like to setup the device in readback mode. I'll flag an explanation of the readback requirements as something to include in the next revision of the user's guide.

    You actually do not need to disable 3-wire SPI. You could run 3-wire SPI simultaneously with 4-wire SPI (usefulness notwithstanding). For 3-wire SPI, one other critical register is 0x0149[6] (SDIO_RDBK_TYPE) which sets the SDIO pin readback style as either open-drain or push-pull. If open-drain is selected (the POR default to prevent backdriving lower voltage controllers, 0x0149[6]=1), a pull-up resistor on the SDIO pin is required for readback to function. For push-pull, the SPI controller must be 3.3V-capable.

    On the raw registers page:

    • Read Register reads the register selected in the register map. Click on one of the registers or use the arrow keys to navigate in the register map, and the Read Register will link to that register.
    • Read under the register/field name box can be used to read in any arbitrary register or field name by name (e.g. you can read "R2" instead of "0x0002", or you can read individual fields such as "SDIO_RDBK_TYPE"). Read has no dependence on the currently selected register in the register map.

    Regards,

  • Hi Derek,

    Thank you for the replies.

    One further question, If I wanted to set up the device in a 4 wire mode. To be able to read back from a register, what are the minimum number of register writes I need to perform to be able to use the read command over the 4 wire interface. What registers need to be set up before performing a 4 wire read command.

    Regards

    Jeremy 

  • Hello Jeremy,

    The minimum number of register writes required is typically only one, since the TYPE and MUX components are stored in the same register. For example, if you wanted to get 4-wire SPI working using CLKin_SEL1 as the readback pin, you would only need to write 0x0149 0x73 (0x0149[7:6] are not relevant to establishing 4-wire SPI). All registers should be available for read after configuring one of the pins for SPI MISO with this single register write.

    There is only one exception: if the SPI_LOCK registers are set other than 0x1FFD00, 0x1FFE00, 0x1FFF53, the LMK04828 SPI will be disabled. In this case, the minimum required writes is four: the first three set 0x1FFd00, 0x1FFe00, 0x1FFF53 to unlock SPI, the fourth configures one of the GPIO as the SPI MISO pin.

    Regards,

  • Hi

    I'm sorry I don't understand how the TICS PRO software is working with LMK04828 Evaluation board. I have set the software to disable the 3 wire mode. I have performed a default configuration write to all registers, I have then set up the PLL2 LD to be in SPI readback mode making it a four wire device. However when I then perform a read of all registers and I still see the three wire SDIO line returning data after the read command on my scope. I do not see data on the PLL2 LD test point. Yet the software is returning read values for all the registers. Could you please explain why this is? 

    Regards

    Jeremy

  • Hi Jeremy,

    Apologies for the delay. Based on your description of the procedure you followed to setup 4-wire SPI, I am also confused why you are unable to get SPI readback on PLL2 LD line. Can you provide the tcs file you used to configure the PLL2 LD to be SPI readback? I will be able to investigate on a lab setup tomorrow.

    Regards,

  • Hi

    I have resolved the issue. The TI LMK04828 Clock driver demo board has for some reason a 15K series R and a pull down resistor on the PLL2 LD line. I removed both resistors and placed a zero Ohm series R on the line, this resolved the issue. I can now set the device into 4 wire mode using the PLL2 LD as the SPI readback line. I now see can read the data coming back.

    Regards

    Jeremy