DAC with DMA on Vybrid VF65GS10

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

DAC with DMA on Vybrid VF65GS10

808件の閲覧回数
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.

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

575件の閲覧回数
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.

575件の閲覧回数
karina_valencia
NXP Apps Support
NXP Apps Support

timesyssupport can you   attend this case?

0 件の賞賛
返信

575件の閲覧回数
alejandrolozan1
NXP Employee
NXP Employee

Hi,

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

Regards,

Alejandro

0 件の賞賛
返信