Image Convertor V2.0 application allows very easy and fast conversion of your images into the table for LCD graphic display (graphic module) connected to microprocessor. Image Convertor allows conversion into three types of compression formats (None, Zero and Full) and into four programming languages (ASM, Pascal, Basic and C). Image Convertor runs with operating systems Windows 9x / Me, Windows NT / 2000 / XP.
EL 6464, PG 12856, PG 12864, GDM 12864, EL 12864, EL 24064, EL 16032, L 16032, PG 128128, PG 24064, PG 240128
Support for other drivers can be ordered...
For explanation of controller KS107 conversion process we shall use simple image formed from four black and white squares. Each square is 8x8 pixels sized. This image is possible to convert into three compress types (None, Zero and Full)
First three Bytes of converted code mean height (pixels), width (pixels) and compress type (None = 0x00, Zero = 0x01 a Full = 0x02). These parametres obtain for all types of conversion.
None (0x00)
Converted data fully correspond with original image (without changes). This type of conversion is advantageous for irregular images.
Zero (0x01)
Data are stored in simple type of compression. In presence of Byte with value "zero", next Byte behind this "zero" means number of these "zeros" presence. This type of conversion is advantageous for images with predominance of white (empty) areas.
Full (0x02)
Behind every Byte follows information about number of this Byte presence. This type of conversion is advantageous for images with periodic structure.
Conversion in none compression type
0x10,0x10,0x00,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
Conversion in zero compression type
0x10,0x10,0x01,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x10,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF
Conversion in full compression type
0x10,0x10,0x02,
0xFF,0x08,0x00,0x10,0xFF,0x08
#include <stdio.h>
#include <reg51.h>
#include "ks107.h" // Routines support
#include "Image.h" // Routine with code of converted image
void main(void)
{
PAUSE(5);
DISP_INIT(); // Display initialization
for(;;)
{
DISP_ICON(Head,0,0); // 1. Display Image (Image, Pos. Row,Col)
PAUSE(20);
DISP_TEXT("Hello",5,0,56,45); // 2. Display Text (Text,Length,Size,Pos. Row,Col)
PAUSE(20);
DISP_TEXT("Hello",5,1,48,35); // 3. Display Text (Text,Length,Size,Pos. Row,Col)
PAUSE(20);
}
}
Wiring of graphic display and microprocessor is made by eight data units DB0 - DB7 and five direct line wires E, D/I, CS0, CS1 and RESET. It´s appropriate to connect lifting resistances RN1 = 10k to data units in case of connection these data units to P0 microprocessor port.
More information you can find in documentation.
image-convertor.pdf [pdf, 370 kB]
image-convertor.pdf [pdf, 370 kB]
ImgConvV2.0.zip - Image Convertor V2.0 [zip, 793 kB]
ImgConvV1.1.zip - Image Convertor V1.1 [zip, 743 kB]
Materske-skoly.cz • Zakladní-skoly.cz • Electronic ignition system