登录
首页 » c » 串口通信课程设计

串口通信课程设计

于 2022-08-22 发布 文件大小:16.86 MB
0 98
下载积分: 2 下载次数: 1

代码说明:

#include     //52系列单片机头文件#define uchar unsigned char#define uint unsigned int sbit cs1=P2^3; //数码管段选信号sbit cs2=P2^2; //数码管段选信号sbit cs3=P2^1; //数码管段选信号sbit cs4=P2^0; //数码管段选信号sbit RE=P1^6; //低电平收数据,高电平发数据sbit DE=P1^7;   //低电平收数据,高电平发数据sbit key0=P1^0;   //主机用两个拨码开关sbit key1=P1^1; //主机用两个拨码开关uchar show_code[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x83,0xf8,0x80,0x98}; //数字0-9的显示码,更改数码管显示程序。uchar temp1=0,temp2=0;uchar count=0,sum=0;//void delayms(uint); //延时函数声明//void decide (void);void send_byte(uchar t)   //发送一个字节  发送一个数据后立马变成收数据的状态{ RE=1;  //高电平发    DE=1;  //高电平发         ES=0;    SBUF=t; while(!TI);   TI=0;ES=1; RE=0;  //低电平收    DE=0;  //低电平收}void delayms(uint xms) //延时

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • wavelet
    基于小波变换的mallat算法,用于检测信号的奇异性,实现励磁涌流的鉴别(Based the wavelet transform mallat algorithm for detection signal singularity inrush current identification)
    2012-12-19 19:24:31下载
    积分:1
  • intel3
    说明:  操作系统编程,INTEL编程文档说明,详细介绍了intel芯片的汇编语法及详细说明第二版。(operation system programming intel 2B.)
    2020-06-25 18:00:01下载
    积分:1
  • 利用深度学习方法进行信号解调
    对bpsk信号利用深度学习的方法进行信号的解调
    2022-03-31 18:04:20下载
    积分:1
  • weitutouming
    很强大的位图显示,以及位图透明显示的代码(Very powerful bitmap display, and bitmap transparent display code)
    2011-09-08 10:35:26下载
    积分:1
  • Realize a simple text comparison functions realize relatively rough, the course...
    实现了简单的文本比较功能;实现比较粗糙,学习中,见谅。显示部分的行号还有待改进-Realize a simple text comparison functions realize relatively rough, the course of study, will be forgiven. Showing part of the line number has yet to be improved
    2023-05-26 05:35:04下载
    积分:1
  • lesson10-1
    用80c51单片机编写时钟控制程序,断电后丢失。适用于初学者(Write clock with 80c51 microcontroller control program, after power loss. For beginners)
    2011-11-06 22:38:49下载
    积分:1
  • 液晶显示屏的完整代码
    电子手表的液晶驱动代码,全点阵操作。
    2022-01-25 22:07:17下载
    积分:1
  • DRV8711 SPI Driver
    DRV8711的驱动,硬件SPI,8个寄存器的配置代码(The driver of the DRV8711, the hardware SPI, the configuration code of the 8 registers)
    2020-12-29 17:29:00下载
    积分:1
  • POA-GA
    说明:  用于求解水库群优化调度的POA-GA源程序,且在GA方法中加入了模拟退火的思想,使GA收敛到全局最优解。(Swarm optimization for solving scheduling reservoir POA-GA source, and the GA method is added to the idea of simulated annealing, so that GA convergence to the global optimal solution.)
    2021-03-09 10:39:27下载
    积分:1
  • VB Graph realize under the Eagle Eye Eagle Eye diagram under VB realize
    VB下鹰眼图的实现 VB下鹰眼图的实现-VB Graph realize under the Eagle Eye Eagle Eye diagram under VB realize
    2022-03-20 01:26:33下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载