Shop OBEX P1 Docs P2 Docs Learn Events
CSYNC with VGA driver — Parallax Forums

CSYNC with VGA driver

Ken PetersonKen Peterson Posts: 806
edited 2007-10-12 18:13 in Propeller 1
I'm using the VGA driver to provide an analog RGB signal with composite sync.· I have seen in other threads that you can combine HSYNC AND VSYNC using an XOR gate or resistor and diode (wired-OR).·

I found that by changing two lines in the VGA driver, I can have VSYNC and HSYNC going out on the VSYNC pin, effectively doing the XOR in software.

My question is this:· I want to re-claim the HSYNC pin to use it for something else.· If I set the PINS field in VCFG to 11111101, I can do this, right?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


The more I know, the more I know I don't know.· Is this what they call Wisdom?

Comments

  • deSilvadeSilva Posts: 2,967
    edited 2007-10-12 17:34
    It most likely will.. which means, I have not yet tried it, but it is consistent with my understanding of how the Video Logic works smile.gif

    Another possibility would be to OVERRIDE the hsync, forcing the corresponding bit in the 8 bit video-out to zero and setting it when needed by a different OUTA instruction or counter. However this would not allow it to be configured as an input pin...
  • Ken PetersonKen Peterson Posts: 806
    edited 2007-10-12 18:13
    I suppose I can do some experimentation to determine if I can use that pin or not.

    I just changed the VGA object so that instead of toggling the HSYNC pin when doing the horizontal sync, it toggles the VSYNC pin instead. Checked the SYNC on the scope and it gives me just what I wanted. It works because it uses XOR to do the toggling.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    The more I know, the more I know I don't know.· Is this what they call Wisdom?
Sign In or Register to comment.