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


Browsing this Thread:   1 Anonymous Users






Re: C30編譯完後會出現以下警告,是否需要修改呢?該改哪裡?
#4
版主
版主


查看用戶資訊
這是一個警告而已,實際去編譯 APP009_TestProg.mcp後是編譯成功。這是 C30 在C的啟動模組中會自動將 PSV 的功能打開,你要是在中斷裡將 PSV 關掉或有改到 PSV 的 PAGE 的話就會影響到程式返回主程式後再執行PSV功能時就會出錯。這只是一個提醒可以不理它。

發表於: 2007/8/3 14:14
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: C30編譯完後會出現以下警告,是否需要修改呢?該改哪裡?
#3
高級會員
高級會員


查看用戶資訊
這是個以前公司給的範例 APP009_TestProg

第1個警告程式太長

只列第2,3個警告

void __attribute__((__interrupt__)) _PWMInterrupt(void)
{

IFS2bits.PWMIF = 0 ;
}

void _ISR _ADCInterrupt(void)
{

IFS0bits.ADIF = 0 ;

if ( ANxBuf_Index < 128 )
{
AN0_Buf[ANxBuf_Index] = ADCBUF1 ;
AN1_Buf[ANxBuf_Index] = ADCBUF2 ;
AN2_Buf[ANxBuf_Index++] = ADCBUF3 ;
}

}


發表於: 2007/8/3 11:45
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: C30編譯完後會出現以下警告,是否需要修改呢?該改哪裡?
#2
版主
版主


查看用戶資訊
沒遇到過此類的警告,是否將中斷的部份踢出來看看 PSV 的設定是否有誤。

發表於: 2007/8/3 11:07
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


C30編譯完後會出現以下警告,是否需要修改呢?該改哪裡?
#1
高級會員
高級會員


查看用戶資訊
APP009_TestProg.c: In function '_T1Interrupt':
APP009_TestProg.c:71: warning: PSV model not specified for '_T1Interrupt';
assuming 'auto_psv' this may affect latency
APP009_TestProg.c: In function '_PWMInterrupt':
APP009_TestProg.c:142: warning: PSV model not specified for '_PWMInterrupt';
assuming 'auto_psv' this may affect latency
APP009_TestProg.c: In function '_ADCInterrupt':
APP009_TestProg.c:148: warning: PSV model not specified for '_ADCInterrupt';
assuming 'auto_psv' this may affect latency

發表於: 2007/8/2 16:37
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







You can view topic.
不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[進階搜尋]


:::

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

教育訓練中心

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