速发彩票开户

歡迎來到欣榮芯片解密官方網站!
打開客服菜單

XINWENZHONGXIN

contact us

LIANXIWOMEN

IC解密首頁 > 案例展示分類 > AT89C2051解密單片機程序在多路舵機控制電路的應用案例
AT89C2051解密單片機程序在多路舵機控制電路的應用案例
編輯 :

ZHUANYEXINPIANJIEMIGONGSI

時間 : 2019-07-29 18:09 瀏覽量 : 53

欣榮IC破解公司專業芯片解密,解密單片機程序,IC破解,芯片程序反匯編修改,電路板抄板,原理圖BOM表制作,樣機調試,PCBA成品加工生產一條龍服務!

AT89C2051JIEMIDANPIANJICHENGXUZAIDUOLUDUOJIKONGZHIDIANLUDEYINGYONGANLI

DUOJISHIYIZHONGWEIZHISIFUDEQUDONGQI。TAJIESHOUYIDINGDEKONGZHIXINHAO,SHUCHUYIDINGDEJIAODU,SHIYONGYUNEIXIEXUYAOJIAODUBUDUANBIANHUABINGKEYIBAOCHIDEKONGZHIXITONG。ZAIWEIJIDIANXITONGHEHANGMOZHONG,TASHIYIGEJIBENDESHUCHUZHIXINGJIGOU。YIFUTABA-S3003XINGDUOJIWEILI,TU1SHIFUFABA-S3003XINGDUOJIDENEIBUDIANLU。

速发彩票开户DUOJIDEGONGZUOYUANLISHI:PWMXINHAOYOUJIESHOUTONGDAOJINRUXINHAOJIEDIAODIANLUBA66881。DE12JIAOJINXINGJIEDIAO,HUODEYIGEZHILIUPIANZHIDIANYA。GAIZHILIUPIANZHIDIANYAYUDIANWEIQIDEDIANYABIJIAO,HUODEDIANYACHAYOUBA6688DE3JIAOSHUCHU。GAISHUCHUSONGRENDIANJIQUDONGJICHENGDIANLUBA6686,YIQUDONGDIANJIZHENGFANZHUAN。DANGDIANJIZHUANSUYIDINGSHI,TONGGUOJILIANJIANSUCHILUNDAIDONGDIANWEIQIR。,XUANZHUAN,ZHIDAODIANYACHAWEIO,DIANJITINGZHIZHUANDONG。DUOJIDEKONGZHIXINHAOSHIPWMXINHAO,LIYONGZHANKONGBIDEBIANHUAGAIBIANDUOJIDEWEIZHI。

 

DUOJIDEKONGZHIFANGFA

速发彩票开户DIANYUANXIANHEDIXIANYONGYUTIGONGDUOJINEIBUDEZHILIUDIANJIHEKONGZHIXIANLUSUOXUDENENGYUAN.DIANYATONGCHANGJIEYU4~6V,YIBANQU5V。ZHUYI,GEIDUOJIGONGDIANDIANYUANYINGNENGTIGONGZUGOUDEGONGLV。KONGZHIXIANDESHURUSHIYIGEKUANDUKEDIAODEZHOUQIXINGFANGBOMOCHONGXINHAO,FANGBOMOCHONGXINHAODEZHOUQIWEI20 ms(JIPINLVWEI50 Hz)。DANGFANGBODEMOCHONGKUANDUGAIBIANSHI,DUOJIZHUANZHOUDEJIAODUFASHENGGAIBIAN,JIAODUBIANHUAYUMOCHONGKUANDUDEBIANHUACHENGZHENGBI。

舵機控制器硬件電路設計

從上述舵機轉角的控制方法可看出,舵機的控制信號實質是一個可嗣寬度的方波信號(PWM)。該方波信號可由FPGA、模擬電路或單片機來產生。采用FPGA成本較高,用模擬電路來實現則電路較復雜,不適合作多路輸出。一般采用單片機作舵機的控制器。目前采用單片機做舵機控制器的方案比較多,可以利用單片機的定時器中斷實現PWM。該方案將20ms的周期信號分為兩次定時中斷來完成:一次定時實現高電平定時Th;一次定時實現低電平定時T1。Th、T1的時間值隨脈沖寬度的變換而變化,但,Th+T1=20ms。該方法的優點是,PWM信號完全由單片機內部定時器的中斷來實現,不需要添加外圍硬件。缺點是一個周期中的PWM信號要分兩次中斷來完成,兩次中斷的定時值計算較麻煩;為了滿足20ms的周期,單片機晶振的頻率要降低;不能實現多路輸出。也可以采用單片機+8253計數器的實現方案。該方案由單片機產生計數脈沖(或外部電路產生計數脈沖)提供給8253進行計數,由單片機給出8253的計數比較值來改變輸出脈寬。該方案的優點是可以實現多路輸出,軟件設計較簡單;缺點是要添加l片8253計數器,增加了硬件成本。本文在綜合上述兩個單片機舵機控制方案基礎上,提出了一個新的單片機設計方案,如圖4所示。

 

