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

論壇索引


Board index » All Posts (Ryang)




Re: RN4871U Flash update 版本異常
#71
版主
版主


我請 AE 看一下這問題,請稍待一下。

發表於: 2021/8/13 11:57
頂部


Re: pic24fj256gb110 c30 bootloader configuration bit
#72
版主
版主


如果是 PIC18F 系列的話,我會說不行。PIC18F 只使用 Bootloader Configuration Bits 的設定。

但 PIC24 等 16-bit MCU 因為有 OSC Hot Change 的功能。我找一下專業的工程師來回答這個問題。請稍待。

發表於: 2021/8/13 11:55
頂部


Re: use mplabx ide interrupt subroutine for pic18f57k42
#73
版主
版主


PIC18FxxK22 跟一般的PIC18F 一樣有高優先權及低優先權中斷兩個。

使用方式沒有改變,如果使用 XC8 及 MCC 的話可以參考底下的教育訓練裡的說明:

教育訓練光碟下 --> 8-Bits MCU 相關課程 :
PIC101 X IDE & MCC & XC8 基礎課程
XC8T v1.0

發表於: 2021/8/11 12:28
頂部


Re: ADC conversion and EUSART
#74
版主
版主


看起來這是 ADC 受店員雜訊的干擾所致,請查看一下電源上的雜訊。
電源如果沒有處理得很好一般有個 50mV 的雜訊在上面。如果串進了 ADC 就會干擾到 ADC 的轉換精度。
(50mV/5Vdd) x 1024 = 10 digital = 3 Lsb bit 的影響,這時就會有三個最低位元在跳動著。解決的方法是:

1. 取平均值,例如: ADC 累計 16 次的轉換後在右移 4 位元 (除以 16)
2. 在睡眠模式下使用 Internal ADC RC 震盪來源做轉換,轉換完畢 ADC 產生中斷叫醒 MCU。

發表於: 2021/8/6 12:12
頂部


Re: dsp33fj UART RX中斷後RESET
#75
版主
版主


可以的,一個結構型態或共用型態的宣告內,也可含有其它的共用型態或結構型態。

範例:
union FPvar
{
   
float FPNum;            //floating point access
   
struct
   
{
      
unsigned char Arg0;        //argument byte 0 access
      
unsigned char Arg1;        //argument byte 1 access
      
unsigned char Arg2;        //argument byte 2 access
      
unsigned char Exp;        //exponent byte access
   
ByByte;
Foo;
Foo.FPNum 3.14159;
Exponent Foo.ByByte.Exp 0x7F;


UART_Status_Flag.bits.UART_RX_ReadStart
UART_Status 是共用資料結構
而 UART_RX_ReadStart 是位元結構的一個成員

發表於: 2021/8/3 12:59
頂部


Re: dsp33fj UART RX中斷後RESET
#76
版主
版主


我在懷疑是不是 Memory Access 的錯誤導致產生的 NMI 的 Trap 中斷執行的 Default 的 RESET 指令。
1. 在接收的中斷函數因為沒有讀取接收的資料,導致接收 FIFO 被覆蓋了,這時會產生 Receive Overrun Error
2. 請檢查這一行的結構宣告,或改用其他旗號的設定方式。

dsPIC30F example code:
Read receiver data from Interrupt    
void _ISR _U1RXInterrupt
(void)
{
    
Rec_Buffer ReadUART1( );  // Read data from Receiver FIFO
    
Rec_Flag 1;                 // Set the Received Flag
    
IFS0bits.U1RXIF ;                    // Clear Interrupt Flag
}
Using ReadUART1( )
unsigned int ReadUART1(void)
{
    if(
U1MODEbits.PDSEL == 3)    // 9-bit data format?
        
return (U1RXREG);
    else
        return (
U1RXREG 0xFF);
}

發表於: 2021/8/3 10:18
頂部


空中 CAE 教室八月份的課程將暫停,九月再開課
#77
版主
版主


CAE Team 的三位講師因在八月中旬時要開設暑期空中菁英班的課程,有些工作必須在先期完成。所以須暫停八月的 CAE 空中教室的課程,預計 9/02 再與大家見面

發表於: 2021/8/3 10:13
頂部


Re: MCLV-2的dsPIC33EP PIM模組問題
#78
版主
版主


顧名思義,external op config 是使用 MCLV2上的 OPA MCP6024,internal OP 是使用 dsPIC 內部 OP。兩者OP BW 都有10MHz,都可以拿來做電流控制,最大差別是 offset 不同,dsPIC 內建的 offset 比較大,約數 mV,而 MCP6024 只有250uV。如果應用上放大倍率不是太高,例如15倍以內,offset 影響不大,兩者皆可用,但還是以實際應用需求為準。

另外使用 internal OP,MCU 的 analog pin 會占用較多,每組 OP 需 3 個 analog pin,所以 MCU pin 比較少的需要注意。

發表於: 2021/8/3 9:41
頂部


Re: MCLV-2的dsPIC33EP PIM模組問題
#79
版主
版主


已向馬達專家詢問,請稍等。

發表於: 2021/8/2 14:54
頂部


Re: PIC16F1823 中斷應用
#80
版主
版主


當然 OVP & OCP (Over Current Protection) 是要用比較器來完成,這樣速度才會夠快達到保護的工能。一般使用 ADC 是用來控制輸出的電壓或電流,不要那來當過壓及過流的保護。如此一來 ADC 的轉換速度就不用太快了。

發表於: 2021/7/30 23:19
頂部



« 1 ... 5 6 7 (8) 9 10 11 ... 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... ]

教育訓練中心

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