changing delay in using spitransmitwords at fx3 spi dma mode...

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
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
1 Solution
AnYa_2483746
Level 3
Level 3
First like received

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
1 Reply
AnYa_2483746
Level 3
Level 3
First like received

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.

0 Likes