Code:
/*
*B0-CP
*B1-LOAD
*B2-FRAME
*
*C0-D0
*C1-D1
*C2-D2
*C3-D3
*
*Mega8 @ 16MHz
*/
#define CP 0
#define LOAD 1
#define FRAME 2
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
//8x12 Schrift
//http://www.mikrocontroller.net/topic/54860
//Danke Benedikt!
const unsigned char schrift[12][256] PROGMEM ={
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0C,0x30,0x00,0xC0,0x38,0x00,0x30,0x00,0xC0,0x00,0x10,0x60,0x00,0x78,0x0C,0x00,0x00,0x30,0x00,0xC0,0x30,0xC0,0x00,0x00,0xCC,0x00,0x3C,0x00,0x00,0x0E,0x0C,0x0C,0x0C,0x0C,0x00,0x76,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x24,0x55,0x6D,0x18,0x18,0x0C,0x78,0x60,0x00,0x66,0x66,0x00,0x66,0x00,0xCC,0x00,0x18,0x18,0x00,0x18,0x00,0x18,0x00,0x76,0x66,0x00,0x66,0x00,0x66,0x00,0x66,0x00,0xCC,0x00,0x78,0x00,0x60,0x00,0x18,0x78,0x00,0x18,0x00,0xFF,0x00,0x00,0x60,0xFF,0x18,0x00,0x78,0x60,0x00,0x76,0x00,0x00,0x00,0x18,0x78,0x60,0x06,0x18,0x00,0x0C,0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
{0x00,0x7E,0x7E,0x00,0x10,0x18,0x18,0x00,0x00,0x00,0x00,0x3E,0x3C,0x00,0x7F,0x00,0x80,0x02,0x18,0x66,0x7F,0x7E,0x00,0x18,0x18,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x66,0x6C,0x30,0x00,0x70,0x30,0x0C,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x7C,0x10,0x78,0x78,0x0C,0xFC,0x38,0xFE,0x78,0x78,0x00,0x00,0x0C,0x00,0x60,0x78,0x7C,0x30,0xFC,0x3C,0xF8,0xFE,0xFE,0x3C,0xCC,0x78,0x1E,0xE6,0xF0,0xC6,0xC6,0x38,0xFC,0x38,0xFC,0x78,0xFC,0xCC,0xCC,0xC6,0xCC,0xCC,0xFE,0x3C,0x00,0x3C,0x38,0x00,0x30,0x00,0xE0,0x00,0x1C,0x00,0x38,0x00,0xE0,0x18,0x0C,0xE0,0x78,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x18,0xE0,0x73,0x00,0x78,0xCC,0x18,0x78,0xCC,0x60,0x6C,0x00,0x78,0xCC,0x60,0x6C,0x38,0x30,0xCC,0xCC,0x18,0x00,0x3E,0x78,0xCC,0x60,0x78,0x60,0x66,0xCC,0x00,0x00,0x66,0x3A,0x00,0x1B,0x18,0x18,0x18,0x18,0x76,0xDC,0x78,0x78,0x30,0x38,0x00,0x62,0x63,0x30,0x00,0x00,0x92,0xAA,0xDB,0x18,0x18,0x18,0xCC,0x30,0x38,0x66,0x66,0x00,0x66,0x30,0xCC,0x00,0x18,0x18,0x00,0x18,0x00,0x18,0x76,0xDC,0x66,0x00,0x66,0x00,0x66,0x00,0x66,0x00,0x30,0xF8,0xCC,0xCC,0x30,0xF0,0x30,0xCC,0xCC,0x18,0x00,0xFF,0x00,0x18,0x30,0xFF,0x30,0x78,0xCC,0x30,0x76,0xDC,0x00,0x00,0xF0,0x30,0xCC,0x30,0x0C,0x30,0xFC,0x18,0x00,0x00,0x00,0x33,0x7F,0x7E,0x00,0x00,0x3C,0xCC,0x00,0x30,0x78,0x78,0x00,0x00},
{0x00,0xC3,0xFF,0x44,0x38,0x3C,0x3C,0x00,0x00,0x00,0x00,0x0E,0x66,0x00,0x63,0x18,0xC0,0x06,0x3C,0x66,0xDB,0x63,0x00,0x3C,0x3C,0x18,0x00,0x00,0x00,0x00,0x10,0xFE,0x00,0x78,0x66,0x6C,0x7C,0x00,0xD8,0x30,0x18,0x30,0x00,0x00,0x00,0x00,0x00,0x02,0xC6,0x30,0xCC,0xCC,0x1C,0xC0,0x60,0xC6,0xCC,0xCC,0x00,0x00,0x18,0x00,0x30,0xCC,0xC6,0x78,0x66,0x66,0x6C,0x62,0x66,0x66,0xCC,0x30,0x0C,0x66,0x60,0xEE,0xC6,0x6C,0x66,0x6C,0x66,0xCC,0xB4,0xCC,0xCC,0xC6,0xCC,0xCC,0xCE,0x30,0x80,0x0C,0x6C,0x00,0x18,0x00,0x60,0x00,0x0C,0x00,0x6C,0x00,0x60,0x18,0x0C,0x60,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x18,0x30,0xDA,0x00,0xCC,0xCC,0x30,0xCC,0xCC,0x30,0x6C,0x00,0xCC,0xCC,0x30,0x6C,0x6C,0x18,0x00,0xCC,0x00,0x00,0x78,0xCC,0xCC,0x30,0xCC,0x30,0x66,0x00,0xCC,0x00,0x60,0x6C,0x00,0x18,0x30,0x30,0x30,0x30,0xDC,0x00,0xCC,0xCC,0x30,0x44,0x00,0xE6,0xE6,0x30,0x00,0x00,0x49,0x55,0xB6,0x18,0x18,0x00,0x00,0x00,0x44,0x66,0x66,0x00,0x66,0x30,0xCC,0x00,0x18,0x18,0x00,0x18,0x00,0x18,0xDC,0x00,0x66,0x00,0x66,0x00,0x66,0x00,0x66,0x00,0xD8,0x6C,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x18,0x00,0xFF,0x00,0x18,0x00,0xFF,0x00,0xCC,0x00,0x00,0xDC,0x00,0x00,0xE0,0x60,0x00,0x00,0x00,0x18,0x00,0x00,0x30,0x00,0x30,0x00,0x66,0xDB,0x63,0x30,0x00,0x66,0x00,0x00,0x70,0x0C,0x0C,0x00,0x00},
{0x00,0x81,0xFF,0xEE,0x7C,0x3C,0x7E,0x00,0x00,0x00,0x00,0x3A,0x66,0x00,0x7F,0xDB,0xE0,0x0E,0x7E,0x66,0xDB,0x30,0x00,0x7E,0x7E,0x18,0x18,0x30,0x00,0x24,0x10,0xFE,0x00,0x78,0x66,0xFE,0xC0,0xC4,0xD8,0x30,0x30,0x18,0x66,0x18,0x00,0x00,0x00,0x06,0xCE,0xF0,0xCC,0x0C,0x3C,0xC0,0xC0,0xC6,0xCC,0xCC,0x38,0x38,0x30,0x00,0x18,0x0C,0xC6,0xCC,0x66,0xC6,0x66,0x60,0x62,0xC6,0xCC,0x30,0x0C,0x6C,0x60,0xFE,0xE6,0xC6,0x66,0xC6,0x66,0xCC,0x30,0xCC,0xCC,0xC6,0xCC,0xCC,0x98,0x30,0xC0,0x0C,0xC6,0x00,0x00,0x00,0x60,0x00,0x0C,0x00,0x60,0x00,0x60,0x00,0x00,0x60,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x18,0x30,0xCE,0x10,0xCC,0x00,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x78,0xFC,0x00,0xD8,0x00,0x00,0x00,0x00,0x00,0x00,0x78,0xCC,0x00,0x60,0xCE,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0xC6,0xCC,0xCC,0x00,0xBA,0x00,0x6C,0x6C,0x00,0x00,0x00,0x24,0xAA,0x6D,0x18,0x18,0x30,0x30,0x30,0xBA,0x66,0x66,0x00,0x66,0x78,0xCC,0x00,0x18,0x18,0x00,0x18,0x00,0x18,0x00,0x30,0x66,0x00,0x66,0x00,0x66,0x00,0x66,0x00,0x0C,0x66,0xFC,0xFC,0xFC,0x30,0x78,0x78,0x78,0x18,0x00,0xFF,0x00,0x18,0x78,0xFF,0x78,0xCC,0x78,0x78,0x00,0x78,0x00,0x60,0x7C,0xCC,0xCC,0xCC,0x00,0xCC,0x00,0x00,0x00,0x30,0x00,0x3C,0xDB,0x30,0x30,0x00,0x66,0x00,0x00,0x30,0x38,0x18,0xFC,0x00},
{0x00,0xA5,0xDB,0xFE,0xFE,0xFF,0xFF,0x00,0x00,0x00,0x00,0x72,0x66,0x00,0x63,0x7E,0xF8,0x3E,0x18,0x66,0xDB,0x3C,0x00,0x18,0x18,0x18,0x0C,0x60,0xC0,0x66,0x38,0x7C,0x00,0x78,0x24,0x6C,0xC0,0xCC,0x70,0x60,0x60,0x0C,0x3C,0x18,0x00,0x00,0x00,0x0C,0xDE,0x30,0x0C,0x0C,0x6C,0xC0,0xC0,0x06,0xCC,0xCC,0x38,0x38,0x60,0x7E,0x0C,0x18,0xDE,0xCC,0x66,0xC0,0x66,0x64,0x64,0xC0,0xCC,0x30,0x0C,0x6C,0x60,0xFE,0xF6,0xC6,0x66,0xC6,0x66,0xC0,0x30,0xCC,0xCC,0xC6,0x78,0xCC,0x18,0x30,0x60,0x0C,0x00,0x00,0x00,0x78,0x7C,0x78,0x7C,0x78,0x60,0x76,0x6C,0x78,0x3C,0x66,0x18,0xFC,0xF8,0x78,0xDC,0x76,0xEC,0x78,0xFC,0xCC,0xCC,0xC6,0xC6,0x66,0xFC,0x60,0x18,0x18,0x00,0x38,0xC0,0xCC,0x78,0x78,0x78,0x78,0xF8,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0xC4,0xFE,0xD8,0x78,0x78,0x78,0xCC,0xCC,0x66,0xCC,0xCC,0x78,0x60,0xD6,0x00,0x7E,0x78,0x78,0x78,0xCC,0xF8,0xE6,0x7E,0x78,0x30,0xAA,0x00,0x78,0x78,0x30,0x33,0xCC,0x92,0x55,0xDB,0x18,0x18,0x78,0x78,0x78,0xA2,0xE6,0x66,0xFE,0xE6,0xCC,0x78,0x00,0x18,0x18,0x00,0x18,0x00,0x18,0x78,0x78,0x67,0x7F,0xE7,0xFF,0x67,0xFF,0xE7,0x00,0x06,0x66,0xC4,0xC4,0xC4,0x30,0x30,0x30,0x30,0x18,0x00,0xFF,0x00,0x18,0x30,0xFF,0xCC,0xD8,0xCC,0xCC,0x78,0xCC,0x66,0x7C,0x66,0xCC,0xCC,0xCC,0x66,0xCC,0x00,0x00,0x00,0xFC,0x00,0xF8,0xDB,0x3C,0x00,0x00,0x66,0x00,0x00,0x30,0x0C,0x30,0xFC,0x00},
{0x00,0x81,0xFF,0xFE,0xFE,0xE7,0xFF,0x00,0x00,0x00,0x00,0xF8,0x3C,0x00,0x63,0xE7,0xFE,0xFE,0x18,0x66,0x7B,0x66,0x00,0x18,0x18,0x18,0xFE,0xFE,0xC0,0xFF,0x38,0x7C,0x00,0x30,0x00,0x6C,0x78,0x18,0xFA,0x00,0x60,0x0C,0xFF,0x7E,0x00,0xFE,0x00,0x18,0xD6,0x30,0x18,0x38,0xCC,0xF8,0xF8,0x0C,0x78,0x7C,0x00,0x00,0xC0,0x00,0x06,0x30,0xDE,0xCC,0x7C,0xC0,0x66,0x7C,0x7C,0xC0,0xFC,0x30,0x0C,0x78,0x60,0xD6,0xFE,0xC6,0x7C,0xC6,0x7C,0x70,0x30,0xCC,0xCC,0xD6,0x30,0x78,0x30,0x30,0x30,0x0C,0x00,0x00,0x00,0x0C,0x66,0xCC,0xCC,0xCC,0xF8,0xCC,0x76,0x18,0x0C,0x6C,0x18,0xD6,0xCC,0xCC,0x66,0xCC,0x6E,0xCC,0x60,0xCC,0xCC,0xC6,0x6C,0x66,0x8C,0xC0,0x00,0x0C,0x00,0x6C,0xC0,0xCC,0xCC,0x0C,0x0C,0x0C,0x0C,0xCC,0xCC,0xCC,0xCC,0x18,0x18,0x18,0xCC,0xCC,0xC0,0x1B,0xFE,0xCC,0xCC,0xCC,0xCC,0xCC,0x66,0xCC,0xCC,0xCC,0xFC,0xD6,0xC6,0x18,0x0C,0x18,0xCC,0xCC,0xCC,0xF6,0x00,0x00,0x60,0xBA,0xFC,0x30,0x37,0x30,0x66,0x66,0x49,0xAA,0xB6,0x18,0xF8,0xCC,0xCC,0xCC,0xA2,0x06,0x66,0x06,0x06,0xC0,0xFC,0xF8,0x1F,0xFF,0xFF,0x1F,0xFF,0xFF,0x0C,0xCC,0x60,0x60,0x00,0x00,0x60,0x00,0x00,0xC6,0x7E,0xF6,0xC0,0xC0,0xC0,0xFC,0x30,0x30,0x30,0xF8,0x1F,0xFF,0x00,0x00,0x30,0xFF,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0x66,0x66,0x66,0xCC,0xCC,0xCC,0x66,0xCC,0x00,0x00,0xFC,0x30,0xF8,0x37,0x7B,0x66,0xFC,0x00,0x3C,0x00,0x18,0x78,0x78,0x7C,0xFC,0x00},
{0x00,0xBD,0xC3,0xFE,0x7C,0xE7,0x7E,0x00,0x00,0x00,0x00,0xCC,0x18,0x00,0x63,0xE7,0xF8,0x3E,0x18,0x00,0x1B,0x66,0x00,0x18,0x18,0x18,0x0C,0x60,0xC0,0x66,0x7C,0x38,0x00,0x30,0x00,0x6C,0x0C,0x30,0xDE,0x00,0x60,0x0C,0x3C,0x18,0x00,0x00,0x00,0x30,0xF6,0x30,0x30,0x0C,0xFE,0x0C,0xCC,0x18,0xCC,0x18,0x00,0x00,0x60,0x7E,0x0C,0x30,0xDE,0xFC,0x66,0xC0,0x66,0x64,0x64,0xCE,0xCC,0x30,0xCC,0x6C,0x62,0xC6,0xDE,0xC6,0x60,0xCE,0x6C,0x18,0x30,0xCC,0xCC,0xD6,0x78,0x30,0x60,0x30,0x18,0x0C,0x00,0x00,0x00,0x7C,0x66,0xC0,0xCC,0xFC,0x60,0xCC,0x66,0x18,0x0C,0x78,0x18,0xD6,0xCC,0xCC,0x66,0xCC,0x76,0x60,0x60,0xCC,0xCC,0xD6,0x38,0x66,0x18,0x60,0x18,0x18,0x00,0xC6,0xC0,0xCC,0xFC,0x7C,0x7C,0x7C,0x7C,0xC0,0xFC,0xFC,0xFC,0x18,0x18,0x18,0xCC,0xCC,0xF8,0x7F,0xD8,0xCC,0xCC,0xCC,0xCC,0xCC,0x66,0xCC,0xCC,0xDC,0x60,0xD6,0x6C,0x18,0x7C,0x18,0xCC,0xCC,0xCC,0xDE,0xFE,0xFE,0xC0,0xB2,0x0C,0x6E,0x6F,0x78,0xCC,0x33,0x24,0x55,0x6D,0x18,0x18,0xCC,0xCC,0xCC,0xA2,0x06,0x66,0x06,0x06,0xC0,0x30,0x18,0x00,0x00,0x18,0x18,0x00,0x18,0x7C,0xCC,0x60,0x60,0x00,0x00,0x60,0x00,0x00,0x7C,0xC6,0x66,0xF8,0xF8,0xF8,0x00,0x30,0x30,0x30,0x00,0x18,0xFF,0xFF,0x18,0x30,0x00,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0x66,0x66,0x66,0xCC,0xCC,0xCC,0x66,0x78,0x00,0x00,0x00,0x30,0x00,0x6F,0x1B,0x66,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0x00},
{0x00,0x99,0xE7,0x7C,0x38,0x18,0x18,0x00,0x00,0x00,0x00,0xCC,0x7E,0x00,0x67,0x7E,0xE0,0x0E,0x7E,0x00,0x1B,0x3C,0xFE,0x7E,0x18,0x7E,0x18,0x30,0xFE,0x24,0x7C,0x38,0x00,0x00,0x00,0xFE,0x0C,0x60,0xCC,0x00,0x30,0x18,0x66,0x18,0x00,0x00,0x00,0x60,0xE6,0x30,0x60,0x0C,0x0C,0x0C,0xCC,0x30,0xCC,0x18,0x38,0x38,0x30,0x00,0x18,0x00,0xC0,0xCC,0x66,0xC6,0x66,0x60,0x60,0xC6,0xCC,0x30,0xCC,0x6C,0x66,0xC6,0xCE,0xC6,0x60,0xDE,0x66,0xCC,0x30,0xCC,0xCC,0x6C,0xCC,0x30,0x62,0x30,0x0C,0x0C,0x00,0x00,0x00,0xCC,0x66,0xC0,0xCC,0xC0,0x60,0xCC,0x66,0x18,0x0C,0x6C,0x18,0xD6,0xCC,0xCC,0x66,0xCC,0x60,0x18,0x60,0xCC,0xCC,0xD6,0x38,0x66,0x60,0x30,0x18,0x30,0x00,0xC6,0xCC,0xCC,0xC0,0xCC,0xCC,0xCC,0xCC,0xC0,0xC0,0xC0,0xC0,0x18,0x18,0x18,0xFC,0xFC,0xC0,0xD8,0xD8,0xCC,0xCC,0xCC,0xCC,0xCC,0x66,0xCC,0xCC,0xEC,0x60,0xE6,0x38,0x18,0xCC,0x18,0xCC,0xCC,0xCC,0xCE,0x00,0x00,0xC0,0xAA,0x0C,0xC3,0xDB,0x78,0xCC,0x33,0x92,0xAA,0xDB,0x18,0x18,0xFC,0xFC,0xFC,0xBA,0xE6,0x66,0xE6,0xFE,0xCC,0xFC,0x18,0x00,0x00,0x18,0x18,0x00,0x18,0xCC,0xFC,0x7F,0x67,0xFF,0xE7,0x67,0xFF,0xE7,0x6C,0xC6,0x66,0xC0,0xC0,0xC0,0x00,0x30,0x30,0x30,0x00,0x18,0xFF,0xFF,0x18,0x30,0x00,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0x66,0x7C,0x7C,0xCC,0xCC,0xCC,0x66,0x30,0x00,0x00,0x00,0x00,0x00,0xDB,0x1B,0x3C,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0x00},
{0x00,0xC3,0xFF,0x38,0x10,0x18,0x18,0x00,0x00,0x00,0x00,0xCC,0x18,0x00,0xE7,0xDB,0xC0,0x06,0x3C,0x66,0x1B,0x0C,0xFE,0x3C,0x18,0x3C,0x00,0x00,0x00,0x00,0xFE,0x10,0x00,0x30,0x00,0x6C,0xF8,0xCC,0xDC,0x00,0x18,0x30,0x00,0x00,0x38,0x00,0x38,0xC0,0xC6,0x30,0xCC,0xCC,0x0C,0xCC,0xCC,0x30,0xCC,0x30,0x38,0x38,0x18,0x00,0x30,0x30,0xC0,0xCC,0x66,0x66,0x6C,0x62,0x60,0x66,0xCC,0x30,0xCC,0x66,0x66,0xC6,0xC6,0x6C,0x60,0x7C,0x66,0xCC,0x30,0xCC,0x78,0x6C,0xCC,0x30,0xC6,0x30,0x06,0x0C,0x00,0x00,0x00,0xCC,0x66,0xCC,0xCC,0xCC,0x60,0x7C,0x66,0x18,0x0C,0x66,0x18,0xD6,0xCC,0xCC,0x66,0xCC,0x60,0xCC,0x6C,0xCC,0x78,0x6C,0x6C,0x3C,0xC4,0x30,0x18,0x30,0x00,0xFE,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xC0,0xC0,0xC0,0x18,0x18,0x18,0xCC,0xCC,0xC4,0xD8,0xD8,0xCC,0xCC,0xCC,0xCC,0xCC,0x3C,0xCC,0xCC,0xCC,0xC0,0x6C,0x6C,0xD8,0xCC,0x18,0xCC,0xCC,0xCC,0xC6,0x00,0x00,0xCC,0x44,0x0C,0x86,0xB3,0x78,0x66,0x66,0x49,0x55,0xB6,0x18,0x18,0xCC,0xCC,0xCC,0x44,0x66,0x66,0x66,0x00,0x78,0x30,0x18,0x00,0x00,0x18,0x18,0x00,0x18,0xCC,0xCC,0x00,0x66,0x00,0x66,0x66,0x00,0x66,0x7C,0xC6,0x6C,0xC4,0xC4,0xC4,0x00,0x30,0x30,0x30,0x00,0x18,0xFF,0xFF,0x18,0x30,0x00,0xCC,0xF8,0xCC,0xCC,0xCC,0xCC,0x66,0x60,0x60,0xCC,0xCC,0xCC,0x3C,0x30,0x00,0x00,0x00,0xFC,0xF8,0xB3,0x1B,0x0C,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0x00},
{0x00,0x7E,0x7E,0x10,0x00,0x7E,0x7E,0x00,0x00,0x00,0x00,0x78,0x18,0x00,0xE6,0x18,0x80,0x02,0x18,0x66,0x1B,0xC6,0xFE,0x18,0x18,0x18,0x00,0x00,0x00,0x00,0xFE,0x10,0x00,0x30,0x00,0x6C,0x30,0x8C,0x76,0x00,0x0C,0x60,0x00,0x00,0x38,0x00,0x38,0x80,0x7C,0xFC,0xFC,0x78,0x1E,0x78,0x78,0x30,0x78,0x70,0x00,0x18,0x0C,0x00,0x60,0x30,0x7C,0xCC,0xFC,0x3C,0xF8,0xFE,0xF0,0x3E,0xCC,0x78,0x78,0xE6,0xFE,0xC6,0xC6,0x38,0xF0,0x0C,0xE6,0x78,0x78,0x78,0x30,0x6C,0xCC,0x78,0xFE,0x3C,0x02,0x3C,0x00,0x00,0x00,0x76,0xDC,0x78,0x76,0x78,0xF0,0x0C,0xE6,0x7E,0xCC,0xE6,0x7E,0xC6,0xCC,0x78,0x7C,0x7C,0xF0,0x78,0x38,0x76,0x30,0x6C,0xC6,0x0C,0xFC,0x1C,0x18,0xE0,0x00,0x00,0x78,0x76,0x78,0x76,0x76,0x76,0x76,0x78,0x7C,0x7C,0x7C,0x7E,0x7E,0x7E,0xCC,0xCC,0xFC,0xEF,0xDE,0x78,0x78,0x78,0x76,0x76,0x0C,0x78,0x78,0x78,0xFE,0xB8,0xC6,0x70,0x76,0x7E,0x78,0x76,0xCC,0xC6,0x00,0x00,0x78,0x38,0x00,0x0C,0x3F,0x30,0x33,0xCC,0x24,0xAA,0x6D,0x18,0x18,0xCC,0xCC,0xCC,0x38,0x66,0x66,0x66,0x00,0x30,0x30,0x18,0x00,0x00,0x18,0x18,0x00,0x18,0x76,0xCC,0x00,0x66,0x00,0x66,0x66,0x00,0x66,0xC6,0x7C,0xF8,0xFC,0xFC,0xFC,0x00,0x78,0x78,0x78,0x00,0x18,0xFF,0xFF,0x18,0x78,0x00,0x78,0xC0,0x78,0x78,0x78,0x78,0x7B,0xF0,0xF0,0x78,0x78,0x78,0x0C,0x78,0x00,0x00,0x00,0x00,0x00,0x3F,0x1B,0xC6,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x7E,0x00,0x7E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xCC,0x00,0x00,0xCC,0x00,0x00,0x00,0x00,0x00,0x60,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x03,0x00,0x00,0x00,0x92,0x55,0xDB,0x18,0x18,0x00,0x00,0x00,0x00,0x66,0x66,0x66,0x00,0x30,0x00,0x18,0x00,0x00,0x18,0x18,0x00,0x18,0x00,0x00,0x00,0x66,0x00,0x66,0x66,0x00,0x66,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0xFF,0xFF,0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x7E,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x78,0x00,0x00,0x78,0x00,0x00,0x00,0x00,0x00,0xF0,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x49,0xAA,0xB6,0x18,0x18,0x00,0x00,0x00,0x00,0x66,0x66,0x66,0x00,0x00,0x00,0x18,0x00,0x00,0x18,0x18,0x00,0x18,0x00,0x00,0x00,0x66,0x00,0x66,0x66,0x00,0x66,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}
};
static inline unsigned char swap (unsigned char x)
{
asm volatile ("swap %0" : "=r" (x) : "0" (x));
return x;
}
int main(void)
{
unsigned char text[20][40];
unsigned char zeichen=0;
unsigned char temp;
for (unsigned char y=0;y<20;y++)
{
for (unsigned char x=0;x<40;x++)
text[y][x]=zeichen++;
}
DDRC=0x0F;
DDRB=0x07;
PORTB=(1<<FRAME)|(1<<LOAD);
while(1)
{
PORTB=(1<<FRAME)|(1<<CP);
for(unsigned char i =0; i<20;i++)
{
for(unsigned char j =0; j<12;j++)
{
for( unsigned char k =0; k<40;k++)
{
temp=pgm_read_byte(&schrift[j][ text[i][k] ]);
PORTB=(1<<CP);
PORTC=swap(temp); //ersten 4 Pixel
PORTB=0;
PORTB=(1<<CP); //zweiten 4 Pixel
PORTC=temp;
PORTB=0;
}
PORTB=(1<<LOAD);
}
}
PORTB=(1<<LOAD)|(1<<FRAME);
}
}
Lesezeichen