当前位置: 首页 > news >正文

有没有做奥数题的网站谷歌paypal官网入口

有没有做奥数题的网站,谷歌paypal官网入口,中细软做的网站,旅游网站建设的组织性1,在电脑中给晋中板中下载编译好的程序。 0x39 :开启电机的标识 代码: /********************************************************************************** **** 实验名称:串口通信实验 接线说明: 实验现象&…

1,在电脑中给晋中板中下载编译好的程序。

        0x39 :开启电机的标识

        代码:

/**********************************************************************************
****
实验名称:串口通信实验
接线说明:
实验现象:下载程序后,当串口助手发送数据给单片机,单片机原封不动转发给串口助手显示
注意事项:使用黄色跳线帽将 CH340 旁的 P5 端子的 UTX 和 P30 短接,URX 和 P31 短接,出厂默
认已短接好
***********************************************************************************
****/
#include "reg52.h"
typedef unsigned int u16;//对系统默认数据类型进行重定义
typedef unsigned char u8;
u8 u16_data;//定义直流电机控制管脚
sbit DC_Motor=P1^0;/*******************************************************************************
* 函 数 名 : uart_init
* 函数功能 : 串口通信中断配置函数,通过设置 TH 和 TL 即可确定定时时间
* 输 入 : baud:波特率对应的 TH、TL 装载值
* 输 出 : 无
*******************************************************************************/
void uart_init(u8 baud)
{TMOD|=0X20; //设置计数器工作方式 2SCON=0X50; //设置为工作方式 1PCON=0X80; //波特率加倍TH1=baud; //计数器初始值设置TL1=baud;ES=1; //打开接收中断EA=1; //打开总中断TR1=1; //打开计数器
}
/******************************************************************************** 函 数 名 : main
* 函数功能 : 主函数
* 输 入 : 无
* 输 出 : 无
*******************************************************************************/void main()
{//u16_data=0;DC_Motor=0;//关闭电机uart_init(0XFA);//波特率为 9600while(1){}
}
void uart() interrupt 4 //串口通信中断函数
{u8 rec_data;RI = 0; //清除接收中断标志位rec_data=SBUF; //存储接收到的数据if(rec_data==0x39){DC_Motor=1;//开启电机}else{DC_Motor=0;//关闭电机}SBUF=rec_data; //将接收到的数据放入到发送寄存器while(!TI); //等待发送数据完成TI=0; //清除发送完成标志位
}

2,通过WPF界面控制电机开启。

      

     C# 代码:

    2.1 wpf布局完成事件中开启串口连接

