Hi,
I am looking for a DMA version without usage of interrupts. Therefore I would like to periodically look at the register
dmaREG->PBACTC
I would like to see the current frame count of a certain DMA channel.
Is this possible?
Kind regards,
C.W.
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.
Hi,
I am looking for a DMA version without usage of interrupts. Therefore I would like to periodically look at the register
dmaREG->PBACTC
I would like to see the current frame count of a certain DMA channel.
Is this possible?
Kind regards,
C.W.
C.W.
PBATC provides 2 counters:
1] PBFTCOUNT: Frame counter for the active channel.
2] PBETCOUNT: Element counter for the active channel.
It may be necessary to access the DMASTAT register to figure out which channel is currently active if you are using the DMA with more than 1 channel.
Hi jean-marc,
ok my idea was to ask during my realtime task how many items have been sent via dma. In deed I am using several DMA channels. So as I understand correct it is possible that I read in the DMA destination while the DMA is updating and changing values?
Kind regards,
C.W.
C.W.
In your case (multiple channel enabled) it will be better and easier to access the DMA control packet directly.
From the DMA_RAM base address, you will find at offset 0x800 the following information for each control packet:
For each control packet you have:
Current Source address (32bit word)
Current Destination address (32bit word)
Current Transfer Count: