20200204

ope体育用户app作者:ope体育用户app 发布时间:2020-02-17 已浏览: 63次

ope体育用户app嫻風繑寰數瀛愮鎶€鏈夐檺鍏徃涓烘偍鍏嶈垂鎻愪緵婀栧寳嫻峰皵鍗曠墖鏈/a>,婀栧寳鏉劇堪鍗曠墖鏈婀栧寳涓滆蔣鍗曠墖鏈灝煎厠媯甅OS綆$瓑鐩稿叧淇℃伅鍙戝竷鍜岃祫璁睍紺猴紝鏁鍏蟲敞錛/p>嫻風繑寰甫浣犲叏闈簡瑙d粈涔堟槸鍗曠墖鏈猴紙鍥涳級錛/p>Watchdog(鐪嬮棬鐙楀畾鏃跺櫒)錛歐atchdog閮芥槸緇濆ぇ閮ㄥ垎MCU鐨勪竴縐嶅熀紜€閰嶅(涓€浜浣峂CU灝嗕細娌掓湁姝や綔鐢錛屽ぇ閮ㄥ垎鐨凪CU鐨刉atchdog鍙湁瀹硅紼嬪簭嫻佺▼榪涜鏍″噯鑰屼笉鍙互瀵瑰叾鍏蟲帀(鏈変簺鏄湪紼嬪簭嫻佺▼鐑у叆鏃舵潵璁劇疆鐨勶紝濡侻icrochipPIC緋誨垪浜у搧MCU)錛岀劧鑰屾湁鐨凪CU鍒欐槸鏍規嵁鐗規畩鐨勬柟娉曟潵鍐崇瓥鍏舵槸涓嶆槸寮€鍚紝濡係amsung鐨凨S57緋誨垪浜у搧錛岃鏄▼搴忔祦紼嬫祻瑙堜簡Watchdog瀵勫瓨鍣紝灝卞叏鑷姩鎵撳紑涓斾笉鍙互鍐嶈鍏蟲帀銆備竴鑸€岃█watchdog鐨勬牎鍑嗘椂闂磋兘澶紼嬪簭嫻佺▼鏉ヨ緗殑銆俉atchdog鐨勫熀紜€鐨勮繍鐢ㄦ槸涓篗CU鐢變簬鍑虹幇鎰忓鐨勫父瑙佹晠闅滆€岄€犳垚鍗℃鍑虹ず浜嗕竴縐嶈嚜韜慨澶嶇殑宸ヤ綔鑳藉姏銆/p>MCU紼嬪簭嫻佺▼鐨勬挵鍐/p>MCU鐨勭▼搴忔祦紼嬬殑鎾板啓涓嶱C涓嬬殑紼嬪簭嫻佺▼鐨勬挵鍐欏瓨鏈夋尯澶х殑宸埆錛屽敖綆″浠婃牴鎹瓹鐨凪CU寮€鍙戠幆澧冩剤鏉ユ剤鏃跺叴錛屼絾閽堝涓€涓珮鏁堢巼鐨勭紪紼嬩唬鐮佸拰鍠滅埍搴旂敤閫夌紪鐨勮璁″笀鑰岃█錛屾眹緙栬璦€渚濈劧鏄畝綰︺€佸悎鐞嗙殑璁$畻鏈鴻璦€銆傞拡瀵筂CU鐨勭▼搴忕紪紼嬶紝鍏跺熀紜€鐨勬灦鏋勮兘澶璇存垚澶т綋涓€鑷寸殑錛屼竴鑸垎鎴愬浣嶄竴閮ㄥ垎(瀹冩槸MCU緙栫▼璁捐涓嶱C澶х殑涓嶄竴鏍錛屽瓙紼嬪簭寰幆浣撳拰緇堟柇紼嬪簭澶勭悊涓夌粷澶у鏁幫紝鍏跺悇鑷〃鏄庝互涓嬶細澶嶄綅錛氶拡瀵瑰叏閮ㄧ殑MCU紼嬪簭嫻佺▼鐨勮璁℃柟妗堣€岃█錛屽嚭鐢熸槸鍩虹閮芥槸鍏抽敭鐨勪竴姝ワ紝涓€鑸寘鍚互涓嬪収瀹癸細灞忚斀鎺夊叏閮ㄧ粓鏂茍澶嶄綅鍫嗘爤鎸囬拡錛氬浣嶄竴閮ㄥ垎涓€鑸笉鏈熸湜鏈変竴鍒囩粓鏂駭鐢娑堥櫎緋葷粺杞歡鐨凴AM鍦板尯鍜屾樉紺轟俊鎭疢emory錛氬敖綆℃湁鏃跺€欏皢浼氭矑鏈夊交搴曠殑蹇呴渶錛屼絾浠庡彲淇℃€у強涓€鑷存€х殑瑙嗚鏉ョ湅錛岄潪甯告槸閽堝閬垮厤鍑虹幇鎰忓鐨勪笉姝g‘錛岄倓鏄彁璁煿鍏諱紭鑹殑紼嬪簭緙栧啓涔犳儻鎬IO鍙g殑澶嶄綅錛氫緷鎹柊欏圭洰鐨勮繍鐢ㄧ殑瑙勫畾錛岃緗湁鍏矷O鍙g殑I/O鏂規硶錛屽涓庨敭鍏ュ彛錛屽繀欏昏緗叾涓婃媺鎴栦笅鎷夎彍鍗曠數闃誨櫒;閽堝杓稿嚭鍙o紝鍒欏姟蹇呰緗叾鍑虹敓鐨勭數騫寵幾鍑猴紝闃叉鍑虹従澶氫綑鐨勪笉姝g‘;緇堟柇鐨勮瀹氾細閽堝鍏ㄩ儴鏂伴」鐩繀欏婚噰鐢ㄧ殑緇堟柇婧愶紝搴斿綋緇欎笌鎵撳紑騫惰緗粓鏂殑寮€鍚爣鍑嗭紝鑰岄拡瀵逛笉搴旂敤鐨勪笉蹇呰鐨勭粓鏂紝鍒欏姟蹇呯粰涓庡叧鎺鍒殑紼嬪簭妯″潡鐨勫浣嶏細閽堝鍏ㄩ儴蹇呴』閲囩敤鐨凪CU鐨勫鍦虹▼搴忔ā鍧楋紝鍔″繀鎸夋柊欏圭洰鐨勮繍鐢ㄧ殑瑙勫畾寮€灞曠浉瀵圭殑璁懼畾錛屽UART鐨勯€氫俊錛屽繀欏昏緗瓸audRate錛屾暟鎹俊鎭暱鐭紝鏍℃鏂規硶鍜孲topBit鐨勯暱鐭瓑錛岃€岄拡瀵筆rogrammerTimer錛屽垯鍔″繀璁懼畾鍏墮挓琛ㄦ簮錛屽垎棰戞暟鍙奟eloadData絳涓昏鍙傛暟鐨勫嚭鐢熷寲錛氳繘琛屼簡MCU鐨勭‖浠墮厤緗拰璩囨簮鐨勫嚭鐢熷寲鍚庯紝鎺ヤ笅鍘誨氨鏄瀵圭▼搴忔祦紼嬩腑搴旂敤鍒扮殑涓€浜涜嚜鍙橀噺鍜屾暟鎹俊鎭殑澶嶄綅璁懼畾錛岃繖涓€閮ㄥ垎鐨勫浣嶅繀欏諱緷鎹疄闄呯殑鏂伴」鐩強紼嬪簭嫻佺▼鐨勬暣浣撳垎閰嶈璁″埗浣溿€傞拡瀵逛竴浜涚敤EEPROM鏉ュ偍瀛樻柊欏圭洰棰勫埗鏋勪歡鏁扮殑榪愮敤鑰岃█錛屾彁璁湪澶嶄綅鏃跺皢鏈夊叧鐨勬暟鎹俊鎭嫹鍒癕CU鐨凴AM錛屼互鎻愬崌紼嬪簭嫻佺▼瀵規暟鎹俊鎭殑緗戠珯鎵撳紑閫熷害錛屽彟澶栧噺灝戠郴緇熻蔣浠剁殑鍔熺巼(姝e父鎯呭喌涓嬶紝嫻忚澶栫晫EEPROM閮芥槸鎻愬崌寮€鍏崇數婧愮殑鍔熺巼)銆/p>嫻風繑寰數瀛愮鎶€鏈夐檺鍏徃涓撲笟鎻愪緵婀栧寳嫻峰皵鍗曠墖鏈婀栧寳鏉劇堪鍗曠墖鏈婀栧寳涓滆蔣鍗曠墖鏈MOS綆鍙帶紜呯瓑浜у搧錛屾搗緲斿井鐢靛瓙浜у搧綰塊兘澶囨湁澶ч噺搴撳瓨鐜拌揣錛屾墍鏈変駭鍝佷繚璇佸潎鏄師瑁呮鍝佺幆淇濓紝騫舵彁渚涜澶氬崟鐗囨満搴旂敤鏂規錛屾榪庢潵鐢靛挩璇紒

Watchdog(鐪嬮棬鐙楀畾鏃跺櫒)錛歐atchdog閮芥槸緇濆ぇ閮ㄥ垎MCU鐨勪竴縐嶅熀紜€閰嶅(涓€浜浣峂CU灝嗕細娌掓湁姝や綔鐢錛屽ぇ閮ㄥ垎鐨凪CU鐨刉atchdog鍙湁瀹硅紼嬪簭嫻佺▼榪涜鏍″噯鑰屼笉鍙互瀵瑰叾鍏蟲帀(鏈変簺鏄湪紼嬪簭嫻佺▼鐑у叆鏃舵潵璁劇疆鐨勶紝濡侻icrochipPIC緋誨垪浜у搧MCU)錛岀劧鑰屾湁鐨凪CU鍒欐槸鏍規嵁鐗規畩鐨勬柟娉曟潵鍐崇瓥鍏舵槸涓嶆槸寮€鍚紝濡係amsung鐨凨S57緋誨垪浜у搧錛岃鏄▼搴忔祦紼嬫祻瑙堜簡Watchdog瀵勫瓨鍣紝灝卞叏鑷姩鎵撳紑涓斾笉鍙互鍐嶈鍏蟲帀銆備竴鑸€岃█watchdog鐨勬牎鍑嗘椂闂磋兘澶紼嬪簭嫻佺▼鏉ヨ緗殑銆俉atchdog鐨勫熀紜€鐨勮繍鐢ㄦ槸涓篗CU鐢變簬鍑虹幇鎰忓鐨勫父瑙佹晠闅滆€岄€犳垚鍗℃鍑虹ず浜嗕竴縐嶈嚜韜慨澶嶇殑宸ヤ綔鑳藉姏銆/p>

MCU鐨勭▼搴忔祦紼嬬殑鎾板啓涓嶱C涓嬬殑紼嬪簭嫻佺▼鐨勬挵鍐欏瓨鏈夋尯澶х殑宸埆錛屽敖綆″浠婃牴鎹瓹鐨凪CU寮€鍙戠幆澧冩剤鏉ユ剤鏃跺叴錛屼絾閽堝涓€涓珮鏁堢巼鐨勭紪紼嬩唬鐮佸拰鍠滅埍搴旂敤閫夌紪鐨勮璁″笀鑰岃█錛屾眹緙栬璦€渚濈劧鏄畝綰︺€佸悎鐞嗙殑璁$畻鏈鴻璦€銆傞拡瀵筂CU鐨勭▼搴忕紪紼嬶紝鍏跺熀紜€鐨勬灦鏋勮兘澶璇存垚澶т綋涓€鑷寸殑錛屼竴鑸垎鎴愬浣嶄竴閮ㄥ垎(瀹冩槸MCU緙栫▼璁捐涓嶱C澶х殑涓嶄竴鏍錛屽瓙紼嬪簭寰幆浣撳拰緇堟柇紼嬪簭澶勭悊涓夌粷澶у鏁幫紝鍏跺悇鑷〃鏄庝互涓嬶細

娑堥櫎緋葷粺杞歡鐨凴AM鍦板尯鍜屾樉紺轟俊鎭疢emory錛氬敖綆℃湁鏃跺€欏皢浼氭矑鏈夊交搴曠殑蹇呴渶錛屼絾浠庡彲淇℃€у強涓€鑷存€х殑瑙嗚鏉ョ湅錛岄潪甯告槸閽堝閬垮厤鍑虹幇鎰忓鐨勪笉姝g‘錛岄倓鏄彁璁煿鍏諱紭鑹殑紼嬪簭緙栧啓涔犳儻鎬

IO鍙g殑澶嶄綅錛氫緷鎹柊欏圭洰鐨勮繍鐢ㄧ殑瑙勫畾錛岃緗湁鍏矷O鍙g殑I/O鏂規硶錛屽涓庨敭鍏ュ彛錛屽繀欏昏緗叾涓婃媺鎴栦笅鎷夎彍鍗曠數闃誨櫒;閽堝杓稿嚭鍙o紝鍒欏姟蹇呰緗叾鍑虹敓鐨勭數騫寵幾鍑猴紝闃叉鍑虹従澶氫綑鐨勪笉姝g‘;

鍒殑紼嬪簭妯″潡鐨勫浣嶏細閽堝鍏ㄩ儴蹇呴』閲囩敤鐨凪CU鐨勫鍦虹▼搴忔ā鍧楋紝鍔″繀鎸夋柊欏圭洰鐨勮繍鐢ㄧ殑瑙勫畾寮€灞曠浉瀵圭殑璁懼畾錛屽UART鐨勯€氫俊錛屽繀欏昏緗瓸audRate錛屾暟鎹俊鎭暱鐭紝鏍℃鏂規硶鍜孲topBit鐨勯暱鐭瓑錛岃€岄拡瀵筆rogrammerTimer錛屽垯鍔″繀璁懼畾鍏墮挓琛ㄦ簮錛屽垎棰戞暟鍙奟eloadData絳

涓昏鍙傛暟鐨勫嚭鐢熷寲錛氳繘琛屼簡MCU鐨勭‖浠墮厤緗拰璩囨簮鐨勫嚭鐢熷寲鍚庯紝鎺ヤ笅鍘誨氨鏄瀵圭▼搴忔祦紼嬩腑搴旂敤鍒扮殑涓€浜涜嚜鍙橀噺鍜屾暟鎹俊鎭殑澶嶄綅璁懼畾錛岃繖涓€閮ㄥ垎鐨勫浣嶅繀欏諱緷鎹疄闄呯殑鏂伴」鐩強紼嬪簭嫻佺▼鐨勬暣浣撳垎閰嶈璁″埗浣溿€傞拡瀵逛竴浜涚敤EEPROM鏉ュ偍瀛樻柊欏圭洰棰勫埗鏋勪歡鏁扮殑榪愮敤鑰岃█錛屾彁璁湪澶嶄綅鏃跺皢鏈夊叧鐨勬暟鎹俊鎭嫹鍒癕CU鐨凴AM錛屼互鎻愬崌紼嬪簭嫻佺▼瀵規暟鎹俊鎭殑緗戠珯鎵撳紑閫熷害錛屽彟澶栧噺灝戠郴緇熻蔣浠剁殑鍔熺巼(姝e父鎯呭喌涓嬶紝嫻忚澶栫晫EEPROM閮芥槸鎻愬崌寮€鍏崇數婧愮殑鍔熺巼)銆/p>

嫻風繑寰數瀛愮鎶€鏈夐檺鍏徃涓撲笟鎻愪緵婀栧寳嫻峰皵鍗曠墖鏈婀栧寳鏉劇堪鍗曠墖鏈婀栧寳涓滆蔣鍗曠墖鏈MOS綆鍙帶紜呯瓑浜у搧錛屾搗緲斿井鐢靛瓙浜у搧綰塊兘澶囨湁澶ч噺搴撳瓨鐜拌揣錛屾墍鏈変駭鍝佷繚璇佸潎鏄師瑁呮鍝佺幆淇濓紝騫舵彁渚涜澶氬崟鐗囨満搴旂敤鏂規錛屾榪庢潵鐢靛挩璇紒