<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

          EEPW首頁 > 模擬技術(shù) > 設(shè)計應(yīng)用 > 在應(yīng)用編程MAXQ微控制器中可分區(qū)擦除的程序和數(shù)

          在應(yīng)用編程MAXQ微控制器中可分區(qū)擦除的程序和數(shù)

          作者: 時間:2012-03-19 來源:網(wǎng)絡(luò) 收藏
          程來刷新MAXQ。該方法要求主程序拷貝一個小的、可再定位的閃存編程例程到RAM中,然后再跳轉(zhuǎn)到該例程。表7列出了從RAM中執(zhí)行代碼需要注意的幾個限制。

          表7. 從RAM中執(zhí)行代碼的限制

          SC.UPA must be set to 0 before executing a RAM-based routine. This means that the application must jump to the RAM routine from the code segments P0 P1.
          RAM cannot be accessed as data and program at the same time. This means that only the registers and hardware stack are available for data storage.
          The Interrupt Vector must point to a RAM routine if interrupts are enabled. Typically interrupts are turned off and polling is used due to the simplicity of the RAM reflash routine.

          閃存例程一般通過UART或者CAN接口來進(jìn)行通信。為實現(xiàn)更可靠的錯誤恢復(fù)機(jī)制,最好是接收小的數(shù)據(jù)包,并發(fā)送某種類型的確認(rèn)信息。圖6給出了一個更新例程。記住,在掉電之前,如果沒有成功完成重新編程,需要通過JTAG端口對重新編程。

          在應(yīng)用編程MAXQ微控制器中可分區(qū)擦除的程序和數(shù)
          圖6. 簡化的RAM更新例程流程圖


          上一頁 1 2 3 下一頁

          評論


          相關(guān)推薦

          技術(shù)專區(qū)

          關(guān)閉
          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();