In addition, we want to generation the pulse stream with finite number of pulse not infinite pulse stream.
What I understand from your post PRS is not what you can use for solving your problem
At a resonance-point normally something happens within a circuit that can be measured. Is there a chance of a "calibration"?Within the PSoC3 are ADCs to measure voltages or even small currents, you may program a peak-detector and so on. So there might be a chance to measure the actual resonant frequency or even use a closed-loop to control it.
You can sweep the frequency of a digital signal under CPU-control, there are examples for oscillators, VCOs to find here. Try the keyword search in the upper right corner.
But that all depends on your electronic design, so you'll have to check and discuss that.
Thank you for your fast response.
My opinion is as follows;
Because of our know-how, I cannot describe more detail about our device operation process.
But in normal consumer device, the function such as spectrum analyzer is not possible to employed in source code.
And the function to measure the spectrum of input signal is out of scope for comsumer device.
Because of my limited english description, I cannot describe more detail. That is problem to solve this problem.
I explain more detail.
The electric pen is composed of L and C and the natural frequency can be change from 450KHz to 500KHz due to some reason(Sorry!). But the goal is to detect the natural frequenct of pen. The thechnology to detect the natural frequenct in real time already we can do. To detect the natural frequency that is changed very fast, we have to excit the pen that means to give a power to excit the pen. Because of we don't know the natural frequency of pen, we have to give the power frequency from 450KHz to 500KHz(the natural frequency range of pen) but the sweep the frequency is too slow to detect in real time system. To overcome this problems, if we give power such as random signal but these frequency from 450KHz to 500KHz, we can exit the pen more eficiently and fast and get information more fast. As you know well, in capacitance touch technology of cypress used the preudo random signal to detect the capacitance information very fast. Like this application, we want to use the pseudo random signal as a excitation source.
Is there any way to make PRS which has a fundamental frequency band from 450KHz to 500KHz? I think if I understand the PSOC3's PRS generater's principle, I can employ the PRS on my Tablet system. Unfortunately, I have no basic knowledge about How to generate PRS signal with microprocessor.
or Is there any way to generate the square wave signal by using pre-made data in real time? If this is possible, from lots of try to make PRS we want, we can employ our idea by using PSOC3.
Thank you again!
Here is an example of a VCO for PSoC3 http://secure.cypress.com/?id=4&rID=58481 the controlling voltage can be produced with a DAC and (now it comes:) the DAC can be fed by DMA at high frequency without CPU usage at all.
I think you have to try to build a "proof of concept", I would suggest to use a KIT-001 which not only contains a PSoC3 but a PSoC1 and 5 as well (giving you headroom to both sides of enlarging or shrinking your project), a 2-line LCD and a bredboard area. With the included MiniProg3 there are pretty goog debug-capabilities.