OK, so there's something going wrong when you run the vt1622 utility to set the registers, whether you're using my version or your own:
 
* after setting registers for 720x576 PAL (Marks' program)
[...]
   Enter Command Character: A
   Clock: 0.000000 0 0 0
 
This looks strange but is in fact OK because the line that once set these values is commented out and this now happens a little further down the setUp function.

 
   CLK1: 26.999997
   CLK2: 26.999997
 
Fine.

 
   VSync: -0.007175
   HSync: -0.013988
   HTotal: -965083096
 
Oops.
 
For some reason, you've got completely erroneous values here which then result in incorrect values for CRTC_HTOTAL and various other registers which will definitely prevent you from getting any usable picture out.
 
What's puzzling me is how this is happening.
 
In the setUp function, these three values are derived from 'clock' (set a few lines up as clockFreq(n, d, p), the result of which should be 27MHz, and definitely was when CLK1 and CLK2 were printed).  If you can debug what's happening there, you might find it works a bit better.
 
The values should be as follows (assuming you're using my version):
 
clock: 27000000 (or very close)
ht: 864
 
VSync (as printed): 25 (or very close)
HSync (as printed): 15625 (or very close)
 
CRTC_HTOTAL: 103
CRTC_HEND: 89
CRTC_HSTART_BLANK: 88
CRTC_HEND_BLANK: 107
CRTC_HSTART_SYNC: 91
CRTC_HEND_SYNC: 3
 
(other values will also change when you fix 'clock', 'ht' and friends).
 
See if you can solve that problem and report back.  If you're still not getting a usable picture, send another set of values and I'll look for other problems.
 
Regards,
 
Mark
 
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to