• slider image 442
  • slider image 492
  • slider image 493
  • slider image 494
  • slider image 495
  • slider image 496
:::

論壇索引


Board index » All Posts




Re: [分享]ATSAME51J20A_Curiosity_Nano學習記事--未完成
版主
版主


張兄,

感謝您的經驗分享!

發表於: 2021/1/12 11:15
頂部


Re: dspic33ck128MP505 capture頻率
版主
版主


還有,如果 PWM 是使用傳統 MCCP 的 PWM Module,這 PWM 的解析度只到 14-bit 。但 Catptue 的解析度基本就是 16-bit 的標配。
如此問題來了? 你如如何將 16-bit 的 Capture 值田給 14-bit 的 PWM? 輸入如是高頻應該沒問題,但是低頻時就會出現問題。

發表於: 2021/1/12 11:12
頂部


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


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
頂部


[分享]ATSAME51J20A_Curiosity_Nano學習記事--未完成
資深會員
資深會員


去年年底看到Curiosity_Nano跟APP-Nano-BASE-TW Nano Board 實驗底板,想說ATSAM終於有個覺得"感覺對了"底板,上週到現在使用,參考了eRTC做了第一個案例後,開始把上面周邊啟用一下,不過查資料的過程中有點混亂。滿多資料pilb跟core driver有混用或相互參照,這樣在使用直覺上會不好。

我的習慣是先搞懂Plib,然後再用Core Driver,因為那個會啟動FreeRTOS,代碼層較多,不利初期學習。而且大多數應用使用Timer event驅動協作就可以解決。所以練習的過程中順便將歷程寫下來,提供給其他使用的朋友參考。

我的模組是用ATSAME51J20A,對於其他模組,就是模組對底板的腳位要自己對應一下,Harmony v3設定起來應該不會差太多。

檔案太大放不上來,提供google driver連結。

檔案下載點

發表於: 2021/1/11 14:54
不要問我哪裡來,我只是個流浪天涯的工程師
頂部


歡迎報名參加 eRTC: ePOW001 數位功率因數校正設計與問題探討 (2021/02/02)
版主
版主


按此報名:
https://microchip.webex.com/mw3300/myw ... 3Dfalse&siteurl=microchip

主題:ePOW001 數位功率因數校正設計與問題探討

日期/時間:Feb 3rd / 10:00am~12:00pm

主題內容摘要:
主題內容摘要:
此課程主要教學PFC基礎原理概念與設計技巧,並分享PFC控制上的關鍵問題。
Microchip將電源區分為類比/混合式數位/全數位電源三類,本課內容分享混合式數位電源與全數位電源兩種方式,兩種皆可完成不同的PFC應用。
另外本課內容著重於原理解釋與設計重點分享,動手實驗將規劃於下一門課,敬請期待。
此課程以原理與問題為探討主軸,因此對於類比與數位工程師都是相當適合入門的課程。
課程綱要:
• Power Factor and its Significance
• How to Achieve Power Factor Correction
• Overview of Different Boost Type PFC Designs
• Digital PFC Using the dsPIC® DSC
• Digital PFC Using the CIP PICs
• Advanced PFC Techniques
• Microchip Digital Power Solutions

報名注意事項:

1. 上課時間:2/3 10:00am~12:00pm
2. 人數上限:250人 (達上限將自動關閉報名系統)
3. 報名截止日:2/1 (之後將自動關閉報名系統)
4. 報名資訊使用中文即可,但請詳細填寫以方便快速審核,反之將退件。
5. 採人工審核,可能需要1~2天後才會收到確認通知eMail,謝謝耐心等候。
6. 無論報名成功與否,系統都會自動發信告知進度,若沒有收到e-mail,很可能e-mail填寫錯誤,會無法參與培訓。

發表於: 2021/1/11 12:26
頂部


Re: CAE 空中教室 - 1/13 日周三下午兩點線上直播 : mTouch CVD 觸控感測的原理 (主講人 : Ryang)
版主
版主


拉一下,請有興趣的網友儘快報名。

發表於: 2021/1/11 12:20
頂部


Re: dspic33ck128MP505 capture頻率
版主
版主


