Shop OBEX P1 Docs P2 Docs Learn Events
Using P1 Development Board for VGA Driver with P2 Edge — Parallax Forums

Using P1 Development Board for VGA Driver with P2 Edge

Loaded "Demo.spin2" changed " _clkfreq = 160_000_000" and "PINBASE = 48", In "ansi.spin2" set "CELL_SIZE =2" and vt: "timing800x600" . Using P2 edge breadboard connected PINS 48-55 to P1 development board (using the VGA onboard connector) "R104,R103,R91,R102,R90,R101,R65,R100" in sequence (have used PI pins16 -23 in past and VGA worked) .
Compiled program to ram but the VGA screen did not work. I checked thescreen from laptop VGA port and it worked. The wires connecting the two boards are aproximately 5 inches (10 wires 8 pins 2 gnd are these two long ?). In the object tree the following objects are displayed demo-ansi-timing800x600-pifont(P1FONT.tnt)-vga-tile-driver.
I checked P48 - P55 just as an I/O seting hi/lo and okay.

If you have any sugestions to what I am doing wrong I would apreciate the help.

Regards and Thanks
Bob (WRD)

Comments

  • Cluso99Cluso99 Posts: 18,069
    Not sure what you’re actually trying to do?
    Is the P1 or P2 generating the VGA signals?
    What program is running on P1 and on P2?
  • Hello Cluso99
    1) P2 is generating the signal.
    The pins on the P2 edge motherboard are wired to the VGA connector on the P1 Development board.
    There is no P1 propeller . I was just mentioning I prevously tested the VGA connector with a P1 program
    and it was okay with monitor.
    2) Using P2 edge demo.spin2. (Prjogram and sub objectes from GITHUB Display Objects)
    demo-ansi-timing800x600-p1font-(P1FONT.tnt)-vga_tile_driver

    Thanks for looking into Issue
    Bob Drury (WRD)
  • Bob,
    The P2 does VGA using DACs now, so there isn't the 2 pins per color like on the P1. For P2 VGA you don't want the resistors, you just want the 3 DAC outputs to go to the RGB pins.
    If your base pin is 48, then the P2 I/Os are as follows:
    P48 -> HSync
    P49 -> Blue
    P50 -> Green
    P51 -> Red
    P52 -> VSync
  • Hell Roy Eltham
    The p1 development board can not be used then. I would then wire directly to the connector with no dropping resistors. I would still use the Demo.spin2 program?

    Thanks for Responding
    Bob Drury (WRD)
  • Cluso99Cluso99 Posts: 18,069
    Bob Drury wrote: »
    Hell Roy Eltham
    The p1 development board can not be used then. I would then wire directly to the connector with no dropping resistors. I would still use the Demo.spin2 program?

    Thanks for Responding
    Bob Drury (WRD)

    Yes. Wire straight to the VGA connector without resistors. 5 wires plus ground.
    There is a schematic that has VGA for my RetroBlade2 but just be aware I changed the location of the P2 Vsync pin to preceed the H,B,B,R pins and the software.
  • Thanks Cluso99
  • Seems like Quick Byte material.

    Thinking of Quick Bytes, dreaming of Quick Bytes, drowning in topics for Quick Bytes. . . .

    KEn Gracey
Sign In or Register to comment.