I am very new to embedded programming. I have the CY8CKIT -014 First Touch Starter Kit and have been working through the projects in an effort to get somewhat familiar with PSoC on-chip architecture and the Creator software. I would like to develop a frequency generator but i need help.
Can someone help me understand which components are needed to do this?
Solved! Go to Solution.
Welcome to the fascinating world of PSoC!
There are different ways in which you can generate signals.
Let me ask you some questions:
1) What kind of waveforms do you intend to generate? Sinusoidal / Square / Triangular / Ramp..?
2) What is the frequency of the signal?
Ideally, when you want waveforms such as sine, you can use a predefined Look Up table and update the Voltage Digital to Analog Converter (VDAC) with these values. The transfer of values from the table to VDAC can be done using a Direct Memory Access (DMA).
The rate of update determines the frequency of the waveform. The values in the LUT will determine the shape of the waveform and the range of the values in the LUT will determine the amplitude of the waveform.
There is a component named WAVEDAC8 which you have to search for and add it like the documentation shows. This component has the ability to generate any wave-output you like.
That's a one stop solution!
You can find the application note on WaveDAC8 Component here
The basics about DMA will help you get going. The application note on DMA shows an example of sine wave generation using Look up table. This can be found here
The snap-shot below shows the schematic of this project.
Thanks guys. I haven't been successful in my searches for a download. I have found and read the documentation that is provided but can't figure out how to get the component. It can't be that difficult but just like a good bug, it's eluding me!
Its easy! you have the right URL from the last post. Download the PDF, download the zip and extract to a new directory.
Now look at page 11 of the PDF, it shows step-by-step how to install the WAVEDAC8 component for your project.
Thanks Bob. Boy do I feel sheepish! I just didn't go far enough in my readings. I could blame it on too much Jolt or too many marathon programming sessions but the fact is I just goofed. Thanks again