Forum Discussion
daiJava
New Contributor
2 years agoHow to use the SPI protocol to implement data interaction with the UFM of MAX V
Hi all, I have read the handbook for MAX V and have written the verilog code following the timings in the handbook. The mode of SPI is set to mode 0 and the host samples the data on the rising edge...
ShengN_altera
Super Contributor
2 years agoHi,
I had done testing with MAX V megafunction ALTUFM_SPI and can get the proper result check screenshot below:
The simulation options osc frequency only has two which are 5.56Mhz and 3.33Mhz check screenshot below. May be can try with these two osc frequency for sck.
One more thing is the SO only will have value when read operation is performed if check this document https://cdrdv2-public.intel.com/654256/mv51007.pdf page 26 onwards.
Seems like for your case, your ufmSPIMOSI is using extra one ufmSPICLK if compared with mine and manual example waveform.
Also, try to longer your simulation time.
Thanks,
Regards,
Sheng