cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

Anonymous
Not applicable

Hello, I`m using FX3.

   

In SPIDMAMODE, I want to write/read n byte data.

   

CyU3PSpiSetSsnLine (CyFalse);
status = CyU3PSpiReceiveWords (buf, 3);
CyU3PSpiSetSsnLine (CyTrue);

   

When i run above code, the period of each byte is 1 micro-second.

   

How can I reduce this delay between subsequent SPI transfers. 

   

 

   

p.s. CyU3PSpiSetTimeout function is not working...

0 Likes
Reply
1 Solution
New Contributor II

CyU3PSpiReceiveWords is not a DMA function. Its a register function. In my project i also use SPI in DMA mode and there is 0 delay between bytes. Look at the spidma example firmware project. It should get you started.

View solution in original post

0 Likes
Reply
1 Reply
New Contributor II

CyU3PSpiReceiveWords is not a DMA function. Its a register function. In my project i also use SPI in DMA mode and there is 0 delay between bytes. Look at the spidma example firmware project. It should get you started.

View solution in original post

0 Likes
Reply