reduce read/write time in SPI driver on MQX 4.0.2

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

reduce read/write time in SPI driver on MQX 4.0.2

1,505 Views
helderhdw
Contributor III

I need to reduce the time of date transfer by SPI drive. The time to write/read data is:

ioctl (spiFD, IO_IOCTL_SPI_READ_WRITE, &rw) -> 18 us

ioctl (spiFD, IO_IOCTL_SPI_FLUSH_DEASSERT_CS, NULL) -> 8us

sum = 26 us

I need 4us in FULL_DUPLEX mode. is possible? help me..

Att,

Francisco

0 Kudos
Reply
2 Replies

1,053 Views
helderhdw
Contributor III

Hi,

I forgot to mention that I'm using Vybrid (M4 side), and I like know...How to I reduce the read time in SPI driver for MQX 4.0.2...

Regards,

Francsico

0 Kudos
Reply

1,053 Views
cyborgnegotiato
Senior Contributor II

Hi Francsico,

You must provide more information, especially:

- your spi settings

- your rw data structure content

Do you need call IO_IOCTL_SPI_FLUSH_DEASSERT_CS after each read write operation?

Regards,

Jozef

0 Kudos
Reply