Hi, I have to capture a signal using lpc1768 in Keil uvision-IDE. I tried alot. Am not getting it. Plz anyone give the code.
Thanking You.
Since you don't even seem to know what kind of signal you fail to capture, you really are bound to fail.
Maybe you should remount head and then start reading the documentation for the processor and try to figure out if any of the processor pins may be suitable for your specific type of signal. Then you might even find the relevant information how to capture the signal - at least hat was the intention with the manufacturer investing a huge amount of time creating the documentation...
I have to capture the square wave just from CRO. I have tried to capture by using capture pin in timer. But, still am lagging... Thats y...
Yes, I can see that you are lagging.
But what about your source code?
What have you tried?
What did the processor user manual describe that you should do?
How have you debugged your code?
What do you mean by, "square wave from CRO" ?
Usually, CRO means "Oscilloscope" and, usually, oscilloscopes do not produce output signals.
Or are you trying to read data from an oscilloscope; eg, its captured trace?
Please explain...
As already noted, if you (or anyone else) don't properly understand the "signal" to be captured, then it's impossible to know how to proceed!
And what, exactly, do you mean by "capture"?
Do you just need to measure its frequency, or do you need to make a complete record of its amplitude vs time - as an oscilloscope does?
Again, nobody can help you to achieve your goal when you don't fully describe what the goal is!