Saturday, 30 May 2009 16:33 Last Updated on Sunday, 29 May 2011 20:29 Written by Hubert
C-Library for LCD Type VLGEM1021-03
The LCD VLGEM1021-03 is a 5x7 dot display, in my case with 2 lines 24 character each. It is identical with HB24208 / HB24209.
The controller of the display is a KS0074 or compatible.
According to the data sheet the necessary supply voltage is between 2,7V and 5,5V.
The LCD is using a SPI communication. In version 1.0.0 of the library the busy flag is not used.
In my application the LCD in connected to the µC like is.
The contrast of the LCD is set by R2. To avoid conficts between the LCD and the ISP programming, R3 is pulling the chip select of the LCD to high and sets the output pin of the LCD to high-Z.
A foil cable and the apropoiate connector is used between LCD and PCB.
In the first line on the right are two custom made symbols visible. The LCD supports up to 8 custom symbols that are stored in the CGRAM and there have to be set after each power cycle.
The lcd_putc(x), x for 0 to 7, is used to display a custom symbol.
In the second line on the right 8 symbols necessary for German language text are displayed. This characters are stored in the ROM of the LCD.
Omega 0xe9
ö 0xef
ü 0xf5
ä 0xe1
ß 0xe2
Ö 0xb5
Ü 0xb8
Ä 0xab
There are may more symbols available in the ROM, please consult the data sheet of the LCD controller.
Program files In the spi_lcd.h file there is a section called "User section - adapt to your system" that allowes to disable unused functions to save porgram memory.
This libary was tested on a Atmel ATMega8. It should work an all Atmel ATMega µC that feature a harware SPI unit.
The zip-file contains all library source code as well as a small demo program "programm.c" .
I would be happy to get some feedback and suggestions. spi_lcd