Data not shifted into Shift Register from TX FIFO or RX FIFO : SPI

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

Data not shifted into Shift Register from TX FIFO or RX FIFO : SPI

634 Views
samyuktaramnath
Contributor II

Hello all,

I am trying to get an ADAS1000SDZ Analog Devices front end and a K53 Tower Kinetis microcontroller to talk to each other, with the AFE as slave and microcontroller as master. While doing so, I notice that when I push data into the TX FIFO registers, they are getting updated, but the TXCTR registers aren't getting updated, which means that the TX FIFO data isn't getting sent to the shift register and consequently, nothing is appearing on the Master SOut pin. I have confirmed this by actually checking the Master Out pin, and seeing that it is 0. My chip select is always held low, so the slave is always selected (I have only one slave, as of now). Since the data isn't getting sent to the analog front end, I am not able to set any control registers or send any read commands to the slave. Therefore, it is not sending back any data.

Similarly, no data is getting received into the shift register into the RX FIFO. I have set SPI_MCR_ROOE which says that in case of an overflow, received data must still be shifted into the shift register and after that into the RX FIFO.

I wanted to know if there is anything else I must to do to ensure that the data in the TX FIFO is actually sent out into the Sout pin of the microcontroller. Shouldn't it happen automatically?

Thanking you

Samyukta

0 Kudos
2 Replies

446 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Samyukta Ramnath:

What is the status of your issue?

I see you have a separate post:

Data transfer using SPI in K53 tower MuC

I read you connected MOSI to VDD and GND, you should not do that while the pin is configured for SPI function.

If you are still facing problems let us know by following up in this thread or the other one.

Regards!

Jorge Gonzalez

0 Kudos

446 Views
samyuktaramnath
Contributor II

Thank you for your reply.

The issue is resolved.

Firstly, there was an issue with the clock I was giving, I was giving too high a clock. Hence once I had lowered the clock a bit, I got some noisy data in the RX and TX FIFO. However at this point, the RXCTR or TXCTR still weren't incrementing.

Then I shorted the grounds of the AFE and the microcontroller together, after which the program gave the results that I had expected. The noise was due to the different ground levels of the two.

Regards,

Samyukta

0 Kudos