色婷婷AⅤ一区二区三区|亚洲精品第一国产综合亚AV|久久精品官方网视频|日本28视频香蕉

          新聞中心

          52控制12864的串口程序

          作者: 時(shí)間:2016-11-18 來源:網(wǎng)絡(luò) 收藏
          #include

          #include
          #include
          #define uint unsigned int
          #define uchar unsigned char
          //====================================================================
          //函數(shù)聲明
          void Delay(uint ms); //延時(shí)子程序
          void W_1byte(uchar RW, uchar RS, uchar W_data);
          void Write_8bits(uint W_bits);
          void LCD_Init(void);

          本文引用地址:http://cafeforensic.com/article/201611/315784.htm

          sbit CS=P3^5; //CS=RS
          sbit SID=P3^6; //RW=SID
          sbit SCLK=P3^7; //E=SCLK
          sbit PSB=P2^3; //E=SCLK
          //===================================================================
          code uchar mynew1[]={"天津工程師范學(xué)院"};
          code uchar mynew2[]={"電子工程學(xué)院"};
          code uchar mynew3[]={"應(yīng)電0813班趙宏杰"};
          code uchar mynew4[]={"電話:15922073007"};

          void main()
          {
          uchar i=0;
          SP = 0X60;
          CS = 0;
          SCLK = 0;
          SID = 0;
          PSB=0;
          LCD_Init();
          while(1)
          {
          W_1byte(0,0,0x80);
          _nop_();
          for(i=0;mynew1[i]!=