跳到主要內容

發表文章

XIDE Merge's hex files

  boot_q84.X.production.hex (不含APP,等待boot燒錄) boot_q84.X.production.unified.hex(內含APP,執行APP)
最近的文章

XIDE 修改Progeam Memory

  使用第1行編譯 無法 修改program memory(hex檔可燒錄) 使用第2行編譯 可以 修改program memory(elf檔無法燒錄)

VScode-json-debug&compiler

  {     // Use IntelliSense to learn about possible attributes.     // Hover to view descriptions of existing attributes.     // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387     "version" : "0.2.0" ,     "configurations" : [         {             // Note: Properties here can override MPLAB project settings             "name" : "Debug" ,             "type" : "mplab-core-da" ,             "request" : "launch" ,             "project" : "My_Project" ,             "configuration" : "default" ,             "stopOnEntry" : true ,         },         {             "name" : "Program" ,         ...

MPLAB-AI 程式加中文註解

1.將程式圈選起來. 2.CTRL + I 3.AI命令:add Traditional Chinese comment using // 4.結果正確:Accept

microchip CAN 注意事項

  //1.STBY=0; (TX/RX) //2.filter ON but all pass.(RX) ,必須設定資料才能進來.               EID 需加 'x'               example: 0x0AF81111x                 filter 設定 (收什麼ID)                mask 設定  (遮罩)

mplab x IDE 完整刪除

  一般來說重新安裝應該可以解決問題,有可能是刪除過程不完整導致,可以嘗試移除MPLAB X IDE後備份並刪除以下相對於目前使用版本的文件,再重新安裝。 C:\Program Files\Microchip %USERPROFILE%\.mcc %USERPROFILE%\.mchp_packs %USERPROFILE%\.mplab %USERPROFILE%\.mplab_scripts %USERPROFILE%\.mplabcomm %USERPROFILE%\AppData\Local\mplab_ide %USERPROFILE%\AppData\Roaming\mplab_ide

MCC LIN 接收不穩的修正

 LIN baudrate 10417 bps 資料8byte 封包傳送時間 12.5ms timeout 時間=封包傳送時間  x1.5 = 20ms 此時發現會漏資料 收到0x55 腳位會變HI 收到完整資料 腳位變LO,下圖可以看出有時候2~3個波形腳位才會變化(表示資料接收不完整timeout) 原始程式碼 修改如下: 修正後接收狀況:(每一筆資料腳位都會HI/LO) MCC的程式沒有把timeout計時器清除 所以下一筆資料接收到一半時可能就發生timeout 簡單說就是timeout和資料不同步了.