Shop OBEX P1 Docs P2 Docs Learn Events
VGA colour byte H&V sync bits — Parallax Forums

VGA colour byte H&V sync bits

PatMPatM Posts: 72
edited 2007-07-09 08:14 in Propeller 1
The colour white in VGA would be 11_11_11_HV

The higher six bits are colour information which is pretty easy to figure out. The horizonal and vertical sync bits are a bit more mysterious. I've tried setting them to both 1 and 0 and there seems to be no difference in the display. Do these actually have a function?

·

Comments

  • RinksCustomsRinksCustoms Posts: 531
    edited 2007-07-09 05:45
    I thought the sync bits were read-only, for the vga driver

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    E3 = Thought

    http://folding.stanford.edu/·- Donating some CPU/GPU downtime just might lead to a cure for cancer! The average PC while browsing the internet typically uses less than 30% of it's potential, why not donate a portion of the rest for cancer resaerch?
  • Mike GreenMike Green Posts: 23,101
    edited 2007-07-09 06:57
    The sync lines are outputs from the Propeller to the display and are necessary to communicate the timing of the display information.
  • deSilvadeSilva Posts: 2,967
    edited 2007-07-09 08:14
    To add a little bit more background:
    The Propeller - in combination with a piece of software called VGA-driver which you are welcome to study - outputs within a not so complex timing scheme 5 signals to VGA monitor:

    R,G,B,H,V

    H and V are strictly digital and in need for the synchronization of lines and frames
    R,G, and B are analogue colour data

    The Prop however can output two bits for each color channel only: how this is transfered to the monitor is left to the board design; most boards "mix" those two pins by two resistors (R and 2R) - some hypocrats call this D/A converter...

    So the 8 bits you describe become the 5 lines to the monitor.

    Equal values of the color channels yield sorts of gray; when you used exactly the same resistor values this coresponds to 11_11_11, 01_01_01, 10_10_10, 00_00_00

    But you can of course use a different "DAC" e.g. just using 1 bit for each channel, or use all 6 bits for a 64 level monochromious signal.

    Post Edited (deSilva) : 7/11/2007 6:11:23 PM GMT
Sign In or Register to comment.