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.
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!