下面是视频的链接,视频录的不是太理想。
http://www.tudou.com/programs/view/1VFhjbVSIgc/
最后了,附上我的资料……呵呵。不过程序没有实现头尾的对接,留到以后在写吧。
源程序:
/**************************************************************************** 程序名: POV 滚动字幕控制程序 编写人: 朱志强 编写时间: 2010年6月 硬件支持: STC89C52RC2 外部时钟24M
接口说明: 单片机P1、P2侧并行排列16个贴片LED(自P2.0开始(-)) ****************************************************************************** 说明:
字幕的修改方法,从左到右 ,从下到上,纵向下高位。 //----字模提取,下部在前-AB--------------- //---------排列方式------CD---顺序是CADB--
******************************************************************************/ #include <reg52.h>
/***************************************************************************** 字幕数组 ******************************************************************************/ unsigned char code zimu[] = {// (取码:从下到上从左到右,纵向8位下高位 ) //空格 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,0x02,0x08,0x02,0x04,0x02,0x02,0x02,0x01,0x02,0x00,0x82,0x00,0x42,0xFF,0xF2, 0x00,0x0E,0x00,0x42,0x00,0x82,0x01,0x02,0x03,0x02,0x06,0x03,0x00,0x02,0x00,0x00,
//经 0x24,0x20,0x66,0x30,0x25,0x2C,0x14,0xA3,0x14,0x60,0x54,0x30,0x40,0x82,0x42,0x82, 0x42,0x42,0x42,0x22,0x7E,0x12,0x42,0x1A,0x42,0x26,0x62,0x42,0x40,0xC0,0x00,0x00,
//意 0x40,0x10,0x30,0x10,0x00,0x12,0x77,0xD2,0x85,0x56,0x85,0x5A,0x8D,0x52,0x95,0x53, 0xB5,0x52,0x85,0x5A,0x85,0x56,0xE7,0xF3,0x00,0x52,0x10,0x18,0x60,0x10,0x00,0x00,
//间 0x00,0x00,0xFF,0xF8,0x00,0x01,0x00,0x02,0x3F,0xF6,0x11,0x10,0x11,0x12,0x11,0x12, 0x11,0x12,0x11,0x12,0x3F,0xFA,0x40,0x12,0x80,0x02,0x7F,0xFF,0x00,0x02,0x00,0x00,
//就 0x20,0x08,0x10,0x08,0x4B,0xE8,0x82,0x29,0x7E,0x2A,0x02,0x28,0x8B,0xEC,0x50,0x28, 0x20,0x20,0x1F,0xFF,0x00,0x20,0x3F,0xA2,0x40,0x24,0x40,0x30,0x70,0x20,0x00,0x00,
//会 0x20,0x08,0x10,0x08,0x4B,0xE8,0x82,0x29,0x7E,0x2A,0x02,0x28,0x8B,0xEC,0x50,0x28, 0x20,0x20,0x1F,0xFF,0x00,0x20,0x3F,0xA2,0x40,0x24,0x40,0x30,0x70,0x20,0x00,0x00,
//这 0x00,0x40,0x40,0x42,0x20,0x44,0x1F,0xCC,0x20,0x00,0x40,0x08,0x50,0x28,0x48,0x48, 0x44,0x89,0x43,0x0E,0x44,0xC8,0x58,0x38,0x40,0x0C,0x60,0x08,0x20,0x00,0x00,0x00,
//样 0x04,0x10,0x03,0x10,0x00,0xD0,0xFF,0xFF,0x04,0x50,0x04,0x98,0x04,0x49,0x04,0x4A, 0x04,0x4C,0xFF,0xF8,0x04,0x4C,0x04,0x6A,0x04,0x49,0x06,0x08,0x04,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,
//"突", 0x81,0x10,0x81,0x0C,0x41,0x04,0x41,0x24,0x21,0x14,0x11,0x0C,0x0D,0x05,0x03,0xE6, 0x0D,0x04,0x11,0x4C,0x21,0x94,0x21,0x34,0x41,0x04,0xC1,0x94,0x41,0x0C,0x00,0x00,
//"然", 0x00,0x80,0x90,0x40,0x68,0xB0,0x05,0x2F,0x02,0x48,0x61,0x88,0x08,0x78,0x04,0x20, 0x02,0x20,0x61,0xA0,0x00,0x7F,0x01,0xA0,0x26,0x24,0x4C,0x28,0xC4,0x20,0x00,0x00, //"好", 0x40,0x10,0x22,0x10,0x15,0xF0,0x08,0x1F,0x14,0x10,0x63,0xF0,0x00,0x80,0x00,0x82, 0x40,0x82,0x80,0x82,0x7F,0xE2,0x00,0x92,0x00,0x8A,0x00,0xC6,0x00,0x80,0x00,0x00,
//"想", 0x41,0x08,0x30,0x88,0x00,0x68,0x7B,0xFF,0x80,0x48,0x80,0x88,0x88,0x08,0x93,0xFE, 0xB2,0x52,0x82,0x52,0x82,0x52,0xE2,0x52,0x03,0xFF,0x10,0x02,0x60,0x00,0x00,0x00,
//"你", 0x00,0x40,0x00,0x20,0xFF,0xF8,0x00,0x07,0x00,0x40,0x08,0x20,0x04,0x18,0x43,0x0F, 0x80,0x08,0x7F,0xC8,0x00,0x08,0x01,0x08,0x06,0x28,0x0C,0x18,0x00,0x00,0x00,0x00,
//空格 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
//"你", 0x00,0x40,0x00,0x20,0xFF,0xF8,0x00,0x07,0x00,0x40,0x08,0x20,0x04,0x18,0x43,0x0F, 0x80,0x08,0x7F,0xC8,0x00,0x08,0x01,0x08,0x06,0x28,0x0C,0x18,0x00,0x00,0x00,0x00,
//"会", 0x00,0x80,0x00,0x80,0x02,0x40,0x42,0x20,0x62,0x50,0x52,0x48,0x4E,0x44,0x42,0x43, 0x42,0x44,0x52,0x48,0x62,0x50,0xC3,0x20,0x02,0x40,0x00,0xC0,0x00,0x40,0x00,0x00,
//"在", 0x08,0x08,0x04,0x08,0x02,0x08,0xFF,0x08,0x00,0xC8,0x40,0x38,0x41,0x0F,0x41,0x08, 0x41,0x08,0x7F,0xE8,0x41,0x08,0x41,0x88,0x41,0x08,0x60,0x0C,0x40,0x08,0x00,0x00,
//"哪", 0x00,0x00,0x1F,0xFC,0x08,0x04,0x5F,0xFC,0x21,0x12,0x19,0x12,0x07,0xFE,0x21,0x12, 0x41,0x12,0x3F,0xFE,0x00,0x00,0xFF,0xFE,0x10,0x42,0x20,0xBA,0x1F,0x06,0x00,0x00,
//"里", 0x40,0x00,0x48,0x00,0x49,0xFE,0x49,0x12,0x49,0x12,0x49,0x12,0x49,0x12,0x7F,0xFE, 0x49,0x12,0x49,0x12,0x49,0x12,0x49,0x12,0x4D,0xFF,0x68,0x02,0x40,0x00,0x00,0x00,
//空格 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
//"一", 0x00,0x80,0x00,0x80,0x00,0x80,0x00,0x80,0x00,0x80,0x00,0x80,0x00,0x80,0x00,0x80, 0x00,0x80,0x00,0x80,0x00,0x80,0x00,0x80,0x00,0x80,0x00,0xC0,0x00,0x80,0x00,0x00, //"切", 0x00,0x40,0x00,0x40,0x00,0x40,0x1F,0xFF,0x88,0x20,0x84,0x30,0x42,0x20,0x20,0x04, 0x18,0x04,0x07,0xFC,0x40,0x04,0x80,0x04,0x40,0x04,0x3F,0xFE,0x00,0x04,0x00,0x00,
//"还", 0x40,0x20,0x20,0x22,0x1F,0xEC,0x20,0x00,0x44,0x04,0x42,0x04,0x41,0x04,0x40,0x84, 0x5F,0xE4,0x40,0x1C,0x40,0x84,0x41,0x04,0x43,0x04,0x66,0x06,0x20,0x04,0x00,0x00,
//"是", 0x01,0x00,0x81,0x00,0x41,0x00,0x21,0x00,0x1D,0x7F,0x21,0x49,0x41,0x49,0x7F,0x49, 0x89,0x49,0x89,0x49,0x8D,0x7F,0x89,0x00,0x81,0x00,0xC1,0x80,0x41,0x00,0x00,0x00,
//"那", 0x00,0x00,0x41,0x12,0x21,0x12,0x19,0x12,0x07,0xFE,0x21,0x12,0x41,0x12,0x3F,0xFE, 0x00,0x00,0xFF,0xFE,0x08,0x02,0x10,0x42,0x20,0xB2,0x11,0x0F,0x0E,0x02,0x00,0x00,
//"么", 0x00,0x00,0x01,0x00,0x20,0x80,0x30,0x40,0x28,0x20,0x24,0x10,0x22,0x0C,0x21,0x83, 0x20,0x40,0x20,0x30,0x24,0x00,0x28,0x00,0x30,0x00,0x60,0x00,0x00,0x00,0x00,0x00,
//"清", 0x04,0x10,0x04,0x22,0xFE,0x64,0x01,0x0C,0x00,0xC0,0x00,0x44,0xFF,0x54,0x15,0x54, 0x15,0x54,0x15,0x7F,0x55,0x54,0x95,0x54,0x7F,0xD6,0x01,0x44,0x00,0x40,0x00,0x00,
//"析", 0x04,0x10,0x03,0x10,0x00,0xD0,0xFF,0xFF,0x00,0x90,0x41,0x10,0x30,0x00,0x0F,0xFC, 0x00,0x44,0x00,0x44,0x00,0x44,0xFF,0xC2,0x00,0x43,0x00,0x62,0x00,0x40,0x00,0x00,
//空格 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
//"只", 0x00,0x00,0x80,0x00,0x40,0x00,0x23,0xFC,0x11,0x04,0x19,0x04,0x01,0x04,0x01,0x04, 0x01,0x04,0x09,0x04,0x11,0x04,0x23,0xFE,0x60,0x04,0xC0,0x00,0x00,0x00,0x00,0x00,
//"愿", 0x08,0x00,0x84,0x00,0x63,0xFE,0x00,0x02,0x79,0xF2,0x85,0x52,0x81,0x5A,0x99,0x56, 0xAF,0x52,0x81,0x52,0x81,0x52,0xE5,0x52,0x09,0xFB,0x20,0x12,0xC0,0x00,0x00,0x00,
//"你", 0x00,0x40,0x00,0x20,0xFF,0xF8,0x00,0x07,0x00,0x40,0x08,0x20,0x04,0x18,0x43,0x0F, 0x80,0x08,0x7F,0xC8,0x00,0x08,0x01,0x08,0x06,0x28,0x0C,0x18,0x00,0x00,0x00,0x00,
//"幸", 0x00,0x20,0x08,0x20,0x09,0x24,0x09,0x24,0x09,0x64,0x09,0xA4,0x09,0x24,0xFF,0x3F, 0x09,0x24,0x09,0xA4,0x09,0x64,0x09,0xA6,0x0D,0x24,0x08,0x30,0x00,0x20,0x00,0x00,
//"福", 0x02,0x10,0x01,0x10,0x00,0x91,0xFF,0xD6,0x00,0xB0,0xFF,0x02,0x49,0x7A,0x49,0x4A, 0x49,0x4A,0x7F,0x4A,0x49,0x4A,0x49,0x4A,0x49,0x7B,0xFF,0x82,0x01,0x00,0x00,0x00,
//"美", 0x80,0x80,0x84,0x88,0x84,0xA8,0x44,0xA8,0x44,0xA9,0x24,0xAA,0x14,0xAE,0x0F,0xF8, 0x14,0xAC,0x24,0xAA,0x24,0xAB,0x44,0xA8,0x46,0xAC,0xC4,0x88,0x40,0x80,0x00,0x00,
//"丽", 0x00,0x02,0x00,0x02,0xFF,0xF2,0x01,0x12,0x42,0x12,0x80,0x12,0x7F,0xF2,0x00,0x02, 0xFF,0xF2,0x01,0x12,0x42,0x12,0x80,0x12,0x7F,0xFA,0x00,0x13,0x00,0x02,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,0x20,0x08,0x24,0x48,0x24,0x84,0x24,0x7F,0xFE,0x02,0x23,0x21,0x22,0x10,0x20, 0x09,0xFF,0x06,0x20,0x1A,0x22,0x61,0xAC,0x80,0x20,0xE0,0x30,0x00,0x20,0x00,0x00,
//"只", 0x00,0x00,0x80,0x00,0x40,0x00,0x23,0xFC,0x11,0x04,0x19,0x04,0x01,0x04,0x01,0x04, 0x01,0x04,0x09,0x04,0x11,0x04,0x23,0xFE,0x60,0x04,0xC0,0x00,0x00,0x00,0x00,0x00,
//"在", 0x08,0x08,0x04,0x08,0x02,0x08,0xFF,0x08,0x00,0xC8,0x40,0x38,0x41,0x0F,0x41,0x08, 0x41,0x08,0x7F,0xE8,0x41,0x08,0x41,0x88,0x41,0x08,0x60,0x0C,0x40,0x08,0x00,0x00,
//"乎", 0x01,0x00,0x01,0x00,0x01,0x02,0x01,0x12,0x01,0x22,0x41,0x62,0x81,0x02,0x7F,0xFE, 0x01,0x02,0x01,0x41,0x01,0x21,0x01,0x31,0x01,0x01,0x01,0x80,0x01,0x00,0x00,0x00,
//"你", 0x00,0x40,0x00,0x20,0xFF,0xF8,0x00,0x07,0x00,0x40,0x08,0x20,0x04,0x18,0x43,0x0F, 0x80,0x08,0x7F,0xC8,0x00,0x08,0x01,0x08,0x06,0x28,0x0C,0x18,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,
//I 0x00,0x00,0x00,0x00,0x00,0x04,0x10,0x04,0x10,0x04,0x10,0x04,0x1F,0xFC,0x1F,0xFC, 0x1F,0xFC,0x10,0x04,0x10,0x04,0x10,0x04,0x10,0x04,0x00,0x00,0x00,0x00,0x00,0x00,
//心形 0x01,0xF8,0x03,0xFC,0x07,0xFE,0x0F,0xFF,0x1F,0xFF,0x3F,0xFF,0x7F,0xFE,0xFF,0xFC, 0xFF,0xFC,0x7F,0xFE,0x3F,0xFF,0x1F,0xFF,0x0F,0xFF,0x07,0xFE,0x03,0xFC,0x01,0xF8,
//Y 0x00,0x00,0x00,0x08,0x00,0x08,0x00,0x18,0x20,0x78,0x20,0xF8,0x21,0xC8,0x3F,0x80, 0x3F,0x00,0x3F,0x80,0x20,0xC8,0x20,0x68,0x00,0x18,0x00,0x08,0x00,0x08,0x00,0x00,
//O 0x00,0x00,0x03,0xC0,0x0F,0xE0,0x1F,0xF0,0x18,0x38,0x30,0x18,0x20,0x08,0x20,0x08, 0x20,0x08,0x20,0x08,0x20,0x08,0x30,0x18,0x1C,0x70,0x1F,0xF0,0x0F,0xE0,0x03,0x80,
//U 0x00,0x00,0x00,0x08,0x0F,0xF8,0x1F,0xF8,0x3F,0xF8,0x30,0x08,0x20,0x00,0x20,0x00, 0x20,0x00,0x20,0x00,0x20,0x00,0x30,0x08,0x10,0x08,0x0F,0xF8,0x00,0x08,0x00,0x00,
//笑脸 0x07,0xE0,0x0F,0xF0,0x10,0x08,0x10,0x08,0x20,0x24,0x20,0x24,0x20,0x14,0x40,0x52, 0x44,0x52,0x44,0x52,0x48,0x12,0x88,0x11,0x90,0x21,0x90,0x21,0x90,0x01,0x90,0x01,
0x90,0x01,0x90,0x01,0x90,0x21,0x90,0x21,0x88,0x11,0x48,0x12,0x44,0x52,0x44,0x52, 0x40,0x52,0x20,0x14,0x20,0x24,0x20,0x24,0x10,0x08,0x10,0x08,0x0F,0xF0,0x07,0xE0,
//空格 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,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, };
unsigned char i; unsigned int c,j; void delay(unsigned char ms) { while(ms--) { for(i=0;i<10;i++) ; } }
void main() { IT0=1; EX0=1; EA=1; P1=0xff; P2=0xff; while(1) ; }
//---------下位P1 上位P2 高在上 地在下--- void int0() interrupt 0 { for(j=c;j<c+192;)//--显示N/16个字 { P1=zimu[j++]; P2=zimu[j++]; delay(8); P1=0X00; P2=0X00; } c=c+2;//-----滚屏的速度-------------- if(c>1800-192) c=0; } 我没有画原理图,直接画的PCB,手动布线和。
附件里是源程序,PCB板图和我用的字模提取软件。 |
文章评论(0条评论)
登录后参与讨论