SPI polling configuration for SCB

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

cross mob
lock attach
Attachments are accessible only for community members.
SaKu_4388591
Level 1
Level 1

Hi Team,

I am presently using Cypress Traveo II SoC for one of the Automotive usage.

There is requirement from customer that SPI driver is required in polling mode.

SCB7 peripheral is used for the same to communicate with one slave device.

I have modified the cypress provided library cy_scb_spi.c file.

unRX_FIFO_STATUS.stcField.u9USED checking the FIFO status register field whether data is available in Receive FIFO, then breaking while loop and trying to read data to local buffer.

Unfortunately the loop is breaking immediately and observed that no data available in buffer but data is present in FIFO.

while(base->unRX_FIFO_STATUS.stcField.u9USED != 0);

As temporary solution a small for loop delay is added and observed that data is copied to local buffer correctly.

Request to provide any suggestion and confirm whether the using register and bit is correct for polling method.

Regards,

Sai Kumar Ponneri

0 Likes
1 Solution
Takashi_M
Moderator
Moderator
Moderator
1000 replies posted 500 solutions authored 750 replies posted

Dear Sai Kumar,

The contents of this thread would not be applicable to discuss in CDC (public site).

So, could you please contact to Cypress local sales/FAE for this topic?

It would be appreciated if you comprehend for this.

thank you.

View solution in original post

0 Likes
2 Replies
Takashi_M
Moderator
Moderator
Moderator
1000 replies posted 500 solutions authored 750 replies posted

Dear Sai Kumar,

The contents of this thread would not be applicable to discuss in CDC (public site).

So, could you please contact to Cypress local sales/FAE for this topic?

It would be appreciated if you comprehend for this.

thank you.

0 Likes

I will reach out to the account manager at Cypress assigned to your account.

0 Likes