• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
:::

論壇索引


Board index » All Posts (anthonyfu)




PWM setting using Harmony 3 configurator
#11
初級會員
初級會員


MCU:ATSAME51G18A
MPLABX v5.45
Harmony v3

參考SAM2001使用TCC1 來產生PWM波形,但在但在configuration options 的選項不同
我是使用pin #29(PA20) function 選TCC1_WO4,不清楚對應關係?

1. select output matrix該如何選
2.channel configuration只有channel 0-3該使用哪一個?
3.Pattern generation有8個該選那一個?
4.outputs有八個該如何選?
5.dead time是何意思?在PWM波形的哪一塊?

發表於: 2021/3/22 14:58
best regards,
Anthony
頂部


pickit3 breakpoint 停在錯誤位置
#12
初級會員
初級會員


breakpoint 會停在所設定的位置的下一行,不會停在設定位置


MPLABX v5.45
PICKIT3
PIC18F2685

ps. PICKIT4 也一樣
PIC18F26K80也一樣

發表於: 2021/3/5 13:18
best regards,
Anthony
頂部


Re: can wake up
#13
初級會員
初級會員


請問用CAN wake up 進入sleep mode的MCU(如pic18f2685)有sample code or app note參考?
需要進入及出來相關的程序

發表於: 2021/3/3 10:42
best regards,
Anthony
頂部


Re: pickit4 can not halt after debugging the project to run
#14
初級會員
初級會員


試過MPLABX v5.40, v5.45

如何更新PK4 firmware?

發表於: 2021/1/25 12:48
best regards,
Anthony
頂部


pickit4 can not halt after debugging the project to run
#15
初級會員
初級會員


pickit4
mcu:pic18f26k80
在debugging the project且running, press pause to halt the execution but display the error messange as below:
但是改用pickit3則沒問題



Halting...
Target Halted
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.

Unable to run the target device.
Script GetPC failed with status Type = runScript, Script name = GetPC, Status = 0xa00
.


*****************************************************



Resetting...
Reset complete
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.
A communication error with the debug tool has occurred. The tool will attempt to recover momentarily.

發表於: 2021/1/23 17:44
best regards,
Anthony
頂部


can wake up
#16
初級會員
初級會員


MCU: PIC18F2685

1. 請問有使用CAN bus wake up MCU from sleep的sample code?
2. 請問clrwdt()後要怎樣enable watch dog timer?

發表於: 2021/1/14 13:33
best regards,
Anthony
頂部


Re: PICkit4 not ready for debugging
#17
初級會員
初級會員


WDT off, OSC 設成IRCIO67, or IRCIO7
都顯示同樣的訊息


試過另一片板子顯示

Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Targe

MCU PIC18F2685是否這棵較不容易連PICKIT4?
有照data sheet建議調整MCLR pull up,試過33K, 10K

是否有其他建議?

發表於: 2021/1/13 16:27
best regards,
Anthony
頂部


PICkit4 not ready for debugging
#18
初級會員
初級會員


device:PIC18F2685

