VGA Driver/object Does Not Work on my Sony LCD
Goog
Posts: 65
Hi all,
I'm just loving the Propeller Demo board (rev c)! So far, I've been able to get all examples to work just fine and I've been modifying them and having a blast!
The VGA examples work on my Sony CRT monitor just fine.· But when I try them on my Sony SDM-M51 LCD monitor, it just sits there, black... well, maybe.· The problem is that it is in power save mode and nothing seems to trigger it to come alive.· I've found a setting that turns off power save mode and it still displays nothing (so I'm not actually sure it is·'power save' related).
Has anyone seen this? Is there some sort of signal that needs to awaken my monitor? My cable is good - or else it wouldn't work on my regular computer (right?).
Thanks!
Goog
·
I'm just loving the Propeller Demo board (rev c)! So far, I've been able to get all examples to work just fine and I've been modifying them and having a blast!
The VGA examples work on my Sony CRT monitor just fine.· But when I try them on my Sony SDM-M51 LCD monitor, it just sits there, black... well, maybe.· The problem is that it is in power save mode and nothing seems to trigger it to come alive.· I've found a setting that turns off power save mode and it still displays nothing (so I'm not actually sure it is·'power save' related).
Has anyone seen this? Is there some sort of signal that needs to awaken my monitor? My cable is good - or else it wouldn't work on my regular computer (right?).
Thanks!
Goog
·
Comments
I don't have a propeller and I have no idea how to fix this but look into the refresh rate.
-Rick
' 1024 x 768 @ 57Hz settings: 128 x 64 characters
· hp = 1024···· 'horizontal pixels
· vp = 768····· 'vertical pixels
· hf = 16······ 'horizontal front porch pixels
· hs = 96······ 'horizontal sync pixels
· hb = 176····· 'horizontal back porch pixels
· vf = 1······· 'vertical front porch lines
· vs = 3······· 'vertical sync lines
· vb = 28······ 'vertical back porch lines
· hn = 1······· 'horizontal normal sync state (0|1)
· vn = 1······· 'vertical normal sync state (0|1)
· pr = 60······ 'pixel rate in MHz at 80MHz system clock (5MHz granularity)
This is all over my head, but it would appear that it is trying to set the freq. to ~60MHz.· Is there something I should tinker with to see if I can get it to work? (I also tried the other settings that were commented out, to no avail.)
Thanks for the reply!
Goog
Section "Monitor"
Identifier "SDM-M51"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28 - 61
VertRefresh 48 - 65
# 1024x768 @ 60 Hz, 48.4 kHz hsync
Modeline "1024x768" 65 1024 1064 1208 1344 768 771 777 806 -hsync -vsync
I didn't dig up the xFree86 docs, but from what I remember and a guess or two it would equate to:
hp = 1024 'horizontal pixels
vp = 768 'vertical pixels
hf = 40 'horizontal front porch pixels
hs = 144 'horizontal sync pixels
hb = 136 'horizontal back porch pixels
vf = 3 'vertical front porch lines
vs = 6 'vertical sync lines
vb = 29 'vertical back porch lines
hn = 1 'horizontal normal sync state (0|1)
vn = 1 'vertical normal sync state (0|1)
pr = 65 'pixel rate in MHz at 80MHz system clock (5MHz granularity)
I *think* the difference is that the XFree modeline values are cumulative and the propeller config params aren't. Also, I don't know if -h/v sync is "normal" i.e. 1 or 0 so you may want to try changing the hn and vn parms.
If you get something on the screen but the screen image is shifted (right/left or up/down) or too wide or tall you will need to fine tune the front/back porch and sync pixel values. There is a logic to it, but I always use the GUI tool that ships with X to do this so I can't tell you it off the top of my head.
-Rick
If I get anything else to happen, I'll post it.
Thanks again,
Goog
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
Goog
To be more thorough, you should update the _XINFREQ to 6_000_000 to let the compiler know what frequency you are really running rat. The VGA will speed up, regardless.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
Would this crystal be suitable - its 6mhz but 30pf/ load.· I see the 5mhz ones from digikey are 20pf.
http://uk.farnell.com/jsp/endecaSearch/partDetail.jsp?SKU=9509577&N=401
thanks,
James
Chip Gracey
Parallax, Inc.