资源描述:
《基于Proteus仿真实现汉字点阵—电路仿真(细)》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、基于Proteus仿真实现汉字点阵电路仿真一、实训目的汉字点阵,用多个8*8的LED,用keil软件编程,通过89c51单片机显示需要显示的内容(应用电子),要求能将需要显示的内容进行播放。二、实训要求1、绘图必须规范、严谨,可以不拘一格,但要求仿真成功。2、不得相互拷贝和抄袭,每个仿真电路图下面写上电路名称及自己的班级、学号姓名。3、Proteus仿真图、相应的源程序(用到单片机的项目)、Word文档实训报告均以电子版形式上交。三、仿真电路三、实训结果五、实训心得对于汉字点阵还是比较有兴趣的,现
2、在一些商家很流行用电子点阵来向客户展示商店的促销活动的,看的也比较多,所以在学的时候,投入的就比较多,中间也遇到了,一些困难,但是从现在看来,这些都不是问题了。知道了延时函数。动态显示,我还是对这个项目的学习过程比较满意的。六、附页Keil程序#includeunsignedintj,m;sbitP3_0=P3^0;sbitP3_1=P3^1;sbitP3_2=P3^2;sbitP3_3=P3^3;voiddelayms(unsignedinti){unsignedchark;w
3、hile(i--)for(k=0;k<111;k++);}voidmain(){unsignedcharcodeled1[]={0x00,0x00,0xFC,0x04,0x44,0x84,0x04,0x25,0xC6,0x04,0x04,0x04,0x04,0xE4,0x04,0x00,0x00,0x00,0xFE,0x22,0x22,0x22,0x22,0xFE,0x22,0x22,0x22,0x22,0xFE,0x00,0x00,0x00,0x00,0x00,0xF8,0x88,0x88,0x
4、88,0x88,0xFF,0x88,0x88,0x88,0x88,0xF8,0x00,0x00,0x00,0x80,0x82,0x82,0x82,0x82,0x82,0x82,0xE2,0xA2,0x92,0x8A,0x86,0x82,0x80,0x80,0x00};unsignedcharcodeled2[]={0x40,0x30,0x0F,0x40,0x40,0x41,0x4E,0x40,0x40,0x63,0x50,0x4C,0x43,0x40,0x40,0x00,0x80,0x60,0x1
5、F,0x02,0x02,0x02,0x02,0x7F,0x02,0x02,0x42,0x82,0x7F,0x00,0x00,0x00,0x00,0x00,0x1F,0x08,0x08,0x08,0x08,0x7F,0x88,0x88,0x88,0x88,0x9F,0x80,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x80,0x7F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};while(1){P3=0XFF;P3_0=0
6、;for(m=0;m<16;m++){P2=m;P0=led1[m];P1=led2[m];delayms(1);}P3_0=1;P3_1=0;for(m=16;m<32;m++){P2=m;P0=led1[m];P1=led2[m];delayms(1);}P3_1=1;P3_2=0;for(m=32;m<48;m++){P2=m;P0=led1[m];P1=led2[m];delayms(1);}P3_2=1;P3_3=0;for(m=48;m<64;m++){P2=m;P0=led1[m];
7、P1=led2[m];delayms(1);}P3_3=1;}}