节显示器接口研讨.pptVIP

  • 10
  • 0
  • 约3.03千字
  • 约 45页
  • 2017-05-07 发布于湖北
  • 举报
节显示器接口研讨

#includereg51.h #define uint unsigned int #define uchar unsigned char code uchar tab1[]={0x49,0x36,0x36,0x36,0x00};//B字库 code uchar tab2[]={0x01,0x02,0x04,0x08,0x10};//扫描代码 void delay(uint n) { data uint i; for(i=0;in;i++); } void dsp( ) { uchar j; for(j=0;j5;j++) { P0=tab1[j]; P2=tab2[j]; delay(120); P2=0x00; } } void main( ) { while(1) { dsp( ); } } 例D42_7:一个8×8共阴极LED点阵显示“ILOVEYOU” 例D42_8:使用两个8×8共阴极LED点阵显示字符串“AT89C51” 4.2.3 液晶显示 1、1602应用 (1)器件基础 一种点阵字符型液晶显示模块,可以显示两行共32个字符,字符的点阵为5×8点,是一种很常 用的小型液晶显 示模块,在单片 机系统、嵌入式 系统等的人机界 面中得到了广泛的应用。 1、VSS 电

文档评论(0)

1亿VIP精品文档

相关文档