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

論壇索引


Board index » All Posts (Ryang)




Re: 請問誰有以前的AN1175資料Source Data(pic16f690)?
版主
版主


透過 Google 的搜尋找到 AN1175 相關的 Source Code:
AN1175 - The purpose of this application note is to illustrate an elegant sensorless technique that can be implemented on low-cost microcontrollers. All demonstration software will operate within an open loop with no speed regulation.

https://www.microchip.com/wwwAppNotes/ ... tes.aspx?appnote=en534512

發表於: 2021/6/13 12:59
頂部


Re: (dsPIC33ck)EPC9149 1 kW LLC 1/8th Brick size Module
版主
版主


問過公司的數位電源專家,底下是 Edward Lee 的回覆:

Source code有的:
https://www.microchip.com/DevelopmentT ... uctDetails/PartNO/EPC9149

這個 demo 是跟 EPC 合作,主要文件都在 EPC 官網:
https://epc-co.com/epc/Products/DemoBoards/EPC9149.aspx

這個 demo 剛剛完成,不確定是否有計畫寫軟體說明文件,目前只有EPC9149 Quick Start Guide:
https://epc-co.com/epc/documents/guides/EPC9149_qsg.pdf

發表於: 2021/6/8 16:18
頂部


Re: (dsPIC33ck)EPC9149 1 kW LLC 1/8th Brick size Module
版主
版主


正詢問專家中...

發表於: 2021/6/8 11:14
頂部


Re: 請問有USB HID的 Bootloader Application嗎?
版主
版主


目前所提供的 Bootloader 裡沒有 HID Class 的方案。這裡之前的討論參考一下:

http://www.microchip.com.tw/modules/n ... wtopic.php?topic_id=23199

http://www.microchip.com.tw/modules/n ... ewtopic.php?post_id=81748

發表於: 2021/6/5 16:34
頂部


Re: 執行過程中,程式會自動暫停
版主
版主


沒想到是看門狗沒栓好。

前面所提供的 NMI 控制程式是一但發生 NMI 後程式直接跳到 NMI 中斷程式,這時就不知道程式跳到哪裡執行了? 只要按一下 Halt Icon 就可以知道程式是田在哪一個 NMI 裡的 while (1); 迴圈。

發表於: 2021/6/5 16:22
頂部


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


張兄,

太感謝您了。收下您的辛勞好好研讀一下。如有要協助請來電或 e-mail.

richard.yang@microchip.com

發表於: 2021/6/5 16:10
頂部


Re: 未用的I/O腳位要如何處理比較好(dsPIC33FJ)
版主
版主


沒用到的 I/O 腳,建議設成一般 I/O 功能後並設為輸出功能,該輸出最好是輸出Low 以避免外部的干擾。

輸出腳一般建議串聯 33 ~ 220 ohm,輸入腳串 1K ohm 作 ESD 保護。

還有很重要的是:沒用到的數位輸入腳不可以浮接,空在那裏很容易受靜電干擾產生誤動作或被擊穿。

發表於: 2021/6/3 13:37

Edited by Ryang on 2021年06月05日 20:54:17
頂部


Re: 執行過程中,程式會自動暫停
版主
版主


NMI 中斷是屬於系統嚴重的錯誤中斷,中斷層級從 Level 8 ~ Level 15。參考一下貼圖及底下 dsPIC30F 攔截 NMI 的程式。

/*********************************************************************
*                                                                    *
*                       Software License Agreement                   *
*                                                                    *
*   The software supplied herewith by Microchip Technology           *
*   Incorporated (the "Company") for its dsPIC controller            *
*   is intended and supplied to you, the Company's customer,         *
*   for use solely and exclusively on Microchip dsPIC                *
*   products. The software is owned by the Company and/or its        *
*   supplier, and is protected under applicable copyright laws. All  *
*   rights are reserved. Any use in violation of the foregoing       *
*   restrictions may subject the user to criminal sanctions under    *
*   applicable laws, as well as to civil liability for the breach of *
*   the terms and conditions of this license.                        *
*                                                                    *
*   THIS SOFTWARE IS PROVIDED IN AN "AS IS" CONDITION.  NO           *
*   WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING,    *
*   BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND    *
*   FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE     *
*   COMPANY SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL,  *
*   INCIDENTAL OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.  *
*                                                                    *
*********************************************************************/

/********************************************************************
*
*  Filename:   traps.c
*  Purpose:    Boilerplate file for handling traps.
*              If any trap is taken, the program will "dead lock"
*              in the trap handler.  The following traps are
*              covered (primary and alternate):
*                 OscillatorFail
*                 AddressError
*                 StackError
*                 MathError
*
*********************************************************************/

/* Header Files */
#include "p30fxxxx.h"

/* Function Prototypes */
void _ISR _OscillatorFail(void);
void _ISR _AddressError(void);
void _ISR _StackError(void);
void _ISR _MathError(void);
void _ISR _AltOscillatorFail(void);
void _ISR _AltAddressError(void);
void _ISR _AltStackError(void);
void _ISR _AltMathError(void);


/* ************************************************************** */
/* Standard Exception Vector handlers if ALTIVT = 0, INTCON2<15> */
/* ************************************************************** */

void _ISR _OscillatorFail(void)
{

    
INTCON1bits.OSCFAIL 0;
    while(
1);     
}

void _ISR _AddressError(void)
{

    
INTCON1bits.ADDRERR 0;
    while(
1);     
}

void _ISR _StackError(void)
{

    
INTCON1bits.STKERR 0;
    while(
1);     
}

void _ISR _MathError(void)
{

    
INTCON1bits.MATHERR 0;
    while(
1);     
}


/* ************************************************************** */
/* Alternate Exception Vector handlers if ALTIVT = 1, INTCON2<15> */
/* ************************************************************** */


void _ISR _AltOscillatorFail(void)
{

    
INTCON1bits.OSCFAIL 0;
    while(
1);     
}

void _ISR _AltAddressError(void)
{

    
INTCON1bits.ADDRERR 0;
    while(
1);     
}

void _ISR _AltStackError(void)
{

    
INTCON1bits.STKERR 0;
    while(
1);     
}

void _ISR _AltMathError(void)
{

    
INTCON1bits.MATHERR 0;
    while(
1);     
}

Attach file:



jpg  擷取.JPG (81.44 KB)
16_60b8693945d0d.jpg 737X564 px

發表於: 2021/6/3 13:31
頂部


Microchip CAE空中教室 2021/06/03(四) 持續開課
版主
版主


http://www.microchip.com.tw/modules/tadnews/page.php?ncsn=2&nsn=41

本周 2021/06/03(四) 課程時間如下:
課程一 3:00pm SAM2001系列-04 NVIC Architecture
課程二 4:00pm SAM2002系列-04 USB Device CDC Library

發表於: 2021/6/1 16:07
頂部


Re: dsp33fj gpio的input可以設定pull high或者pull low嗎?
版主
版主


如果腳位設定為一般的 I/O 功能的話:

如果是輸出腳功能,可以在初始時就規劃成是 HI 輸出或是 Low 輸出。
如果是輸入的話,如果該腳位沒有 Weak Pull-Up 功能就必須接外部的提升電阻或接地電阻。

發表於: 2021/6/1 16:02
頂部



« 1 ... 10 11 12 (13) 14 15 16 ... 1610 »



:::

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

教育訓練中心

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