Data transfer from Bctu Fifo1 to buffer using Dma

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Data transfer from Bctu Fifo1 to buffer using Dma

1,868 Views
JawadAli
Contributor II

Hello,

I have to transfer data (periodically) from bctu fifo1 to a buffer using dma. Watermark value is set to 5, which means when fifo1 has 6 entries it shall trigger dma for data transfer. Adc result alignment is "ADC_ALIGN_RIGHT" and conversion resolution is "RESOLUTION_14".

Here is my bctu fifo1 configurations from Adc module:

JawadAli_0-1683217346505.png

Here are my dma configurations in Mcl module:

JawadAli_0-1683221164710.png

JawadAli_1-1683221201699.png

JawadAli_3-1683221272876.png

JawadAli_0-1683284942657.png

JawadAli_1-1683284999488.png

I want to transfer these 6 fifo entries in one minor loop and also one major loop, do you see any problem with my configurations?

For testing I have sampled Vrefh and buffer has values e.g. 32727. How to interpret this value, do I need to apply any shift or mask?

Thanks

Tags (4)
0 Kudos
Reply
2 Replies

1,830 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

DMA setting looks correct but rather read full 32bit register. So use TRANSFER_SIZE_4_BYTE and adjust destination offset and last addr adjustment and minor loop size accordingly.

BR, Petr

0 Kudos
Reply

1,859 Views
JawadAli
Contributor II

@PetrS Could you please guide me to resolve this problem. Thanks

0 Kudos
Reply