• slider image 442
  • slider image 497
  • slider image 498
  • slider image 499
  • slider image 500
  • slider image 502
:::

論壇索引


Board index » All Posts




訪客
EVB-KSZ9477 compiler environment in Linux ubuntu 14.04 error
訪客-訪客
你好,我手上有2張EVB-KSZ9477的板子,(02-PCB-UNG_8071-B BUR213824005 BUR213824007),因為想要用SD卡開機,所以下載(https://github.com/Microchip-Ethernet/EVB-KSZ9477/tree/master/KSZ)你們提供的source code去build image, 根據你們doc目錄下的文件中所說的步驟去執行時,發生了一些問題,要麻煩你們幫忙處理,謝謝,
目前的compiler環境是在VM灌Linux ubuntu 14.04,謝謝.

Attach file:



jpg  compiler-error-1.jpg (738.90 KB)
123111_61c18df5819ca.jpg 1920X1080 px

頂部


請問:MCC設定PIN腳為輸出,但在Pin Module中的Analog為何還是打勾?不取消會有影響?
資深會員
資深會員


大家好 :

如題.

謝謝.

Attach file:



jpg  螢幕擷取畫面 2021-12-21 162145.jpg (140.70 KB)
3751_61c18f0dddc0e.jpg 947X622 px

發表於: 2021/12/21 16:19
頂部


dsPIC30F4011 30I/P 無法燒入
新會員
新會員


在燒入時跳出紅色的錯誤訊息
Target Device ID (0xffff0000) is an Invalid Device ID. Please check your connections to the Target Device.
請問這種狀況要怎麼解決?

發表於: 2021/12/20 16:27
頂部


Re: 有關dsPIC33FJ64MCX02晶片的A/D問題
資深會員
資深會員


程式如下
void __attribute__((__interrupt__,auto_psv)) _ADC1Interrupt(void)
{
Result_AN0 = ADC1BUF0; // Save AN0 result
Result_AN3 = ADC1BUF1; // Save AN3 result
Result_AN4 = ADC1BUF2; // Save AN4 result
Result_AN5 = ADC1BUF3; // Save AN5 result

IFS0bits.AD1IF = 0;
}
錯誤為未定義ADC1BUF1、ADC1BUF2、ADC1BUF3,然而在型錄有提到

發表於: 2021/12/18 21:17
頂部


Re: 有關dsPIC33FJ64MCX02晶片的A/D問題
資深會員
資深會員


使用手冊有提到,ADC result buffer pointer to ADC1BUF0-ADC1BUFF,如附圖所示

Attach file:



jpg  擷取.JPG (195.86 KB)
400_61bddf2a8c59f.jpg 1507X598 px

發表於: 2021/12/18 21:15
頂部


有關dsPIC33FJ64MCX02晶片的A/D問題
資深會員
資深會員


型錄有提到,可設定CH0,CH1,CH2及CH3同時Sampling類比訊號,如果設定Timer3觸發A/D中斷後,要如何取出四個取樣值?我有點困惑,因為只有一個ADC1BUF0,而不是有四個ADCBUF.

發表於: 2021/12/18 19:43
頂部


Re: 接收LIN同步信號問題?
資深會員
資深會員


印象中UART遇到ERROR要CREN關閉再開,但這顆MCU沒有CREN有類似的機制嗎?

發表於: 2021/12/15 17:53
頂部


Re: 專案失聯?
資深會員
資深會員


謝謝

發表於: 2021/12/15 17:51
頂部


Re: 關於MHC中的USART Driver
資深會員
資深會員


我再試了一下,原來是裡面有兩個SERCOM,我只改了其中一個,改錯地方了...

不好意思搞錯啦

發表於: 2021/12/15 17:50
頂部


接收LIN同步信號問題?
資深會員
資深會員


MCU:dsPIC33EV64GM104
開發板:DM330018_Starter_Kit_Demo
我自己發送LIN的同步信號出去再送8個BYTE資料和checksum(每200ms送一次資料)
因為MCP2021A送出的資料自己也會收到,我試著用範例程式的做法等收到同步信號也就是產生FERR訊框錯錯時設定LIN_START=1準備開始收資料,但我卻發現_U1ErrInterrupt
一直被觸發但不是OERR,FERR,PERR 我用LED做測試,LED2會一直閃爍表示一直在中斷
但LED3卻沒亮...

到底是為什麼_U1ErrInterrupt一直被中斷 量了一下也是200ms被中斷一次,也就是說是收到同步信號才產生的中斷,我試著將同步信號取消(11BIT LO)_U1ErrInterrupt就不會被中斷了





void __attribute__((interrupt, no_auto_psv)) _U1ErrInterrupt(void)
{
if (U1STAbits.OERR == 1)
{
U1STAbits.OERR = 0;
LED3_SetHigh();
}

if (U1STAbits.PERR == 1)
{
U1STAbits.PERR = 0;
LED3_SetHigh();
}

if (U1STAbits.FERR == 1)
{
lin_start = 1; // first message detection phase
// U1STAbits.OERR = 0;
LED3_SetHigh();
}
LED2_Toggle();
IFS4bits.U1EIF = 0;
}

void LIN_Transmit(void)
{
// send break followed by 0x55 'autobaud' byte
while (U1STAbits.TRMT == 0); // wait for transmitter empty
while (U1STAbits.UTXBRK == 1); // wait for HW to clear the previous BREAK
U1STAbits.UTXEN = 1; // Enable UART TX
U1STAbits.UTXBRK = 1; // set the BREAK bit
U1TXREG = 0; // dummy write to trigger UART transmit
Nop(); // must wait 1 instruction cycle
U1TXREG = 0x55; // AUTO-BAUD sync character per J2602 spec

// send the LIN_MESSAGE_ID byte, is arbitrary but must be in the range 0x00 to 0x3B
// there are also 2 parity bits sent
LIN_ID = 0x23;
p0 = (LIN_ID & 0x01) ^ ((LIN_ID & 0x02) >> 1) ^ ((LIN_ID & 0x04) >> 2) ^ ((LIN_ID & 0x10) >> 4);
p0 = p0 & 0x01; // get bit value
p1 = ~(((LIN_ID & 0x02) >> 1) ^ ((LIN_ID & 0x08) >> 3) ^ ((LIN_ID & 0x10) >> 4) ^ ((LIN_ID & 0x20) >> 5));
p1 = p1 & 0x01; // get the bit value
id_byte = (p1 << 7) | (p0 << 6) | LIN_ID; // stuff parity bits into proper places

// form protected ID byte and transmit it
// the bit stuffing is optional, used here to test LIN receiver hardware
checksum = id_byte; // initial checksum value (limited to a byte value)
while (U1STAbits.TRMT == 0); // wait for transmitter empty
Nop();
U1TXREG = id_byte; // transmit the protected ID byte

//等SLAVE回資料

}

發表於: 2021/12/15 16:48
頂部



« 1 ... 98 99 100 (101) 102 103 104 ... 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... ]

教育訓練中心

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