white-collar daily wear
AVR VGA GENERATOR
AVR VGA GENERATOR

AVR VGA GENERATOR

This basic circuitry makes up the hardware for [Andrew’s] AVR-based VGA generator. He managed to get an ATmega1284 to output a stable VGA signal. any individual who’s looked into the VGA conventional will know that this is quite an accomplishment. That’s because VGA is all about timing, and that presented him with a problem nearly immediately.

The chip is indicated to run at a top speed of 20 MHz. [Andrew] did manage to get code written that implemented the horizontal and vertical sync at this speed. but there weren’t enough clock cycles left to deal with frame buffering. His option was to overclock the chip to 25 MHz. We assume he chose that because he had a crystal on hand, because we think it would have been much easier to use a 25.174 MHz crystal which is one of the speeds provided in the specification.

Red, green, and blue each get their own two-bit range selected by means of a set of resistors for a total of 64 colors. As you can see in the video after the break, the 128×96 pixel video is up and running. [Andrew] plans to enlarge the scope of the project from here to make it a lot more versatile than just showing conventional images. The code (written in assembly) is available at his GitHub repository.

Leave a Reply

Your email address will not be published. Required fields are marked *