AnsweredAssumed Answered

Reading DMA registers giving error values

Question asked by sunil on Jul 13, 2009
Latest reply on Nov 19, 2009 by StuartS

Hi all,

 

    We are using BF-533 EZ-Kit Lite on VDSP5.0 with update4.  I have written small code to read the values in DMA registers. Here i am giving the code i ahve written. Except start address and current address, other values are read from some other locations. If anybody having what are precautions to take care or my code is having bugs, please inform.

 

#define DMA_CHANNEL_OFFSET 0x40

.section program;

.global _main;

_main:
  
     R0 = 1;
    
     R1.l = 0x0C00;
     R1.h = 0xFFC0;//DMA_BASE_ADDR;
     
     R2 = DMA_CHANNEL_OFFSET;
    
     R2 *= R0;
     R1 = R1+R2;    
    
     P0 = R1;
    R3 = [ P0 + 4];       // Start Address
     SSYNC;
 
  R4 = [ P0 + 36];       //current Address
  SSYNC;

  R5 =  [P0 + 16];        //x count
  SSYNC;

  R6 =  [ P0+ 20];       //xmodify
     SSYNC;

  R7 = [ P0 + 24];        // ycount
  SSYNC;
 
    IDLE; 

_main.end:   

 

 

with regards,

sunil

Outcomes