config bits:
Address Name Value Field Option Category Setting
300001 CONFIG1H 86 OSC HSPLL Oscillator Selection bits HS oscillator, PLL enabled (Clock Frequency = 4 x FOSC1)
FCMEN OFF Fail-Safe Clock Monitor Enable bit Fail-Safe Clock Monitor disabled
IESO ON Internal/External Oscillator Switchover bit Oscillator Switchover mode enabled
300002 CONFIG2L 1E PWRT ON Power-up Timer Enable bit PWRT enabled
BOREN BOHW Brown-out Reset Enable bits Brown-out Reset enabled in hardware only (SBOREN is disabled)
BORV 3 Brown-out Reset Voltage bits VBOR set to 2.1V
300003 CONFIG2H 06 WDT OFF Watchdog Timer Enable bit WDT disabled (control is placed on the SWDTEN bit)
WDTPS 8 Watchdog Timer Postscale Select bits 1:8
300005 CONFIG3H 84 PBADEN OFF PORTB A/D Enable bit PORTB<4:0> pins are configured as digital I/O on Reset
LPT1OSC ON Low-Power Timer 1 Oscillator Enable bit Timer1 configured for low-power operation
MCLRE ON MCLR Pin Enable bit MCLR pin enabled; RE3 input pin disabled
300006 CONFIG4L C1 STVREN ON Stack Full/Underflow Reset Enable bit Stack full/underflow will cause Reset
LVP OFF Single-Supply ICSP Enable bit Single-Supply ICSP disabled
BBSIZ 1024 Boot Block Size Select bits 1K words (2K bytes) Boot Block
XINST ON Extended Instruction Set Enable bit Instruction set extension and Indexed Addressing mode enabled
300008 CONFIG5L 3F CP0 OFF Code Protection bit Block 0 (000800-003FFFh) not code-protected
CP1 OFF Code Protection bit Block 1 (004000-007FFFh) not code-protected
CP2 OFF Code Protection bit Block 2 (008000-00BFFFh) not code-protected
CP3 OFF Code Protection bit Block 3 (00C000-00FFFFh) not code-protected
CP4 OFF Code Protection bit Block 4 (010000-013FFFh) not code-protected
CP5 OFF Code Protection bit Block 5 (014000-017FFFh) not code-protected
300009 CONFIG5H C0 CPB OFF Boot Block Code Protection bit Boot block (000000-0007FFh) not code-protected
CPD OFF Data EEPROM Code Protection bit Data EEPROM not code-protected
30000A CONFIG6L 3F WRT0 OFF Write Protection bit Block 0 (000800-003FFFh) not write-protected
WRT1 OFF Write Protection bit Block 1 (004000-007FFFh) not write-protected
WRT2 OFF Write Protection bit Block 2 (008000-00BFFFh) not write-protected
WRT3 OFF Write Protection bit Block 3 (00C000-00FFFFh) not write-protected
WRT4 OFF Write Protection bit Block 4 (010000-013FFFh) not write-protected
WRT5 OFF Write Protection bit Block 5 (014000-017FFFh) not write-protected
30000B CONFIG6H E0 WRTC OFF Configuration Register Write Protection bit Configuration registers (300000-3000FFh) not write-protected
WRTB OFF Boot Block Write Protection bit Boot block (000000-0007FFh) not write-protected
WRTD OFF Data EEPROM Write Protection bit Data EEPROM not write-protected
30000C CONFIG7L 3F EBTR0 OFF Table Read Protection bit Block 0 (000800-003FFFh) not protected from table reads executed in other blocks
EBTR1 OFF Table Read Protection bit Block 1 (004000-007FFFh) not protected from table reads executed in other blocks
EBTR2 OFF Table Read Protection bit Block 2 (008000-00BFFFh) not protected from table reads executed in other blocks
EBTR3 OFF Table Read Protection bit Block 3 (00C000-00FFFFh) not protected from table reads executed in other blocks
EBTR4 OFF Table Read Protection bit Block 4 (010000-013FFFh) not protected from table reads executed in other blocks
EBTR5 OFF Table Read Protection bit Block 5 (014000-017FFFh) not protected from table reads executed in other blocks
30000D CONFIG7H 40 EBTRB OFF Boot Block Table Read Protection bit Boot block (000000-0007FFh) not protected from table reads executed in other blocks





*****************************************************



Calculating memory ranges for operation...

Erasing...

The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x35bf
program memory: start address = 0x41c0, end address = 0x49ff
program memory: start address = 0x5000, end address = 0xac3f
program memory: start address = 0xafc0, end address = 0xafff
configuration memory

Script GetVersionDE failed with status Type = runScript, Script name = GetVersionDE, Status = 0xa00
.
The target device is not ready for debugging. Please check your configuration bit settings and program the device before proceeding. The most common causes for this failure are oscillator and/or PGC/PGD settings.

發表於: 2021/1/11 17:07
best regards,
Anthony
頂部


DEVICE IS NOT SUPPORTED BY CURRENTLY LOADED LIBRARY
#19
初級會員
初級會員


DEVICE :ATSAME51N19A
以下載網站上所有的LIBRARY,仍然錯誤:

MCC ERROR MSG:

15:46:44.867 資訊: Fetching list of available libraries.
15:46:53.620 資訊: Download Complete: C:\Users\User\.mcc\mcc_libraries.xml
15:46:54.229 INFO: Start MCC
15:46:54.309 INFO: Core v5.0.2 loaded.
15:46:54.326 INFO: Libraries defined in the configuration:
15:46:58.931 WARNING: The project's device is not supported by the currently loaded libraries. All library versions are available for download on the MCC website. www.microchip.com/mcc
15:46:58.972 INFO: Stop MCC
15:46:58.972 INFO: Core v5.0.2 unloaded.

發表於: 2021/1/4 15:51
best regards,
Anthony
頂部


Re: MCC error
#20
初級會員
初級會員


是要下載哪個版本的device library? or peripheral library?

發表於: 2020/12/24 13:54
best regards,
Anthony
頂部



« 1 (2) 3 4 »



:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------