Advice for predictable DMA timing?

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

Advice for predictable DMA timing?

665 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rockyh on Fri Sep 19 08:12:44 MST 2014
Hi,
I have a design where I am using a State Configurable Timer event to generate a single 16 bit DMA transfer from external SRAM to the internal RAM of the 4330.  The external SRAM EMC is set to zero wait states, and running the core at 204MHz.
At slower speeds this works without issue, but as I bring the SCT up to the speed where we need it (the DMA transfer needs to occur within 200 nsec), I start to see unexpected "glitches" where the DMA transfer is delayed. This doesn't happen very often, but often enough that it is a problem.
The code is running in the internal SRAM of the 4330 and interrupts are disabled.
I'm looking for any advice or tips.  Is this "glitch" something to expect with DMA? Is there anyway to avoid this?
Thank you
Labels (1)
0 Kudos
Reply
1 Reply

651 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by starblue on Sat Sep 20 01:16:26 MST 2014
Is there contention for the external or internal RAM, i.e. is a processor accessing it simultaneously with the DMA?
Are the code and the data in different RAM areas? Take a look at UM10503 "3.6 AHB Multilayer matrix configuration".
How many read/write cycles can the external RAM do in 200ns? Since external RAM is slower than internal memory, it is more likely to be the culprit.
0 Kudos
Reply