Other Parts Discussed in Thread: USB2ANY, LMX2571
Hi there,
I'm connecting the LMX2571EVM to an Adafruit USB to SPI Host. I'm using the USB2ANY pins on the EVM and connecting them to my host. VCC_3 is receviing power. I think I'm able to write correctly to the chip using SPI, as I can get the PLL Lock Output to toggle and also notice that when I power down, the current drops from 50mA to 42mA. However, I'd like a way to read what I wrote in the register and verify that.
I'm unable to do so and am not sure what mode the device is stuck. I'm following the directions to set initialization registers but not sure if these are correct? Any guidance here would be helpful
I'm trying to read register 60 in a loop after this sequence and always reading FFFF. The scope shot is attached below
lmx = LMX2571(cs=4, frequency=50E3, url='ftdi://::ADAFRUIT-SPI/1')
lmx.open()
lmx.write_reg(0,0x203F)
lmx.write_reg(60, 0xA000)
lmx.write_reg(58, 0x8C00)
lmx.write_reg(53, 0x7806)
lmx.write_reg(39, 0x11F6)
lmx.write_reg(23, 0x1084)
lmx.write_reg(7, 0x1084)
lmx.write_reg(0,0x003F)
lmx.write_reg(39, 0x11F0)
lmx.write_reg(39, 0x11F8)
#lmx.write_reg(0, 0x603F) #Resets
while True:
lmx.read_reg(60, True)
sleep(1)
MOSI: Blue
Clk: Yello
MISO: Purple:
CS (LE): Green
Thanks for the help!