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.

dsp6748中dma一次读取mcasp数据的位数是16位还是32位,mcasp单通道接收时与多通道时dma读取数据位数有区别吗

如题

  • 因为mcaspn xbuf和rbuf是32bit的,所以dma一次读取mcasp的位数是32bit的。
  • 单通道和两通道时都是一次接收32位?
  • 多通道需要搬移的数据是32bit x slot数 x channel数。
  • shine zhang:
    我也有类似的问题不是很明白,我自己的设备第一版是接了一个i2s总线,edma的acnt设置的
    BYTES_PER_SAMPLE (BYTES_PER_SAMPLE 等于2),音频采集没有问题。
    现在我接了2条i2s总线,按照手册,应该dma应该多读一次总线,但是把acnt设置为BYTES_PER_SAMPLE * 2不行,只有设置为BYTES_PER_SAMPLE *4才行,我一直没想明白。
    我的slot = 2 wordsize和slotsize都是16,按照之前的设置,读一条i2s是BYTES_PER_SAMPLE ,那读两次就是BYTES_PER_SAMPLE *2,为什么要改成BYTES_PER_SAMPLE *4才行。