How many microseconds does wiced_hal_pspi_slave_rx_data() need?

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

cross mob
JiZh_4619191
Level 4
Level 4
25 replies posted 25 sign-ins 10 replies posted

Hi,

Slave quad spi ( CYW20719B2 ) is used to receive 640-bytes again and again.

uint8_t     rec_data[640];

...

wiced_hal_pspi_slave_rx_data(SPI1, sizeof(rec_data), rec_data);//How many microseconds?

...

I want to calculate that how many microseconds does wiced_hal_pspi_slave_rx_data() need?

Regards

Jian

0 Likes
1 Solution
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

Sorry we didn't test the time for this API. The API is used to pull rxLen data from the rx fifo which should be quite fast. For SPI1, the FIFO is 1024 byte and shared with the UART. For SPI2, the FIFO is 256 byte.

If you plan to receive 640 byte, it is better to use the SPI1. You can test the time for this API with a GPIO output toggle.

View solution in original post

0 Likes
1 Reply
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

Sorry we didn't test the time for this API. The API is used to pull rxLen data from the rx fifo which should be quite fast. For SPI1, the FIFO is 1024 byte and shared with the UART. For SPI2, the FIFO is 256 byte.

If you plan to receive 640 byte, it is better to use the SPI1. You can test the time for this API with a GPIO output toggle.

0 Likes