This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SPI HELP

Hello I have a question when I work with SPI in DMA which flag can tell me when I finished sending My buffer?
I understand that TXEMPTY it's not the correct one but I don't understand the different between TXBUFE and ENDTX.
With which one I need to work when I work with spi in DMA? thanks chiko.

  • You think there exists one single ARM processor model in this world? Or do you expect that every ARM chip have identical implementations of SPI and that the manufacturer have selected the same names for registers and flag bits?

    Do you even need to look at the SPI controller to know when a DMA transfer is done? And what do you mean by done by the way - that the DMA transfer has ended or that the last bit of the last word has been shifted out and the slave-select line has been deasserted (if your specific chip supports automatic control of the slave-select line)?

  • I work with AT91sam7x 512

    what's the different between that the DMA transfer has ended or that the last bit of the last word has been shifted out?

    I send bytes in SPI and READ the answer to a buffer.
    whitch flag can tell me when the DMA sending action is done?!

    thank all
    chiko

  • Note that this has nothing to do with Keil - it is a specific question about this particular device from this particular manufacturer (Atmel).

    Have you tried asking Atmel and/or your Distributor?

  • If the datasheet does not contain the relevant information, then you obviously have to contact Atmel and ask them for the information.

    We only have access to the information Atmel has published. Any information we can find is information you can find.

  • Or, in general, "If the datasheet does not contain the relevant information, then you obviously have to contact the device manufacturer"

    The first step would be to visit their website and look for Application Notes, and Examples and other such supporting information.

    Note that many manufacturers today divide their documentation into a "Datasheet" and a "User Manual" (specific names vary) where the "Datasheet" is just electrical parameters, etc, and you need to read the "User Manual" for details of registers, etc.