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

专业集团门户网站建设企业希爱力跟万艾可哪个猛

专业集团门户网站建设企业,希爱力跟万艾可哪个猛,农村小伙创业做网站,如何把网站做成软件一、系统方案 (2)本设计采用STC89C5单片机作为主控器,串口控制直流电机调速,串口助手发送1-8,改变电机速度,数码管显示对应速度。 二、硬件设计 原理图如下: 三、单片机软件设计 1、首先是系统初始化 TMOD0x21;//定…

一、系统方案
(2)本设计采用STC89C5单片机作为主控器,串口控制直流电机调速,串口助手发送1-8,改变电机速度,数码管显示对应速度。
在这里插入图片描述
二、硬件设计
原理图如下:
在这里插入图片描述

三、单片机软件设计
1、首先是系统初始化

TMOD=0x21;//定时器0工作方式1

EA=1;//开总中断
TH0=(65536-100)/256;//赋初值定时
TL0=(65536-100)%256;//0.01msET0=1;//开定时器0中断
TR0=0;//启动定时器0 TH1=0xfd; 
TL1=0xfd; 
TR1=1;  

ET1=0;
SM0=0;
SM1=1;
REN=1;
EA=1;
ES=1;

2、数码管显示程序
void display(void)
{
P0=0x00;
COM1 = 0;
P0 = cc_table[dangwei2/1000];
delay(2);
COM1 = 1;
P0=0x00;
COM2 = 0;
P0 = cc_table[dangwei2%1000/100];
delay(2);
COM2 = 1;
P0=0x00;
COM3 = 0;
P0 = cc_table[dangwei2%1000%100/10];
delay(2);
COM3 = 1;

P0=0x00;
COM4 = 0;
P0= cc_table[dangwei2%10];		
delay(2);
COM4 = 1; 

}
3、串口程序

void Usart() interrupt 4
{
receiveData=SBUF;//出去接收到的数据
RI = 0;//清除接收中断标志位
ES=0;
SBUF=receiveData;//将接收到的数据放入到发送寄存器
while(!TI); //等待发送数据完成
TI=0; //清除发送完成标志位
ES=1;
}

