請問這行 DMA 函數更改了哪些 SFR 的內容?

作者 PSIR 於 2018年07月02日 14:49:07
大家好:

以下這行函數會對哪些 DMA 的 SFR 做設定,若要改成暫存器寫法要怎麼寫呢?謝謝。
DmaChnSetTxfer();

----------------------------------------------------------
#define DMA0 (0)

unsigned char srcSize = 2; //specify the Source Size

//specify size of (bytes) per transaction(Cell Size)
//(16-bit AD values requires 2 bytes)
unsigned char cellSize = 2;

//specify the size (bytes) of the destination
//(Destination Size)
unsigned short dstSize = 200;

//assign source address
unsigned short* pDmaSrc = (void*) &ADC1BUF0;

//assign destination address
unsigned short* volatile pDma_0_Dst = ADC;

DmaChnSetTxfer(DMA0, pDmaSrc, pDma_0_Dst, srcSize, dstSize, cellSize);
----------------------------------------------------------

來自: http://www.microchip.com.tw/newbb/viewtopic.php?forum=8&topic_id=22340&post_id=78321