DMA and PIT for FRDM K64F board

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

DMA and PIT for FRDM K64F board

Jump to solution
3,215 Views
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.

Labels (1)
0 Kudos
Reply
1 Solution
2,316 Views
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

View solution in original post

0 Kudos
Reply
9 Replies
2,317 Views
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 Kudos
Reply
2,316 Views
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 Kudos
Reply
2,316 Views
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 Kudos
Reply
2,316 Views
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 Kudos
Reply
2,316 Views
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 Kudos
Reply
2,316 Views
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 Kudos
Reply
2,316 Views
kirantujare
Contributor IV

Thank you so much Alice :smileyhappy:

0 Kudos
Reply
2,316 Views
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 Kudos
Reply
2,316 Views
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 Kudos
Reply