cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
790 Views
Registered: ‎03-13-2017

SPI_1 PS doesn't work

Jump to solution

Hello,

 

I want to enable a SPI master comunication betwen PS Zynq 7000 and a motor driver 

 

I have enabled SPI1 of Processing System and I have connected MOSI_O to SIN signal, MISO_I to SOUT, SCLK_O to SCLK and SS_O to CS. The time specification is attached (time.png).

 

APN.c is my SDK code (attached). However, when I run my program, I get the ila.png result (attached). 

 

Does anyone know why SCLK is always "0"?

 

Thanks in advance

time.png
ila.png
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Contributor
Contributor
1,000 Views
Registered: ‎03-13-2017
Hi

I already solved my problem. The problem was that I was not commuting the cs signal.

Thanks

View solution in original post

0 Kudos
2 Replies
Highlighted
Xilinx Employee
Xilinx Employee
750 Views
Registered: ‎02-26-2014

Hi,

 

make sure that you are initializing the SPI controller If not try it, which gives you way to configure the controller and initiate the transfers.

 

 

Regards,

Ravi

0 Kudos
Highlighted
Contributor
Contributor
1,001 Views
Registered: ‎03-13-2017
Hi

I already solved my problem. The problem was that I was not commuting the cs signal.

Thanks

View solution in original post

0 Kudos