欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

標題: 單片機串口方式0實現并行數據、串行數據轉換 [打印本頁]

作者: 18789007389    時間: 2018-7-16 17:04
標題: 單片機串口方式0實現并行數據、串行數據轉換
#include <reg52.h>
#include <intrins.h>
#include <stdio.h>
#define uint unsigned int
#define uchar unsigned char
sbit SPL = P2^5;

void Delay(uint x)
{
         uchar i;
        while(x--)
        {
                 for(i=0;i<120;i++);
        }
}

void main()
{
         SCON = 0x10;
        while(1)
        {
                 SPL = 0;
                SPL = 1;
                while(RI == 0);
                RI = 0;
                P0 = SBUF;
                Delay(20);
        }
}






歡迎光臨 (http://www.raoushi.com/bbs/) Powered by Discuz! X3.1