673835452 发表于 2014-4-13 10:45:27

STC怎么发送hex字符串。

最近在弄迪文的DGUS显示屏,用电脑发送显示屏会响应,用单片机发送屏幕没响应。。用电脑接收单片机数据,显示屏要求串口信号地与电源地连在一起。if(0==key2)
        {
        delay(9000);
        if(0==key2)
        {
                SBUF = 0x5a;   
                while(!TI);               
                TI=0;
                SBUF = 0xa5;
                while(!TI);               
                TI=0;
                SBUF = 0x04;   
                while(!TI);                  
                TI=0;
                SBUF = 0x80;   
                while(!TI);                  
                TI=0;
                SBUF = 0x03;   
                while(!TI);               
                TI=0;
                SBUF = 0x00;   
                while(!TI);                  
                TI=0;
                SBUF = 0x01;   
                while(!TI);               
                TI=0;
        }
        }


673835452 发表于 2014-4-13 12:15:22

自己顶顶
页: [1]
查看完整版本: STC怎么发送hex字符串。