How to add a VGA connector to the P2 Eval Board

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
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.
I/O SIGNAL VGA PIN P0 HSYNC 13 P1 BLUE 3 P2 GREEN 2 P3 RED 1 P4 VSYNCH 14 GND 5,6,7,8,10
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.
0001c 007 0001c200 _BAUD long baud_rate 00020 008 03020100 _VGACFG long vgapins ' VGA CONFIG ' 00024 009 00000004 long vspin 00028 00a 000088d0 _VGAINIT long @vgainit ' VGA code ' 0002c 00b 00000607 _KBCFG long kbpins
So to change the VGA pins say to P8 we would do this ( with comments ):
--- R G B H V &11.10.09.08 $2O ! 12 $24 ! MAKEBOOT
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
_XTALFREQ = 20_000_000 ' crystal frequency _XDIV = 10 ' crystal divider to give 1MHz _XMUL = 125 ' crystal / div * mul _XDIVP = 1 ' crystal / div * mul /divp to give _CLKFREQ (1,2,4..30) _XOSC = %10 'OSC ' %00=OFF, %01=OSC, %10=15pF, %11=30pF _XSEL = %11 'XI+PLL ' %00=rcfast(20+MHz), %01=rcslow(~20KHz), %10=XI(5ms), %11=XI+PLL(10ms) _XPPPP = ((_XDIVP>>1) + 15) & $F ' 1->15, 2->0, 4->1, 6->2...30->14 _CLOCKFREQ = _XTALFREQ / _XDIV * _XMUL / _XDIVP ' internal clock frequency _SETFREQ = 1<<24 + (_XDIV-1)<<18 + (_XMUL-1)<<8 + _XPPPP<<4 + _XOSC<<2 ' %0000_000e_dddddd_mmmmmmmmmm_pppp_cc_00 ' setup oscillator _ENAFREQ = _SETFREQ + _XSEL ' %0000_000e_dddddd_mmmmmmmmmm_pppp_cc_ss ' enable oscillator
How are the values of _XDIV, _XMUL and _XDIVP determined? Does _CLOCKFREQ/_XMUL have to be within a certain range?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