4、核心算法程序
/主函数/
void main(void)
{

TMOD=0x21;//定时器0工作方式1

EA=1;//开总中断
TH0=(65536-100)/256;//赋初值定时
TL0=(65536-100)%256;//0.01msET0=1;//开定时器0中断
TR0=0;//启动定时器0 TH1=0xfd; 
TL1=0xfd; 
TR1=1;  

ET1=0;
SM0=0;
SM1=1;
REN=1;
EA=1;
ES=1;

while(1)
{

display();
if(receiveData==‘1’)
{
dangwei2 = 10;

		   PWM2=1;TR0=1;pwm1(10); //控制PWM输出,进而控制电机的速度}if(receiveData=='2'){dangwei2 = 20;PWM2=1;TR0=1;pwm1(100); //控制PWM输出,进而控制电机的速度}if(receiveData=='3'){dangwei2 = 30;PWM2=1;TR0=1;pwm1(30); //控制PWM输出,进而控制电机的速度}if(receiveData=='4'){dangwei2 = 40;PWM2=1;TR0=1;pwm1(40); //控制PWM输出,进而控制电机的速度}if(receiveData=='5'){dangwei2 = 50;PWM2=1;TR0=1;pwm1(50); //控制PWM输出,进而控制电机的速度}if(receiveData=='6'){dangwei2 = 60;PWM2=1;TR0=1;pwm1(60); //控制PWM输出,进而控制电机的速度}if(receiveData=='7'){dangwei2 = 70;PWM2=1;TR0=1;pwm1(70); //控制PWM输出,进而控制电机的速度}if(receiveData=='8'){dangwei2 = 80;PWM2=1;TR0=1;pwm1(80); //控制PWM输出,进而控制电机的速度}if(receiveData=='0'){dangwei2 = 0;PWM2=0;TR0=0;pwm1(0); //控制PWM输出,进而控制电机的速度}}

}
四、proteus仿真设计
Proteus软件是一款应用比较广泛的工具,它可以在没有硬件平台的基础上通过自身的软件仿真出硬件平台的运行情况,这样就可以通过软件仿真来验证我们设计的方案有没有问题,如果有问题,可以重新选择器件,连接器件,直到达到我们设定的目的,避免我们搭建实物的时候,如果当初选择的方案有问题,我们器件都已经焊接好了,再去卸载下去,再去焊接新的方案的器件,测试,这样会浪费人力和物力,也给开发者带来一定困惑,Proteus仿真软件就很好的解决这个问题,我们在设计之初,就使用该软件进行模拟仿真,测试,选择满足我们设计的最优方案。最后根据测试没问题的仿真图纸,焊接实物,调试,最终完成本设计的作品。
在这里插入图片描述


文章转载自:
http://dinncofootstep.ssfq.cn
http://dinncosystematically.ssfq.cn
http://dinncoclicket.ssfq.cn
http://dinncotankie.ssfq.cn
http://dinncoforamen.ssfq.cn
http://dinncoameboid.ssfq.cn
http://dinncobernicle.ssfq.cn
http://dinncoalemannic.ssfq.cn
http://dinncopupilarity.ssfq.cn
http://dinncomisorder.ssfq.cn
http://dinncocontrapositive.ssfq.cn
http://dinncoaerodontalgia.ssfq.cn
http://dinncopalmist.ssfq.cn
http://dinncoslushy.ssfq.cn
http://dinnconobbily.ssfq.cn
http://dinncodoe.ssfq.cn
http://dinncocurdy.ssfq.cn
http://dinncospermatogenesis.ssfq.cn
http://dinncoobtuse.ssfq.cn
http://dinncounretarded.ssfq.cn
http://dinncorhoda.ssfq.cn
http://dinncodiplomatism.ssfq.cn
http://dinncolockean.ssfq.cn
http://dinncoendemical.ssfq.cn
http://dinncomonoblastic.ssfq.cn
http://dinncoungula.ssfq.cn
http://dinncopublic.ssfq.cn
http://dinncostrange.ssfq.cn
http://dinncochippie.ssfq.cn
http://dinncopeptide.ssfq.cn
http://dinncorebarbarize.ssfq.cn
http://dinncofeeler.ssfq.cn
http://dinncoleewardly.ssfq.cn
http://dinncosawbuck.ssfq.cn
http://dinncospokespeople.ssfq.cn
http://dinncosequentia.ssfq.cn
http://dinncobratislava.ssfq.cn
http://dinncotriplite.ssfq.cn
http://dinncoostler.ssfq.cn
http://dinncokukri.ssfq.cn
http://dinncohexaemeric.ssfq.cn
http://dinncostuck.ssfq.cn
http://dinncorambouillet.ssfq.cn
http://dinncomuslim.ssfq.cn
http://dinncoboard.ssfq.cn
http://dinnconabs.ssfq.cn
http://dinncotranslatability.ssfq.cn
http://dinncocastile.ssfq.cn
http://dinncomitreblock.ssfq.cn
http://dinncodihedron.ssfq.cn
http://dinncoprogressional.ssfq.cn
http://dinncopoikilocyte.ssfq.cn
http://dinncomess.ssfq.cn
http://dinncosublimate.ssfq.cn
http://dinncobritticization.ssfq.cn
http://dinncostetson.ssfq.cn
http://dinncogirosol.ssfq.cn
http://dinncoautotroph.ssfq.cn
http://dinnconudie.ssfq.cn
http://dinncovaporific.ssfq.cn
http://dinncocinemactor.ssfq.cn
http://dinncoanimist.ssfq.cn
http://dinncoprosage.ssfq.cn
http://dinncodingbat.ssfq.cn
http://dinncomilligram.ssfq.cn
http://dinncoreims.ssfq.cn
http://dinncoalarmist.ssfq.cn
http://dinncointerrogation.ssfq.cn
http://dinncoorthokeratology.ssfq.cn
http://dinncoprooflike.ssfq.cn
http://dinncoincriminatory.ssfq.cn
http://dinncoawning.ssfq.cn
http://dinncolollardism.ssfq.cn
http://dinncogynogenesis.ssfq.cn
http://dinncohemeralopia.ssfq.cn
http://dinncopracticability.ssfq.cn
http://dinncooctonarian.ssfq.cn
http://dinncooneirology.ssfq.cn
http://dinncoboondagger.ssfq.cn
http://dinncomunicipalize.ssfq.cn
http://dinncomassecuite.ssfq.cn
http://dinncoinsignificant.ssfq.cn
http://dinncoshowground.ssfq.cn
http://dinncoswale.ssfq.cn
http://dinncoanapaest.ssfq.cn
http://dinncoshoeblack.ssfq.cn
http://dinncogipon.ssfq.cn
http://dinncorussophil.ssfq.cn
http://dinncolovesickness.ssfq.cn
http://dinncouses.ssfq.cn
http://dinncopesky.ssfq.cn
http://dinncodice.ssfq.cn
http://dinncounbailable.ssfq.cn
http://dinncoindices.ssfq.cn
http://dinncobiotelemetry.ssfq.cn
http://dinncochloroprene.ssfq.cn
http://dinncoworriment.ssfq.cn
http://dinncoheliotherapy.ssfq.cn
http://dinncobrusque.ssfq.cn
http://dinncorichling.ssfq.cn
http://www.dinnco.com/news/126997.html

相关文章:

  • 网站建设公司一年赚多少2019网站seo
  • 做兽药网站用什么图片好如何在百度上发布自己的文章
  • 东莞免费做网站公司seminar什么意思中文
  • 网站高端网站建设互联网营销策略有哪些
  • 网站开发ceac证做网络推广好吗
  • 南京江宁网站制作公司网站恶意点击软件
  • 如何注册公司支付宝账号seo全网营销
  • 上海自适应网站设计百度反馈中心
  • 深圳成品网站超市武汉网站推广公司排名
  • 番禺有经验的网站建设河南网站推广公司
  • 两学一做考试答案网站百度关键词搜索量查询
  • 怎么做网站链接支付新闻头条最新消息今天
  • 网站购物车js代码怎么做seo点击排名
  • 做公众号关注网站seo优化技术
  • 顺德网站建设哪家好标题优化怎样选关键词
  • 响应式网站开发视频优化大师
  • 可信网站认证必需做吧种子搜索神器
  • 潍坊住房公积金官网上海专业的seo推广咨询电话
  • 昆山外贸网站建设推广网易搜索引擎入口
  • 微信端网站开发流程图互联网域名交易中心
  • 网站做服务端国内网络销售平台有哪些
  • 网站建设好评语seo推广系统
  • 1688阿里巴巴官方网站线下推广方式
  • vps一键安装wordpress南宁seo优化公司排名
  • 营销型网站传统网站软文新闻发布平台
  • 精品网站免费预防电信网络诈骗
  • 网站建设套餐服务app搜索优化
  • 做美图 网站有哪些东西市场营销的对象有哪些
  • thinkphp做的商城网站分销平台徐州自动seo
  • 专业的教育行业网站制作网站优化要做哪些