AVR composite PAL color bar generator

Technology
AVR composite PAL color bar generator

Color Bar Schematic
Pal Color Stripe
Here’s a fun AVR project, a 6 bar color pattern for a TV (source and schematic included). Serasidis writes –

I start this project 3 weeks ago, because I was wonder ” is that possible, some AVR MCU to create simple colour bars? ” At the beginning I believed that its easy. So, I ask some people who they knew more about PAL composite video signal. Some of them told me that is impossible to product color entire-in-software with AVR MCU (microcontroller) because there is not enough power (frequency).

The first idea they was to work with 8.867238 MHz crystal (2 times the color carrier). When I read more about PAL video composite signal creation, I saw that, if you want to product colors entire-in-software you must to create the color-carrier (4.43 MHz), to change 4 times the phase of color-carrier (one time for each color), to show 4 colours. Except that, you have to change the color-burst from 135 deg to 135+90= 225 deg.

So, the 8.86 MHz its not enough, that`s why I used 17.7 MHz crystal (4 times the color carrier). The only easy is to create the white and the black bar, the rest of this project, beleave me, its not easy.

The timing (clock cycles) of any instruction is very important for the phase-shift of the color-carrier and color-burst signals. Calculate the cycles before add or remove any instruction.

AVR composite PAL color bar generator – Link.

Related:

  • AVR vs PIC smackdown – Link.
  • AVR projects @ MAKE – Link.

6 thoughts on “AVR composite PAL color bar generator

  1. monopole says:

    Re:The “AVR vs PIC smackdown”
    In the comparison the author overlooks the excellent and free WinAVR IDE, as well as the excellent USB based JTAG cables. Just pointing that out:
    http://winavr.sourceforge.net/

  2. svofski says:

    Also, AT90S is kinda old, which is not surprising for a 2003 project. Hardly even possible to buy at all. Modern equivalent+ would be ATtiny.

  3. debagel says:

    I´d be interested whether anyone has generated a PAL Signal using Arduino or Wiring boards. Those boards contain AVR Chips as well but the programming language is probably too slow…

Comments are closed.

Discuss this article with the rest of the community on our Discord server!
Tagged

current: @adafruit - previous: MAKE, popular science, hackaday, engadget, fallon, braincraft ... howtoons, 2600...

View more articles by Phillip Torrone

ADVERTISEMENT

Maker Faire Bay Area 2023 - Mare Island, CA

Escape to an island of imagination + innovation as Maker Faire Bay Area returns for its 15th iteration!

Buy Tickets today! SAVE 15% and lock-in your preferred date(s).

FEEDBACK