理論上是可以算出 PWM 與 Capture 的值,但因不易觀測真正的數值是否與計算出的數值有差異? 而且實際的硬體是否可達到所要求的效能,這有時是會陷入一個模糊地帶的。

建議先將這兩的模組分開來測試。可以用 printf( ) 的函數將所要即時觀測的資料用 UART 送出來 (一般是送給一個 UART to USB 的裝置給終端機來顯示) 或也可以送給 LCD 模組做述職的顯示。也可以送到一個 8-bit PORT 輸出到 LED 上顯示。總之,就是要有一個可以即時觀察變數的即時顯示器是最好的。再不然你就需要使用 PK3 之類的開發工具在 Debug Mode 下在適當的地方設定斷點來觀測其數值。

建議先單獨檢查一下 Capture 可以抓到的範圍實際是多少,如果輸入的測量頻率超過 50KHz 時是否可以考慮啟用 Capture 的 Prescaler (1/1, 1/4, 1/16) 將輸入頻率做降頻使用 16-bit 計數模式,並用一個旗號設定預除器的使用及降頻的倍率。我們必須先確定所使用的 Capture 所能抓取的頻率範圍後再去送給 PWM。

dspic33ck128MP505 的 PWM 有兩種,一為高速 Moter 或 Digital Power 用的超高速 PWM (250pS 解析度) 或是使用傳統的 MCCP/SCCP 模組的 PWM。

發表於: 2021/1/11 11:36
頂部


當課程開始時, 會場入口還未開放
管理員
管理員


當課程開始時,
如果 會場入口 顯示為 "會場尚未開放" 時!

請在瀏覽器的活動頁面,
[Ctrl] + [F5]
以刷新您瀏覽器的內容!
感謝支持本活動!

發表於: 2021/1/11 9:23
頂部


Re: dspic33ck128MP505 capture頻率
管理員
管理員


MCU:dsPIC33CK256MP506
將PWM1時脈:100MHz、PWM1頻率:100K
送進去Input Capture時脈:100MHz
透過UART傳輸資料出來
Capture捕捉到1000

Attach file:


Link only for registered users

發表於: 2021/1/8 16:54
頂部


Re: USB5807C_7使用問題
版主
版主


與該產品的 FAE 詢問後,FAE 有些問題如下紅色的標示:

請教一下USB5807C_7使用問題
我司在digikey購買了USB5807C_7,
搭配PIC16F1937使用SMBUS與USB5807C_7進行交握,

HH : 敬請提供您USB5807C相關的線路圖,您所用的SM Bus的時鐘頻率是多少呢?

如下圖選擇紅色線段路徑的流程,
在SMBUS只修改了USB 2.0的PID,

HH : 敬請提供您的SM Bus 所下的指令或traffic log,以便瞭解您是否正確地修改到 USB 2.0的PID。

之後就給出USB Attach - AA55h : Exit Configuration Stage and Begin Enumeration
讓HUB程序往下跑,
結果HUB USB 2.0可以抓取到USB轉COM的裝置及滑鼠,有的隨身碟可以在PC上顯示抓到,有的隨身碟PC顯示沒顯示抓到裝置
而USB 3.0沒有作用!

HH : 請問您的作業系統和USB主控器各為何?

使用CATC擷取HUB端的通訊如下狀態圖,
HUB端的USB 3.0跑不起來!

HH : 以上所有的問題,若您用USB5807C內部自帶的設定而不用SM Bus去組態它,結果又是如何呢?

請問是不是要做什麼Config設定或是對Internal ROM燒code,
還是有其它程序要做?

HH : 請您先用USB5807C內部自帶的設定,確認硬體及應用線路沒問題,或您可以不用不用SM Bus去組態USB5807C,可以用Microchip MPLAB Connect Configurator (下載連結 : MPLAB® Connect Configurator v2.5.2)去修改USB 2.0的PID,看看是否問題是由於PID被修改造成的。

再請問台北有技術窗口可以支援我的問題嗎?

HH : 請問貴公司寶號,或平常MCU是與誰接觸的呢?

發表於: 2021/1/8 14:34
頂部



« 1 ... 201 202 203 (204) 205 206 207 ... 7525 »



:::

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... ]

教育訓練中心

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