does any one know how to convert a .bmp file to either hex or .s19 to be used with a graphics display.im wanting to convert .bmp files to make it easier to create the graphics i want to display on the lcd screen. |
|
.bmp to .s19
Started by ●June 28, 2004
Reply by ●June 28, 20042004-06-28
Well, .s19 is simply an ASCII representation of the contents of a binary file. You can find a description of the .s19 format in almost any manual for a Moto EVB board. The conversion is pretty simple. Bob Smith --- Avoid computer viruses, Practice safe hex --- -- Specializing in small, cost effective embedded control systems -- http://www.smithmachineworks.com/embedprod.html Robert L. (Bob) Smith Smith Machine Works, Inc. 9900 Lumlay Road Richmond, VA 23236 804/745-2608 ----- Original Message ----- From: "MIKE" <> To: <> Sent: Monday, June 28, 2004 3:25 PM Subject: [m68HC11] .bmp to .s19 > does any one know how to convert a .bmp file to either hex or .s19 to > be used with a graphics display.im wanting to convert .bmp files to > make it easier to create the graphics i want to display on the lcd > screen. > -- ------ > Yahoo! Groups Links > > a.. To |
Reply by ●June 28, 20042004-06-28
----- Original Message ----- From: "MIKE" <> To: < > does any one know how to convert a .bmp file to either hex or .s19 to > be used with a graphics display.im wanting to convert .bmp files to > make it easier to create the graphics i want to display on the lcd > screen. You can use a binary to S19 conversion utility such as mine found here: http://www.aspisys.com/binex.exe Usage: binex bitmap.bmp bitmap.s19 $starting_hexaddress |
Reply by ●June 28, 20042004-06-28
Mike, I suspect that what you want to do is not as simple as just converting one file format into another. You need to know how the bits of the bitmap are to be mapped onto the display. In an application I worked on, it was necessary to take the bits in groups of 6 (top 2 bits of the byte are ignored) and send them to the display so as to fill a horizontal strip of single pixels and so on until the display was filled. This was a monochrome display. I wrote a simple C program to take the bitmap file which had been set up to have the same numbers of pixels in both directions as the target display and to generate from it an assembler source file which was then assembled and linked with the program. Changing the image on the display is then fairly easy involving changed artwork and passing through the assembler file generation process. On Tue, 2004-06-29 at 05:25, MIKE wrote: > does any one know how to convert a .bmp file to either hex or .s19 to > be used with a graphics display.im wanting to convert .bmp files to > make it easier to create the graphics i want to display on the lcd > screen. > Yahoo! Groups Links > > -- Bob Mitchell PO Box 68 Phone (+61 2) 9449 4736 (21 Hudson Close) Fax (+61 2) 9449 1976 Turramurra, 2074 Mobile 0411554117 NSW, Australia Email |