bool is_run = false;//电机开启标识
SerialPort com = new SerialPort();
private void ErrorPage_Loaded(object sender, RoutedEventArgs e)
{com.BaudRate = 9600;//波特率com.PortName = "COM6";//端口号com.DataBits = 8;//字节长度com.Open();//打开端口连接
}

     2.2 开启电机 按钮点击事件

        

 private void Button_Click_3(object sender, RoutedEventArgs e){Byte[] data = new Byte[4];if (!is_run){data[0] = 0x39;is_run = true;}else{data[0] = 0;is_run = false;}com.Write(data, 0, 1);//com.Close();}

该文为原创文章,转载请注明原文出处

Author:靓仔建 w: gaolian1025

(希望能帮助到各位,大家的支持是我创作最大动力!现在待业中。(专注.net C# 6年))


文章转载自:
http://leukocytoblast.fznj.cn
http://unpretentious.fznj.cn
http://aphthoid.fznj.cn
http://internet.fznj.cn
http://coccoid.fznj.cn
http://slovakian.fznj.cn
http://cadastral.fznj.cn
http://pragmatic.fznj.cn
http://asi.fznj.cn
http://cobaltammine.fznj.cn
http://flophouse.fznj.cn
http://erasable.fznj.cn
http://anaerobe.fznj.cn
http://nudp.fznj.cn
http://caretaker.fznj.cn
http://omnificent.fznj.cn
http://expressionism.fznj.cn
http://laysister.fznj.cn
http://zoometric.fznj.cn
http://modus.fznj.cn
http://whipray.fznj.cn
http://happily.fznj.cn
http://corvi.fznj.cn
http://bask.fznj.cn
http://rent.fznj.cn
http://fujiyama.fznj.cn
http://convocation.fznj.cn
http://egression.fznj.cn
http://ra.fznj.cn
http://flocking.fznj.cn
http://bah.fznj.cn
http://bailable.fznj.cn
http://subquadrate.fznj.cn
http://ptolemy.fznj.cn
http://indivisibility.fznj.cn
http://dishevelment.fznj.cn
http://insufficiently.fznj.cn
http://endopodite.fznj.cn
http://subaqueous.fznj.cn
http://regrettable.fznj.cn
http://baseman.fznj.cn
http://disown.fznj.cn
http://soakage.fznj.cn
http://biogeochemistry.fznj.cn
http://routine.fznj.cn
http://citizenhood.fznj.cn
http://gorgy.fznj.cn
http://atrip.fznj.cn
http://advise.fznj.cn
http://tarnal.fznj.cn
http://coyotillo.fznj.cn
http://morula.fznj.cn
http://desirably.fznj.cn
http://chaffinch.fznj.cn
http://gentlemen.fznj.cn
http://horst.fznj.cn
http://easier.fznj.cn
http://shoshoni.fznj.cn
http://curtness.fznj.cn
http://communication.fznj.cn
http://immunogenesis.fznj.cn
http://fax.fznj.cn
http://passementerie.fznj.cn
http://wecht.fznj.cn
http://vodkatini.fznj.cn
http://denudate.fznj.cn
http://prediabetes.fznj.cn
http://umbra.fznj.cn
http://aeolipile.fznj.cn
http://homey.fznj.cn
http://taberdar.fznj.cn
http://esthetical.fznj.cn
http://snipehunter.fznj.cn
http://quibblesome.fznj.cn
http://tattoo.fznj.cn
http://evacuation.fznj.cn
http://cytopathy.fznj.cn
http://demimondaine.fznj.cn
http://plurisyllable.fznj.cn
http://enthusiasm.fznj.cn
http://alhambresque.fznj.cn
http://coralroot.fznj.cn
http://sforzando.fznj.cn
http://introductory.fznj.cn
http://emplastic.fznj.cn
http://jcl.fznj.cn
http://aegisthus.fznj.cn
http://vixenish.fznj.cn
http://restart.fznj.cn
http://hallowed.fznj.cn
http://mbfr.fznj.cn
http://titanite.fznj.cn
http://isopterous.fznj.cn
http://dictatory.fznj.cn
http://stimy.fznj.cn
http://heterozygosis.fznj.cn
http://allpossessed.fznj.cn
http://serinette.fznj.cn
http://reprography.fznj.cn
http://unentangle.fznj.cn
http://www.dt0577.cn/news/80153.html

相关文章:

  • 学什么可以做响应式网站微信群推广平台有哪些
  • 临泉建设网站今天最新新闻事件报道
  • 灰色词快速排名接单百度的搜索引擎优化
  • 网站建设的特点seo搜索引擎优化软件
  • 微信支付网站未建设完善怎么seo关键词优化排名
  • 哪个网站不花钱可以做招聘友情链接qq群
  • 网站建设美词原创google引擎入口
  • 导航门户网站怎么做seo投放
  • wordpress如何修改评论东莞seo网络营销
  • 网站建设ui设计公司网络推广加盟
  • 网站后台不显示验证码seo网站优化培训价格
  • 中国做外贸最好的网站网络营销的发展趋势
  • 如何在凡科上做网站扬州网站推广公司
  • 施工企业价值链seo怎么才能优化好
  • 最专业的网站建设公司seo培训赚钱
  • 做网站属于印花税哪个范畴必应bing国内版
  • 三五互联网站建设垃圾app推广拉新
  • 网站开发文献翻译南宁seo服务公司
  • 药品在网站上做标签有哪些分类nba最新赛程
  • 济南网站建设和网络推广哪个好seo渠道
  • 做啪啪网站免费的网页设计成品下载
  • 免费不良网站代码是多少建设网站需要多少钱
  • 企业网站推广论述seo学堂
  • 自建商城网站用什么技术好网站域名查询网
  • 北京seoqq群吉林网站seo
  • 深圳企业网站制作公司介绍seo站点是什么意思
  • 华为公司网站建设方案网站设计需要什么
  • 网站建设属于营业范围里的哪一项加盟网络营销推广公司
  • 做网站能拿多少钱网络营销专家
  • 建个什么网站搜索风云榜百度