Generate Sine Wave through DAC using DMA ping pong buffers in FRDM k64 using MQX

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

Generate Sine Wave through DAC using DMA ping pong buffers in FRDM k64 using MQX

1,992件の閲覧回数
oliviachristyva
Contributor III

Hi guys,

I have a code which generate a perfect audio output through DAC using DMA  ping pong buffers. But now I want to generate a stable sine wave using this same DMA ping pong buffer. I tried with the audio code but failed. he sine wave is not continuously coming on the scope . Is it possible to use this same audio code to generate a sine wave or do I have to write another code for that.

If it possible to use the Audio code for generating sine wave what changes should I make in the code.

I am writing the code in MQX 4.2

please help

regards,

Olivia

0 件の賞賛
返信
2 返答(返信)

1,712件の閲覧回数
oliviachristyva
Contributor III

Hi  Daniel,

Thank you for your suggestions. i finally got it working with some changes in the audio dma code.

Regards,

Olivia 

0 件の賞賛
返信

1,712件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi Olivia:

I would suggest your refer to the following application note, it maybe helpful. In this application note, DMA and interrupt based ping-pong buffer scheme is discussed.

http://cache.nxp.com/assets/documents/data/en/application-notes/AN4520.pdf?fsrch=1&sr=1&pageNum=1 

http://cache.nxp.com/assets/documents/data/en/application-notes/AN4800.pdf?fsrch=1&sr=2&pageNum=1 

Regards

Daniel

0 件の賞賛
返信