AnsweredAssumed Answered

Is there any collision when CPU and DMA access the same address?

Question asked by Ferreira on Nov 20, 2012
Latest reply on Nov 20, 2012 by fm
Hi,

I would like to know if there is any collision when the CPU needs to access to a address that is used by the DMA controller.
For example, when an event occurs the DMA should transfer 5KB from memory to USART, that is linked to a host PC via RS232. What can happen, if the CPU of the controller needs to update one or more parameters in data addressed between the 5KB? If the address to be accessed is not be used by the DMA, maybe nothing wrong will happen. But what if both access to the same memory? Will a collision occur? Is there any arbiter? Should I implement code to prevent it?

Thank you all in advance for interesting in this topic.

Best regards,

A. Paiva

Outcomes