Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Some question about waveform drawing

Status
Not open for further replies.

Hahorse

Newbie level 3
Newbie level 3
Joined
Dec 15, 2011
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,304
Hello
I want to display the waveform of the data which is acquitted from a 10-bits AD converter to a 640x480 LCD.
So,the each data of the ADC can not be correspond with a point of the LCD.I don't kown how to solve this problem.
 

I guess you want the Y axis to be 480 pixels high? Then you will multiply each incoming datum by some scaling value.

10 bits gives you a range of 2^10, or 1024.

The scaling value is 480/1023, or .469. A maximum incoming datum of 1023 converts to 480 or thereabouts.
 

Thank you BradtheRad
At first, i using the way you mentioned above.But the waveform distortion occurs.For example,if the data incoming is very small,then the data which will become the same. I don't kown how to solve this problem.
 

If you are doing your scaling properly there shouldn't be any distortion (other than the obvious quantization erro, but that's only one pixel). Is your problem that all your data has small values? If so, maybe you want to add some gain.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top