Skip navigation
1170 Views 3 Replies Latest reply: Apr 27, 2011 8:31 AM by audioartillery RSS
awesomecoolguy Just Startin' 9 posts since
Dec 25, 2009
Currently Being Moderated

Apr 12, 2011 8:06 PM

external memory

Hi everybody!

 

I'd really like to get a delay effect online, but I'm having a hard time wrapping my head around using external memory.  I see the example in the tonecore Appendix A that programs a DMA transfer for the routine, which I'm pretty sure I'll have to try to understand at some point.  The thing that is confusing me is all this buisiness about memory mapping and the pictures in the Freescale manuals that show some of the X and Y space labeled as "External."  Is it possible to do external memory transfers by just moving data to the "External" spaces of the X and Y memories?

 

Thanks ahead of time!

  • audioartillery Just Startin' 80 posts since
    Apr 18, 2008
    Currently Being Moderated
    Apr 13, 2011 6:37 AM (in response to awesomecoolguy)
    Re: external memory

    I'm not familiar with the X/Y mapping that you're referring to.  Not because you're wrong, but I probably didn't look into it that closely.  Or are you talking about how the DMA controller can do DMA's using either X or Y busses to get at the external memory?

     

    Anyways, what I do is use single-word DMA's to/from the external memory.  I treat the entire memory as a circular buffer, though that's more delay than you actually need.

      • audioartillery Just Startin' 80 posts since
        Apr 18, 2008
        Currently Being Moderated
        Apr 27, 2011 8:31 AM (in response to awesomecoolguy)
        Re: external memory

        Yes, you can use a direct move since it's memory mapped.  I played with this briefly early on.  I had byte ordering issues that I didn't spend much time on.  It may be that I was DMA'ing to the ext memory and move'ing from the ext memory and that the two methods use a different byte order.

         

        I don't recall using the example code for this, I think some old forum post showed how to do the DMA.  Once you figure this out, can you write up some examples and I'll include it in the dev kit guide that I maintain (http://audioartillery.com/projects/tonecore_dsp_dev_kit_guide?p=0)?  That'd be great.

More Like This

  • Retrieving data ...

Bookmarked By (0)