#include <reg51.h>
#include <intrins.h>
#define uchar unsigned char
#define uint unsigned int
sbit P12=P1^2;
char code str[] = "you are the best! \n\r";
main()
{
uint j;
TMOD=0x20;
TL1=0xfd;TH1=0xfd;
SCON=0x50;
PCON &= 0xef;
TR1=1;
IE=0x00;
P12=1;
while(1)
{
uchar i=0;
while(str[i]!='\0')
{
SBUF=str[i];
while(!TI);
TI=0;
i++;
}
for(j=0;j<50000;j++);
}
}
单片机-485-PC串口通信proteus仿真+程序资料_51单片机(论文+开题报告+源代码+详解图).zip
54 浏览量
2024-04-19
03:15:59
上传
评论
收藏 300KB ZIP 举报
小肥羊k
- 粉丝: 1365
- 资源: 1万+
最新资源
- 蓝桥杯2024年第十五届省赛真题-前缀总分
- com.qihoo.appstore_300101305-1.apk
- tensorflow-gpu-2.7.1-cp37-cp37m-manylinux2010-x86-64.whl
- tensorflow-2.7.2-cp37-cp37m-manylinux2010-x86-64.whl
- tensorflow-2.7.1-cp39-cp39-manylinux2010-x86-64.whl
- 蓝桥杯2024年第十五届省赛真题-传送阵
- com.qihoo.appstore_300101305.apk
- linux之线程同步一.doc
- keil5配色方案10种
- python烟花代码.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