This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

5739DMA的问题



int main( void )
{
  // Stop watchdog timer to prevent time out reset
  unsigned char i;
  WDTCTL = WDTPW + WDTHOLD;
  PJDIR|=BIT0;
  __data16_write_addr((unsigned short)&DMA0SA,(unsigned long)0x1c20);            //源块地址
  __data16_write_addr((unsigned short)&DMA0DA,(unsigned long)0x1c40);            //目的地址
  DMA0SZ=16;                            //块尺寸大小
  DMA0CTL=DMADT_5+DMASRCINCR_3+DMADSTINCR_3;                    //重复递增
  DMA0CTL|=DMAEN;                                               //使能DMA0
  while(1)
  {
     PJOUT|=0X01;
    
     DMA0CTL|=DMAREQ;
     PJOUT&=~0X01;
    
  }
  return 0;
}

这是程序,我全速运行,数据搬移正确,step out 运行方式也可以,step into就不行了有数据不对。

是不是单步运行有影响呢?请高手指教,谢谢!