reduce read/write time in SPI driver on MQX 4.0.2

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

reduce read/write time in SPI driver on MQX 4.0.2

1,504 次查看
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 项奖励
回复
2 回复数

1,052 次查看
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 项奖励
回复

1,052 次查看
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 项奖励
回复