Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
All support for Intel NUC 7 - 13 systems has transitioned to ASUS. Read latest update.
20561 Discussions

Cyclone IV E implementing SPI

vondart
Beginner
2,183 Views
I'm using EP4CE10 as a SPI Master to control LMX2820, then find the control words are not written correctly. Does the I/O pin selection and configuration has special requirement?
0 Kudos
1 Solution
8 Replies
EBERLAZARE_I_Intel
2,134 Views

Hi,


Could you share the Quartus design?


Have you tried to do a signal tap to see if the output are as expected?


0 Kudos
vondart
Beginner
2,092 Views

signal Tap II from Quatus indicates the timing is right. I'm switching to STM32H7 for another try. The STM32F1 worked, but SPI baud-rate is too low and ADC sampling rate is not enough.

0 Kudos
vondart
Beginner
2,092 Views

I've tried several spi_master code base, but none was able to program lmx2820 registers correctly. None of them give desired result. After reading register content back with official software TICS Pro, some registers show separate content other than written in. One example code repl https://github.com/halftop/Interface-Protocol-in-Verilog.git.

0 Kudos
EBERLAZARE_I_Intel
2,060 Views

Hi,


We apologies for the lack of documentation from our side.


I hope the pervious links may help you in your design work.


0 Kudos
vondart
Beginner
2,017 Views

I find that adding extra guard time between transmission of data enables successful register write. For 100m clock rate, 40 cycles are enough. Also, pin voltage must be set to 3.3V LVTTL. The repository I mentioned can successfully write individual 24-bits data and by adding guard time can write data bytes continuously.

0 Kudos
EBERLAZARE_I_Intel
1,900 Views

Hi,


Thanks for your update on the issue and the workaround you discovered for your issue.


I’m glad that your question has been addressed, I now transition this thread to community support. If you have a new question, Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.


0 Kudos
vondart
Beginner
559 Views

Also, the RFoutAP wire must be connected, so that the ADC connected to FPGA wont interfere with SPI transmission. The dangling connection seems to either interfere with LMX2820 or interfere with my AD9226 ADC. I also find, connecting grounds of FPGA and LMX2820 may offer benefit.

0 Kudos
Reply