#17793 - Darmstadium - Sun Mar 14, 2004 8:41 pm
I use dma channel 3 to transfer a lot of stuff. For example, let's say I want to transfer my palette data for my sprites into object palette memory. I'd usually use this code:
But I tried halving the amount copied and doubling the word size and it worked too:
What is the difference between these two ways?
Code: |
REG_DM3SAD = (u32)spritespalette; REG_DM3DAD = (u32)0x5000200; REG_DM3CNT = 256 | DMA_ENABLE | DMA_TIMEING_IMMEDIATE | DMA_16; |
But I tried halving the amount copied and doubling the word size and it worked too:
Code: |
REG_DM3SAD = (u32)spritespalette; REG_DM3DAD = (u32)0x5000200; REG_DM3CNT = 128 | DMA_ENABLE | DMA_TIMEING_IMMEDIATE | DMA_32; |
What is the difference between these two ways?