DAC with DMA on Vybrid VF65GS10

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

DAC with DMA on Vybrid VF65GS10

633 Views
muhammad_qasim
Contributor I

Hi

I am working on DAC module for Vybrid VF65GS10 and successfully done with

non- buffered support [DAC0_STATCTRL = 0x0000E002]

Buffered support [DAC0_STATCTRL = 0x0F01E002; Set DACSWTRG bit in loop to advance read pointer]

I have tried to use DAC with DMA but no success. [I have successfully used DMA with Serial].

Here is my settings for DAC

[DAC_STATCTRL = 0x0080C702]

DAC0 interrupt is enabled [87]

Here is my settings for DMA

DMA0

DMA0_MUX1

Peripheral ID: 32

DMA Channel: 16

If I manually set DMA_TCD_CSR[START] bit during debugging then data is appeared in data register of DAC. otherwise no data is visible on DAC Data Register (Buffer 0).

What is wrong with my configurations.

Labels (1)
0 Kudos
3 Replies

400 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Attached you can find a very simple example I created. It is using a circular buffer for the DMA. PDB to update the DAC pointer.

The example is in IAR using as reference the vybrid examples VYBRID_SAMPLE_CODE_SBCH found at:

http://www.freescale.com/webapp/sps/download/license.jsp?colCode=VYBRID_SAMPLE_CODE_SBCH&location=nu...

I hope that helps.

400 Views
karina_valencia
NXP Apps Support
NXP Apps Support

timesyssupport can you   attend this case?

0 Kudos

400 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

I am working with the customer already. The customer needs an example with no OS.

Regards,

Alejandro

0 Kudos