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.
Solved! Go to Solution.
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 ":
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
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 ":
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
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?
Hello Kiran,
For DAC0, it only have one out put pin :
Hope it helps
Alice
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.
Hello Kiran,
I checked there is a kinetis expert have checked your question , he will reply you .ASAP.
BR
Alice
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
Thank you so much Alice :smileyhappy:
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.
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?