How to add a VGA connector to the P2 Eval Board
Dave Hein
Posts: 6,347
in Propeller 2
I've had my P2 board for a couple of weeks now, and I really want to set it up to do VGA. I've seen some of the add-on boards that are being developed, but I think all I really need is a connector for the board, VGA connector, perf board and 6 wires. Has anybody done this? Where's a good place to get the connectors?
Comments
There is this breakout board from Amazon.
You will also need an IDC cable and wire to wire it up.
Below is a picture of the schematic for the "Parallax VGA PS/2 Adapter Board Kit".
Are you using resistors R1 to R8, as shown on the schematic when you attach it to the P2?
Looks like I need to connect 10 wires to the P2-Eval Board, is that correct?
What specific pins are you connecting to on the P2-Eval Board?
P0 --> HSYNC = 13
P1 --> BLUE = 3
P2 --> GREEN = 2
P3 --> RED = 1
P4 --> VSYNCH = 14
GNDs --> 5,6,7,8,10
What about "5V", does it get connected from the "VGA Connector" to the "P2-Eval Board"?
I found a diagram showing the pin number of the VGA connector on Wikipedia. I'm sure there are many such diagrams on the internet. So I think I have everything I need to make the cable. I found a couple of 6-pin single row headers in one of my junk boxes. (I have many junk boxes, and it happen to be in the first one I looked at.) So if I can't find a dual-row 12-pin header at Fry's I just glue the two single row headers together and go with that.
Resistor should work, to be safer.
But, the P1 Demo board just came straight with no resistor...
I didn't need it for my monitor. I would say typically you won't need it. Based on my research for adding a VGA monitor to my CoCo 3, 5V is needed by some older monitors.
Well, I know what I'm doing tonight Awesome stuff Peter!
I am a fan of FORTH for many years. I need to know which pin on the P2-ES is the base pin for VGA. Or is there a word to change the base pin?
BTW, I have read your documentation, just haven't had any comments to share.
The config block in low memory can be edited and saved back on _BOOT_P2.BIX either as a complete MAKEBOOT or just write the first sector.
So to change the VGA pins say to P8 we would do this ( with comments ): Next time you reboot it will use those pins instead (hit reset or type REBOOT)
Rayman, can you try to find those VGA examples? I tried some of the code you posted, but I couldn't get it to work. What changes are needed to Chip's VGA examples to get them to work on the eval board?
dgately
Thanks to everybody for their suggestions on how to connect to a VGA monitor. Hopefully, this thread will help others get connected as well.
I think we've all got fairly 'proto' vga wiring setups, looking forward to those nicer breakouts from Parallax soon
EDIT: So I see in the P2 documentation that the VCO frequency should be between 100 MHz and 400 MHz. However, the document also says between 100 MHz and 200 MHz. The VCO frequency is _XTALFREQ/_XDIV*_XMUL, so in the code above the VCO frequency is 250 MHz.
Jim