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

論壇索引


Board index » All Posts (jlian)




請問新版MCC又分Melody及Classic有何分別?
#31
資深會員
資深會員


大家好 如題 :

另外新專案為何只能選Classic?

謝謝.

發表於: 2022/3/18 9:10
頂部


請問MPLAB X V5.45想要增加ASM的專案,但卻沒有MPASM的選項?
#32
資深會員
資深會員


大家好 :

如題,但在pligins已有Installed,很奇怪...該如何解決?

謝謝.

Attach file:



jpg  螢幕擷取畫面 2022-02-24 173207.jpg (113.42 KB)
3751_62175100c1e05.jpg 1102X690 px

發表於: 2022/2/24 17:26
頂部


Re: 請問error: (1098) conflicting declarations for variable "_Bubble_Sort"?
#33
資深會員
資深會員


Dear GodBlessU :

應該沒重複...

謝謝.

發表於: 2022/2/16 9:29

Edited by jlian on 2022年02月16日 09:48:57
頂部


請問error: (1098) conflicting declarations for variable "_Bubble_Sort"?
#34
資深會員
資深會員


大家好 :

MPLABx : V5.45
XC8 : V2.31

1.出現如下的情況 :
main.c:129:5: warning: implicit declaration of function 'Bubble_Sort' is invalid in C99 [-Wimplicit-function-declaration]
error: (1098) conflicting declarations for variable "_Bubble_Sort" (main.c:129)

2.原因 :
在com.c及com.h皆有Bubble_Sort(),
在main有include com.h及call Bubble_Sort(),
為何會出現1.的情況?

3.解法 :
在main前加一extern即可解決.

4.其他 :
但另一個在com.c及com.h的Hex2Asc()卻不會有這種情形...
有人知道為何會有兩種不同的情況發生?

謝謝.

發表於: 2022/2/15 16:37
頂部


Re: 紀錄資料約120Mbytes(斷電記憶),如何解決?
#35
資深會員
資深會員


SPI Flash看適不適和...

發表於: 2022/1/10 10:16
頂部


Re: 16f877要擴充6個74HC373執行48個LED
#36
資深會員
資深會員


1. 2F正解.
2. 初始RA0等等皆為0.
3. 你應該是使用RB0外部中斷,進入中斷後 :
Var0=Tbable0[x0];
NOP(); //也許需要一些
RA0=1;
NOP(); //也許需要一些
PORTC=Var0;
NOP(); //也許需要一些
RA0=0;
如此依序點亮LED...

發表於: 2022/1/6 10:40
頂部


Re: 請問MCC的Interrupt Driven會產生出code?
#37
資深會員
資深會員


Dear GodBlessU :

了解,因除了這樣之外,就沒了...跟UART或I2C差好多!

謝謝.

發表於: 2021/12/30 16:09
頂部


Re: 在Microchip Developer Help中兩個Timer的範例寫在不同的地方...
#38
資深會員
資深會員


Dear AdamSyu :

1. Timer0 :
void TMR0_ISR(void)
{
// clear the TMR0 interrupt flag
PIR0bits.TMR0IF = 0;
if(TMR0_InterruptHandler)
{
TMR0_InterruptHandler();
}

// add your TMR0 interrupt custom code
D2_LED_Toggle();
}
//-----------------------------------------------
2.Timer1 :
void main(void)
{
// initialize the device
SYSTEM_Initialize();

TMR1_SetInterruptHandler (myTimerISR); //Define interrupt Handler

// When using interrupts, you need to set the Global and Peripheral Interrupt Enable bits
// Use the following macros to:

// Enable the Global Interrupts
INTERRUPT_GlobalInterruptEnable();

// Enable the Peripheral Interrupts
INTERRUPT_PeripheralInterruptEnable();

// Disable the Global Interrupts
//INTERRUPT_GlobalInterruptDisable();

// Disable the Peripheral Interrupts
//INTERRUPT_PeripheralInterruptDisable();

while (1)
{
// Add your application code
}

}
void myTimerISR(void){
D2_LED_Toggle();



}
/**
End of File
*/
//*****************************************************
就以上兩種...
謝謝.

發表於: 2021/12/30 13:11
頂部


在Microchip Developer Help中兩個Timer的範例寫在不同的地方...
#39
資深會員
資深會員


Dear All :

1. code在Timer0中.
2.code在Timer1外.

用哪個寫比較好?
謝謝.

發表於: 2021/12/30 9:35
頂部


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


Dear KevinLu :

所以照MCC產生的即可.

謝謝.

發表於: 2021/12/30 9:07
頂部



« 1 2 3 (4) 5 6 7 ... 73 »



:::

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

教育訓練中心

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