XIDE 修改Progeam Memory 5月 04, 2026 使用第1行編譯 無法 修改program memory(hex檔可燒錄) 使用第2行編譯 可以 修改program memory(elf檔無法燒錄) 閱讀完整內容
VScode-json-debug&compiler 4月 21, 2026 { // 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 程式加中文註解 4月 13, 2026 1.將程式圈選起來. 2.CTRL + I 3.AI命令:add Traditional Chinese comment using // 4.結果正確:Accept 閱讀完整內容
microchip CAN 注意事項 4月 13, 2026 //1.STBY=0; (TX/RX) //2.filter ON but all pass.(RX) ,必須設定資料才能進來. EID 需加 'x' example: 0x0AF81111x filter 設定 (收什麼ID) mask 設定 (遮罩) 閱讀完整內容
mplab x IDE 完整刪除 3月 26, 2026 一般來說重新安裝應該可以解決問題,有可能是刪除過程不完整導致,可以嘗試移除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 接收不穩的修正 3月 12, 2026 LIN baudrate 10417 bps 資料8byte 封包傳送時間 12.5ms timeout 時間=封包傳送時間 x1.5 = 20ms 此時發現會漏資料 收到0x55 腳位會變HI 收到完整資料 腳位變LO,下圖可以看出有時候2~3個波形腳位才會變化(表示資料接收不完整timeout) 原始程式碼 修改如下: 修正後接收狀況:(每一筆資料腳位都會HI/LO) MCC的程式沒有把timeout計時器清除 所以下一筆資料接收到一半時可能就發生timeout 簡單說就是timeout和資料不同步了. 閱讀完整內容