Low-Level Programming C : Text to VGA

Nanda Fathurrahman
Attachment: Main.c (9.91 KB)
Hello Guys, I am new but i am curious to learn ARM based microcontroller. I
am working on Electronics Shop as Support Engineer, i have project that use
Mini2440 + LCD to VGA board.

My project is to display text to VGA from C program (i use KEIL).
I use LCD VGA Monitor @70MHz.

by using the 2440test source code i have been able to make the VGA  clear
screen, and put pixel on it. But since the 2440test example did not provide
text on LCD, then i tried to use uCOS source code, on uCOS VGA demo it
display Date, and Clock.

Is there anyone have suggestions or experiences in this no OS application?
i've been Lcd_PutASCII, Lcd_PutHZ, Lcd_printf from ucOS but i cant
understand how it works..

my program (Main.c) is on attachment.
please help me.

Regards
Nanda

MIrekw
If you are able to run the text from uCOSII succesfully, then just copy the
library from uCOS src.

the files:
lcd.c
there is a function to write text on display / or vga

void Lcd_printf(unsigned int x,unsigned int y,unsigned int c,unsigned int
bk_c,unsigned int st,char *fmt,...)

which uses the "Font_Libs.c" included in the header, in that file are
defined chars one by one

Marvin
Hi, I tried to use

void Lcd_printf(unsigned int x,unsigned int y,unsigned int c,unsigned int
bk_c,unsigned int st,char *fmt,...)

with Font_Libs.c, but there was an error with these three lines (ADS 1.2):

va_start(ap,fmt);
vsprintf(__LCD_Printf_Buf,fmt,ap);
va_end(ap);

I thought it isn't important, so I deleted it, but without these lines LCD
shows always the same 3 chars...

Any ideas?

Thanks