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

串口通信课程设计

于 2022-08-22 发布 文件大小:16.86 MB
0 109
下载积分: 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 个回复

  • 44
    说明:  BP算法是为了解决多层前向神经网络的权系数优化而提出来的;所以,BP算法也通常暗示着神经网络的拓扑结构是一种无反馈的多层前向网络(BP algorithm is to solve the multi-layer feedforward neural network weights optimization and put forward Therefore, BP algorithm usually implies that the topology of neural network is a multi-layer feedback-free network)
    2008-11-10 20:55:07下载
    积分:1
  • 8_shuma_game
    C++九宫格数码游戏源码,有兴趣的朋友学习一下。(C++ Jiugongge digital game source code, learn about friends who are interested.)
    2011-05-25 06:11:57下载
    积分:1
  • WPF 圆形菜单(仅UI实现,需自定义事件)
    圆形的菜单很漂亮很好用
    2016-06-22下载
    积分:1
  • TSP问题
    旅行商问题,即TSP问题(Travelling Salesman Problem)又译为旅行推销员问题、货郎担问题,是数学领域中著名问题之一。假设有一个旅行商人要拜访n个城市,他必须选择所要走的路径,路径的限制是每个城市只能拜访一次,而且最后要回到原来出发的城市。路径的选择目标是要求得的路径路程为所有路径之中的最小值。 TSP问题是一个组合优化问题。该问题可以被证明具有NPC计算复杂性。因此,任何能使该问题的求解得以简化的方法,都将受到高度的评价和关注。 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报 打分 发表评论 暂无评论
    2022-01-25 18:35:51下载
    积分:1
  • Genetic
    关键词:C# 遗传算法 多目标寻优 智能优化 欢迎大家交流学习(Keywords: C# genetic algorithm for multi-objective optimization of intelligent optimization welcome to share their knowledge)
    2014-05-20 13:15:38下载
    积分:1
  • Server
    实现socket通信实例,服务端。实现客户端的发送数据的处理。。。。。(Achieve socket communication examples, client services. Implement the processing for transmitting data to the client. . . .)
    2013-12-12 17:27:42下载
    积分:1
  • ad7682
    4通道ad7682驱动程序 在msp430单片机上调试成功(4-channel ad7682 driver debugging success msp430 microcontroller)
    2020-12-03 14:39:24下载
    积分:1
  • shiyan3.3
    使用MSP430及ccs平台编写的温度采样(Temperature sampling)
    2020-06-24 11:20:02下载
    积分:1
  • havypll
    5509A的入门程序,可以方便设置主频,XF输出方波信号。对初学者很好帮助。(5509A of the entry process, you can easily set the frequency, XF output square wave signal. Very good help for beginners.)
    2009-10-12 17:11:15下载
    积分:1
  • MATLAB-explore
    数值计算软件matlab 入门学习材料 有效掌握matlab基础知识(numerical simulation)
    2011-09-12 21:55:48下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载