ideas make future
ČSN EN ISO 9001:2009 • Business conditions • Worldwide delivery
 
About us Hardware Software Web

Altus VARIO

Google search:





Our news directly
to your mail?

Map Print Download Dokumentace

Image Convertor V2.0


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.

Main properties

  • Fast and easy conversion of images (*.BMP) in format 1x1 to 320x240 pixels
  • Three types of display contollers (KS107, ST7920, T6963)
  • Three types of compression formats (None, Zero and Full)
  • Four types of programming languages (ASM, Pascal, Basic and C)
  • Boundary settings for conversion from colour images to black/white images
  • Supporting of programming languages "ASM51" and "C" libraries for work with images and text (32 to 128 ASCII)
Usable for LCD display with controllers KS107, ST7920, T6963C

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


Process of conversion and viewing

  1. Open the image in (*.bmp) format
  2. Select the black and white boundary (for colour images only)
  3. Select display controller, compression type and programming language
  4. Press "Convert" button for converting
  5. Copy created table into the programme code of microprocessor
  6. Call the DISP_ICON routine with link to the table and position of image viewing

Process of conversion and viewing


Explanation of conversion process

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.


Example of image conversion

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


Example of implementation code in C language

#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);
 }
}


Diagram of wiring EL12864A LCD display and AT89C51 processor

Diagram of wiring EL12864A LCD display and AT89C51 processor

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.


Documentation

More information you can find in documentation.
CZ image-convertor.pdf [pdf, 370 kB]
CZ image-convertor.pdf [pdf, 370 kB]


Download

ImgConvV2.0.zip - Image Convertor V2.0 [zip, 793 kB]
ImgConvV1.1.zip - Image Convertor V1.1 [zip, 743 kB]


Back up