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


Browsing this Thread:   1 Anonymous Users




(1) 2 »


Re: 使用C30 編譯持出現警告
#15
管理員
管理員


查看用戶資訊
設auto_psv就是跟Compiler, 這個中斷服務常式要存PAVPAGE阿, 不然幹麻設@@

TLS2130的資料後面有詳細Attribute的用法.可以參閱\

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


Re: 使用C30 編譯持出現警告
#14
高級會員
高級會員


查看用戶資訊
感謝 Ryang 前輩
對於 Microchip 的MCU 剛開始用
很多編譯或是使用語法和我之前所學不同
所以還是一頭霧水

感謝您的解答.

發表於: 2009/3/26 15:16
Austin
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 使用C30 編譯持出現警告
#13
版主
版主


查看用戶資訊
因為 PSV Default 是開啟的,所以會有警告以避免在中斷李修改了 PSVPAGE 而忘了回存。

只要在中斷的函數宣告裡加入 no-auto_psv 的宣告,其方式及語法如下所示:

void __attribute__((interrupt, no_auto_psv)) _T1Interrupt(void)

發表於: 2009/3/26 15:06
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


使用C30 編譯持出現警告
#12
高級會員
高級會員


查看用戶資訊
各位先進您好,
我使用 MPLAB 8.20a C30 編譯我的程式
我的程式中使用
#include <p30f6010A.h>
#include <timer.h>

void __attribute__ ((__interrupt__)) _T1Interrupt(void)
{
.
.
.
}

void Timers_Initial( void )
{
ConfigIntTimer1( T1_INT_PRIOR_6 & T1_INT_ON ) ;
OpenTimer1( T1_ON & T1_IDLE_STOP & T1_GATE_OFF & T1_PS_1_1 & T1_SOURCE_INT , 65535 ) ;
DisableIntT1 ;
}

以上是使用Microchip的 Library

但是編譯時會出現
The dsPIC language tools key is not in the registry.
pic30-coff-cc1.exe: warning: Options have been disabled due to missing license
MAIN-090308.C: In function '_T1Interrupt':
MAIN-090308.C:165: warning: PSV model not specified for '_T1Interrupt';
assuming 'auto_psv' this may affect latency


請教
有辦法避免嗎????



發表於: 2009/3/26 14:40
Austin
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... ]

教育訓練中心

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