Configure DMA for DAC with Processor Expert

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

Configure DMA for DAC with Processor Expert

3,202 Views
tmf
Contributor I
Configure DMA for DAC with Processor Expert
Description:I have tried to configure CW10.1 using processor expert to transfer by DMA to the DAC.....

I have two data buffers, one is being DMA'd out to the DAC at a specified rate, while the other is being filled, once the buffer being transferred is done, it switches to the other one.

Its an audio application I am sending data to DAC at 32Khz..... So I would think I could use PIT or similar to trigger the DMA transfers.....

Can you walk me through the setup?

Send me demo code already doing this?

I have K60 Tower kit and CW10.1 fully updated.

Thanks.

This was posted on my support page and has not been looked at for 5 days from FREESCALE :smileysad:

 

Hope someone can help.

0 Kudos
Reply
7 Replies

1,517 Views
ProcessorExpert
Senior Contributor III

Hello,

 

you can find an example related to the DMA transfers on "Typical Usage" page in help of DAC_LDD component, the help is available through "Help" menu command from component´s pop-up menu.

 

Note:

You can also find a basic example project of using DAC_LDD and ADC_LDD in the following folder:

{CodeWarrior}\MCU\CodeWarrior_Examples\Processor_Expert\Kinetis\TWR-K40X256\DAC_ADC\

 

best regards
Vojtech Filip
Processor Expert Support Team

0 Kudos
Reply

1,517 Views
tmf
Contributor I

So these worked fine, but DMA to the DAC still not working.....

 

Richard.

0 Kudos
Reply

1,517 Views
ProcessorExpert
Senior Contributor III

Hello,

 

could you please post here some simple demonstration project of your problem?

 

best regards
Vojtech Filip
Processor Expert Support Team

0 Kudos
Reply

1,517 Views
tmf
Contributor I

Here is my project

0 Kudos
Reply

1,517 Views
ProcessorExpert
Senior Contributor III

Hello,

 

I think this issue was already solved within this thread:

 

https://community.freescale.com/message/97760#97760

 

Am I corect?

 

best regards
Vojtech Filip
Processor Expert Support Team

0 Kudos
Reply

1,517 Views
tmf
Contributor I

Yes except for the timing issues, the PIT0 timer seems not to effect the output, I am trying to time the output to the DAC with PIT0....

 

Richard.

 

0 Kudos
Reply

1,517 Views
tmf
Contributor I

I can get buffer to buffer DMA to happen, just declare 2 buffers in memory and move one to another..... BUT I can not get one memory buffer to go to the DAC, I will look at the examples you sent, the ones they give for examples in the CW help files do not help.

 

Thanks.

0 Kudos
Reply