Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 124323

Forum Post: RE: SPI TXINTFLG set as soon as ENABLE is set

$
0
0

Thanks for your fast response. I will investigate whether changing the relative position of the initialization of the SPI and the EDMA is an option. I am working on existing code and my options are sometimes limited because of that.

Let me ask you this, though. If I initialize EDMA and then initialize SPI, and TXINTFLG is set as soon as the SPI is ENABLEd, will a trigger to the EDMA channel that handles SPI transmit occur as soon as I write to the ENABLE bit for the SPI?

I ask because this is NOT actually the ideal behavior in my particular case. What I am trying to do is not have any SPI activity at initialization. I want to start the SPI transmite/receive at some point after initialization has completed and other events in my system have occurred, and I would start the process by writing to the SPI transmit data register by hand.

It has occured to me that one way I could produce this result would be to initialize the EDMA to do nothing with the first trigger from the SPI TX channel, and then have the EDMA channel transition to different handling of triggers after this initial trigger occurs. Does this sound like a viable path?


Viewing all articles
Browse latest Browse all 124323

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>