DMA and PIT for FRDM K64F board

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

DMA and PIT for FRDM K64F board

跳至解决方案
3,200 次查看
kirantujare
Contributor IV

I'm working on a project where I'm trying to design a frequency generator. I want to use DMA and PIT(Periodic Interrupt Timer) feature on FRDM K64F board. I would like some help on the use of these on FRDM K64F board using KSDK+PE. I am using KDS Version: 3.2.0 and KSDK 1.3.

标签 (1)
0 项奖励
回复
1 解答
2,301 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Kiran,

I think you can refer to the demo code under PE project :

create one k64 project on KDS,  only select Processor Expert , do not select  KSDK,

then add DAC_LDD component , right click it , select "help on component ":

pastedImage_0.png

About the KSDK+PE project , the theory is the same .

You can through change the time of interrupt to change the frequency .

Hope it helps

Alice

在原帖中查看解决方案

0 项奖励
回复
9 回复数
2,302 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Kiran,

I think you can refer to the demo code under PE project :

create one k64 project on KDS,  only select Processor Expert , do not select  KSDK,

then add DAC_LDD component , right click it , select "help on component ":

pastedImage_0.png

About the KSDK+PE project , the theory is the same .

You can through change the time of interrupt to change the frequency .

Hope it helps

Alice

0 项奖励
回复
2,301 次查看
kirantujare
Contributor IV

Thank you for helping me out. I have another doubt. I require to output 3 different waves on 3 different channels. Currently, I am checking my output on scope on Analog out (DAC0_out) pin. How do I check output for 3 channels? Which pins are used for that? Please let me know if you understood my doubt and could provide any help?

0 项奖励
回复
2,301 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Kiran,

For DAC0, it only have one out put pin :

pastedImage_0.png

Hope it helps

Alice

0 项奖励
回复
2,301 次查看
kirantujare
Contributor IV

Hi Alice,

I wanted to direct you to another question I have
Pulse generator on FRDM K64F board  

Please take a look at your spare time.

Thank you.

0 项奖励
回复
2,301 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Kiran,

I checked there is a kinetis expert have checked your question , he will reply you .ASAP.

BR

Alice

0 项奖励
回复
2,301 次查看
kirantujare
Contributor IV

Hi ALice,

I wanted to direct you to this thread USB as Device Driver
Please let me know if you could answer this question?
-Kiran

0 项奖励
回复
2,301 次查看
kirantujare
Contributor IV

Thank you so much Alice :smileyhappy:

0 项奖励
回复
2,301 次查看
kirantujare
Contributor IV

Hi Alice,

I just found out that my 7200 data points get halved ( 3600) after sending them over to DAC.

Do you know why this would happen? I have attached the screenshot. After using this line of code the datapoints are halved.
I have attached my code just for reference.

0 项奖励
回复
2,301 次查看
kirantujare
Contributor IV

Thank you for the reply.
Is it possible to get 2 outputs through DAC on FRDM K64F board?
(I have to output two different waves at the same trigger)
If not, can I send DMA output directly to I/O pin?

0 项奖励
回复