954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Lcd

How do I display a graphic waveform on BTHQ 128064AVC-SMN-06-LEDwhite-COG? Any sample code?

hgseric
Newbie Poster
9 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

>How do I display a graphic waveform on BTHQ 128064AVC-SMN-06-LEDwhite-COG?
Depends on how you want to display it. If you're planning to do it at the console, you're going to have to find a console graphics library or use the one built into the WinAPI...

For GUI graphics you have to create a window first and then draw your graphics on top of that. See this:
http://www.winprog.org/tutorial/

John A
Vampirical Lurker
Team Colleague
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
 

oh.. I need to display a waveform on the LCD using C++ coding..

hgseric
Newbie Poster
9 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

Have you take a look at the LCD? Its a dot matrix based LCD.. and i'm using a chip call C8051F to process the C langauge code to display it on the LCD.. That's y i am not sure how to display on it..

hgseric
Newbie Poster
9 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

>oh.. I need to display a waveform on the LCD using C++ coding..
Yes, but how do you want to display it? Do you want it on the black console window that you run your text-based applications in? Do you want it in a window? If that's the case, just check out the link I posted before to learn the basics of WinAPI GUI programming.

John A
Vampirical Lurker
Team Colleague
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
 

sorry.. i'm a novice in that.. i dun really get what u mean..

hgseric
Newbie Poster
9 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

I have take a brief look at the link that u have gave me.. But i dun understand what it says..

hgseric
Newbie Poster
9 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

>sorry.. i'm a novice in that.. i dun really get what u mean..
Do you want it displayed on something similar to this (sorry, this is Mac OS X, but Windows' Command Prompt is alike):

[attachment]3079[/attachment]

Or do you want a whole separate fancy window where you draw the wave?

Attachments Picture_1.png 13.28KB
John A
Vampirical Lurker
Team Colleague
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
 

I think i'm using a software call Silabs to write the programme.. Can u help mi take a look at this link? http://www.silabs.com/tgwWebApp/appmanager/tgw/tgwHome?_nfpb=true&_pageLabel=interactiveGuide&col=dgio

Ctrl+F to find F000.. look at the data short and data sheet.. This is the software I using to do the code..

hgseric
Newbie Poster
9 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 
I think i'm using a software call Silabs to write the programme.. Can u help mi take a look at this link? http://www.silabs.com/tgwWebApp/appmanager/tgw/tgwHome?_nfpb=true&_pageLabel=interactiveGuide&col=dgio Ctrl+F to find F000.. look at the data short and data sheet.. This is the software I using to do the code..




The pdf I show u is exactly the LCD I'm dealing with.. Take a look at that too..BTHQ 128064AVC1-COG

Attachments DM_Flyer_Batron_2007.pdf (1397.97KB)
hgseric
Newbie Poster
9 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

That data sheet talks about parallel or serial versions, you need to figure out which one you've got.

Read the appropriate one of these, for the type of operating system you're running on your development PC.
http://www.lvr.com/parport.htm
http://www.lvr.com/serport.htm
I'm assuming this device is plugged into your PC in some fashion.

For serial line interfaces, you need to read the data sheet (what you posted was a sales leaflet, not a programmers data sheet) to find out such things as
- baud rate
- stop bits
- parity
So that when you start to write your programs, then you can set up the serial port on the PC to match what the LCD module expects.

The first programming step is to find an example which the manufacturer has provided, and try to make it work on your platform. When you're confident of that working, then you can try other things in the data sheet such as perhaps plotting pixels.

If the manufacturer has been really nice, you make have a library which does a lot of this stuff for you, in which case you need to go read all about that as well.

Then (and only then) would you be in a reasonable position to be able to plot your graphs.

Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 
That data sheet talks about parallel or serial versions, you need to figure out which one you've got. Read the appropriate one of these, for the type of operating system you're running on your development PC. http://www.lvr.com/parport.htm http://www.lvr.com/serport.htm I'm assuming this device is plugged into your PC in some fashion. For serial line interfaces, you need to read the data sheet (what you posted was a sales leaflet, not a programmers data sheet) to find out such things as - baud rate - stop bits - parity So that when you start to write your programs, then you can set up the serial port on the PC to match what the LCD module expects. The first programming step is to find an example which the manufacturer has provided, and try to make it work on your platform. When you're confident of that working, then you can try other things in the data sheet such as perhaps plotting pixels. If the manufacturer has been really nice, you make have a library which does a lot of this stuff for you, in which case you need to go read all about that as well. Then (and only then) would you be in a reasonable position to be able to plot your graphs.

\\











The development device used an USB cable to plugged into the PC for the programme.. I supposed it is a serial port.. Then wat shall i do next?

hgseric
Newbie Poster
9 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You