Jump to content
  • 0

Digilent Analog Discovery 2 | If possible, how to adjust the SPI MISO Value?


DD__EE

Question

I just want to read back something besides 0x00 on my raspberry pi. Is it possible to adjust the MISO to be 0xAA for example? This is with respect to the WaveForms program under the Logic sub menu. The Analog discovery is showing me what the Master is writing (DEADBEEF), so I am confident I have hooked things up correctly. I'm not sure if this is even possible, please feel free to correct me either way.

image.thumb.png.82c83dcdec5315c571df3eef79cc3859.png

 

Edit: I found the protocol submenu where I can write custom scripts, this will probably achieve what I want. I will add what I find to this topic if I get it working.

Edited by DD__EE
Found 1 possible solution
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
It just so happens that I've been playing around with FPGA/ Raspberry Pi SPI connectivity.

You need to pay attention to timing for MOSI. At low SCLK rates you can be fairly careless an read data on the RPi. At the highest SPI SCLK ( about 30 MHz ) timing gets complicated. What is your goal here?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...