This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I have attached below the waveform capture of the SPI bus.
I am not able to LATCH (rising edge of the Latch signal) exactly at the LSB of the Data.
Tried using TX-FIFO interrupts, to get an interrupt after I send 24 bits of data so that I rise the LATCH, but the interrupt is not working fine.
Could you please suggest any other way to synchronize and Latch the data at LSB.
Thanks ,
Prashanth
Prashanth,
I need a little more information in order to help you out.
1. is F2837x SPI the Master or Slave?
2. Can you label the Signals on the Screenshot? Yellow is input or output data from the Spi? what does the Green Signal correspond to?
3. What are your FIFO settings? (when will the TX FF interrupt be triggered? how about the RX FF interrupt?
4. When does the latch signal need to be triggered?
The above questions should help me understand what you are trying to accomplish.
Thanks,
Mark
Ok, I was thinking the data change should happen from the 1st SCLK cycle itself. If you see in the 1st capture, the data is changing at each rising edge of the clock signal and In the second capture, the data is changed one half cycle before the first rising edge of the clock. BUT NOT FROM THE 1st SCLK CYCLE.
I think, I misunderstood that.
I am trying to implement TX-FIFO interrupt , but as soon as I initialize SpiaRegs.SPIFFTX.bit.SPIFFENA = 1, the TXFFINT is always high even after clearing the interrupt (SpiaRegs.SPIFFTX.bit.TXFFINTCLR = 1;).
I need your advice.
Thank You Sir,
Prashanth
Thanks Mark !
I am trying to use SPINT (instead of TX-FIFO interrupt) , I need an interrupt only for transmission.
Trying to load the data to the TX-BUF in the ISR.
But when I try to increase the SPICLK to 10 MHZ , i do not see any transmission even when I give full-200MHZ to the SPI module, i.e. by
LOSPCP.bit.LSPCLKDIV = 0.
As an example, my goal is to have the SPICLK at 10 MHZ and try to load the data to TX-BUF at 16khz .
Thanks a lot, need your advice.
-Prashanth