TC375 QPI Polling Mode

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

cross mob
User21400
Level 1
Level 1
First question asked
Hello,

I am using TC375 with Aurix Development Studio and iLLD. I would like to know how to use QSPI module in polling mode, so without interrupts and without DMA.
iLLD document does not provide any example regarding the polling mode.

Thank you in advance.

Greetings
0 Likes
1 Solution
cwunder
Employee
Employee
5 likes given 50 likes received 50 solutions authored

Here is a simple example that I use for polling mode when you are using the QSPI in Short mode. The QSPI FIFO is 4 entries deep and if you are only writing to one device you don't need to write the BACON.

 

uint16 QSPI2_ExchangeData (uint16 value)
{
  QSPI2_BACONENTRY.U = tle9263_bacon.U;
  QSPI2_DATAENTRY0.U = value;
  while (QSPI2_STATUS.B.RXFIFOLEVEL == 0)
    ;
  return (uint16) QSPI2_RXEXIT.U;
}

 

 

View solution in original post

0 Likes
1 Reply
cwunder
Employee
Employee
5 likes given 50 likes received 50 solutions authored

Here is a simple example that I use for polling mode when you are using the QSPI in Short mode. The QSPI FIFO is 4 entries deep and if you are only writing to one device you don't need to write the BACON.

 

uint16 QSPI2_ExchangeData (uint16 value)
{
  QSPI2_BACONENTRY.U = tle9263_bacon.U;
  QSPI2_DATAENTRY0.U = value;
  while (QSPI2_STATUS.B.RXFIFOLEVEL == 0)
    ;
  return (uint16) QSPI2_RXEXIT.U;
}

 

 

0 Likes