VGA monitor from C program

Discussion in 'Embedded Systems and Microcontrollers' started by bivosky, Dec 2, 2014.

  1. bivosky

    Thread Starter New Member

    Dec 2, 2014
    1
    0
    i can't understand how i can use the vga monitor like lcd or glcd. and with C language.
     
  2. MrChips

    Moderator

    Oct 2, 2009
    12,440
    3,361
    Your post was moved from here.

    You really need to start a new thread.
    Also your question is not clear. Please explain what you are attempting to do.
     
  3. ISB123

    Well-Known Member

    May 21, 2014
    1,239
    527
    He wants' to connect microcontroller with a PC VGA interfaced monitor.Normally you would use serial for LCD and LED screens .I could be wrong but I think that you cant do that since monitors require graphics card,maybe its possible but I'm not sure.But if its possible its probably not direct and would require external components.
     
  4. MrChips

    Moderator

    Oct 2, 2009
    12,440
    3,361
    If you want to drive a VGA monitor directly from a microcontroller it can be done as both RB and I have demonstrated. But you have to be able to jump through hoops and over hurdles in order to accomplish that feat.
     
  5. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,388
    497
  6. Papabravo

    Expert

    Feb 24, 2006
    10,140
    1,789
    Anything can be bit-banged if your processor is fast enough and you have earned your programming bona-fides.
     
    panic mode likes this.
  7. ISB123

    Well-Known Member

    May 21, 2014
    1,239
    527
    He could use average hobbyist microcontroller to render 100x100 pixels anything above that is too much for MCU.For full screen resolution you would need something with much bigger processing power.
     
  8. WBahn

    Moderator

    Mar 31, 2012
    17,743
    4,789
    That would depend on what else you are asking it to do. About 15 years ago PIC-Pong was done using a PIC16C71 that produced NTSC-like output (256 line non-interlaced) directly via bit-banging in addition to running the code to play Pong, including the necessary character generation for the text.
     
    ISB123 likes this.
  9. nigelwright7557

    Senior Member

    May 10, 2008
    487
    71
    You really need a video generator circuit.
    You put data in its memory and it displays it for you.
    I remember many years ago using a simple PC graphics card directly by poking data into its memory.
     
  10. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,388
    497
    http://tinyvga.com/avr-isa-vga
     
  11. MrChips

    Moderator

    Oct 2, 2009
    12,440
    3,361
    Did you see this? What the heck is that? Looks like a kludge for a crystal oscillator if you ask me.

    [​IMG]
     
  12. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,387
    1,605
    The Maximite is a PIC microcontroller project which gives a VGA output for a 480 x 432 color display directly no using video generator circuitry beyond a few resistors and a connector.

    I have not examined the source code to discover what high level language it is written in, but it certainly could be done in C/C++.
     
  13. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,388
    497
    Here is PIC doing CGA: http://tinyvga.com/pic-vga
     
Loading...