GAIFANGANDEDUOJIKONGZHIQIYIAT89C2051($0.5940)DANPIANJIWEIHEXIN,555GOUCHENGDEZHENDANGQIZUOWEIDINGSHIJIZHUN,DANPIANJITONGGUODUI555ZHENDANGQICHANSHENGDEMOCHONGXINHAOJINXINGJISHULAICHANSHENGPWMXINHAO。GAIKONGZHIQIZHONGDANPIANJIKEYICHANSHENG8GETONGDAODEPWMXINHAO,FENBIEYOUAT89C2051DEP1.0~Pl.7(12~19YINJIAO)DUANKOUSHUCHU。SHUCHUDE8 LUPWMXINHAOTONGGUOGUANGOUGELICHUANSONGDAOXIAYIJIDIANLUZHONG。YINWEIXINHAOTONGGUOGUANGOUCHUANSONGGUOCHENGZHONGJINXINGLEFANXIANG,YINCICONGGUANGOUCHULAIDEXINHAOBIXUZAIJINGGUOFANXIANGQIJINXINGFANXIANG。FANGBOXINHAOJINGGUOGUANGOUCHUANSHUHOU,QIANYANHEHOUYANHUIFASHENGJIBIAN,YINCIFANXIANGQICAIYONGCD40106($0.1125)SHIMITEFANXIANGQIDUIGUANGOUCHUANSHUGUOLAIDEXINHAOJINXINGZHENGXING,CHANSHENGBIAOZHUNDEPWMFANGBOXINHAO。BIZHEZAISHIYANGUOCHENGZHONGFAXIAN,DUOJIZAIYUNXINGGUOCHENGZHONGYAOCONGDIANYUANXINAJIAODADEDIANLIU,RUODUOJIYUDANPIANJIKONGZHIQIGONGYONGYIGEDIANYUAN,ZEDUOJIHUIDUIDANPIANJICHANSHENGJIAODADEGANRAO。YINCI,DUOJIYUDANPIANJIKONGZHIQICAIYONGLIANGGEDIANYUANGONGDIAN,LIANGZHEBUGONGDI,TONGGUOGUANGOULAIGELI,BINGQIEGEIDUOJIGONGDIANDEDIANYUANZUIHAOCAIYONGSHUCHUGONGLVJIAODADEKAIGUANDIANYUAN。GAIDUOJIKONGZHIQIZHANYONGDANPIANJIDEGESCICHUANKOU。CHUANKOUYONGYUJIESHOUSHANGWEIJICHUANSONGGUOLAIDEKONGZHIMINGLING,YIDIAOJIEMEIYIGETONGDAOSHUCHUXINHAODEMOCHONGKUANDU。MAX232($2.0686)WEIDIANPINGZHUANHUANQI,JIANGSHANGWEIJIDERS232($780.5000)DIANPINGZHUANHUANCHENGTTLDIANPING。

SHIXIANDUOLUPWMXINHAODEYUANLI

 

ZAIMONIDIANLUZHONG,PWMMOCHONGXINHAOKEYITONGGUOZHILIUDIANPINGYUJUCHIBOXINHAOBIJIAOLAIDEDAO。ZAIDANPIANJIZHONG,JUCHIBOKEYITONGGUODUIZHENGXINGBIANLIANGJIA1CAOZUOLAISHIXIAN,RUTU5SUOSHI。JIADINGDANPIANJICHENGXUZHONGSHEZHIYIZHENGXINGBIANLIANGSawVal,QIZHIBIANHUAFANWEIWEIO~N。555ZHENDANGDIANLUCHANSHENGDEWAIBUJISHUSHIZHONGXINHAOSHURUDAOAT89C2051DEINTOJIAO。MEIDANGZAIWAIBUJISHUSHIZHONGMOCHONGDEXIAJIANGYAN,DANPIANJICHANSHENGWAIBUZHONGDUAN,ZHIXINGWAIBUZHONGDUANINT0DEZHONGDUANFUWUCHENGXU。MEICHANSHENGYICIWAIBUZHONGDUAN,DUISawValZHIXINGYICIJIA1CAOZUO,RUOSawValYIDADAOZUIDAZHIN,ZEDUISawValQINGO。SawValZHIDEBIANHUAGUILVXIANGDANGYUJUCHIBO,RUTU5SUOSHI。RUOZAIDANPIANJICHENGXUZHONGSHEZHILINGYIZHENGXINGBIANLIANGDutyVal,QIZHIDEBIANHUAFANWEIWEI O~N。MEIDANGZAISawValQING0SHI,DulyValCONGSHANGWEIJIFASONGDEKONGZHIMINGLINGZHONGDURUMOCHONGKUANDUXISHUZHI,LIRUWEIH(0≤H≤N)。RUO DutyVal≥SawVal,ZEDUIYINGDUANKOUSHUCHUGAODIANPING;RUODutyVal《Sawval,ZEDUIYINGDUANKOUSHUCHUDIDIANPING。CONGTU5ZHONGKEKANCHU,RUOGAIBIAN DutyValDEZHI,ZEDUIYINGDUANKOUSHUCHUMOCHONGDEKUANDUFASHENGBIANHUA,DANSHUCHUMOCHONGDEPINLVBUBIAN,CIJIWEIPWMBOXING。

JIEMIDANPIANJICHENGXUREXIAN:0755-29558766  13418519739  QQ:905156827  LINGONG