VGA Timing: Black screen and cyan vertical lines
Posted: Tue Jul 14, 2009 5:40 am
Hello,
I need some help in programming the CRT-Registers of the VGA-Standard.
I want to set up 720x400 textmode (80x25 chars) and everything works in Bochs.
Only if I test my kernel on real hardware, my monitor shows only black background with
cyan vertical lines. The Mode and the Timing is recogniced correctly by the monitor, so I
think the translation of the Data is wrong. I tried several other timings, longer retrace signals
and longer pauses between them and the next line/screen... Everything I do results in those lines.
If I change timing I change the position of the lines, but nothing else.
There is also some logic in those lines. If I type something (Should be displayed), then there
appear some new lines with the width of one char and on the position of the char.
I made some screenshots to show, what I mean. The first I have done nothing. The second
shows the screen after typing 5 numbers. The next shows after some newlines. And in the
upper left corner ther is a blinking "c000,", wich isn't explained by my monitor book.
Normaly the first screen should show two lines with text, then a empty line and then the prompt.
So everything looks like scrolled down.
By the way: The lines are static. They are not flickering...
I hope someone has an idea, what I can try to solve the problem. I don't know what I should try
next. Neither I know, what causes the lines...
Best regards
Sebihepp
I need some help in programming the CRT-Registers of the VGA-Standard.
I want to set up 720x400 textmode (80x25 chars) and everything works in Bochs.
Only if I test my kernel on real hardware, my monitor shows only black background with
cyan vertical lines. The Mode and the Timing is recogniced correctly by the monitor, so I
think the translation of the Data is wrong. I tried several other timings, longer retrace signals
and longer pauses between them and the next line/screen... Everything I do results in those lines.
If I change timing I change the position of the lines, but nothing else.
There is also some logic in those lines. If I type something (Should be displayed), then there
appear some new lines with the width of one char and on the position of the char.
I made some screenshots to show, what I mean. The first I have done nothing. The second
shows the screen after typing 5 numbers. The next shows after some newlines. And in the
upper left corner ther is a blinking "c000,", wich isn't explained by my monitor book.
Normaly the first screen should show two lines with text, then a empty line and then the prompt.
So everything looks like scrolled down.
By the way: The lines are static. They are not flickering...
I hope someone has an idea, what I can try to solve the problem. I don't know what I should try
next. Neither I know, what causes the lines...
Best regards
Sebihepp