• 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: PICC complier 問題??
#7
高級會員
高級會員


查看用戶資訊
感謝版大還有Eigen的幫忙...
的確是版本太舊的問題..
排除9.60 complier的錯誤訊息後..
連原來切bank的問題也都ok了....
謝謝各位了...


發表於: 2007/7/31 10:07
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PICC complier 問題??
#6
資深會員
資深會員


查看用戶資訊
版本太舊,至少要 9.5 才有 support 946

HI-TECH Software is pleased to announce a minor update for the HI-TECH PICC™ compiler. This updated version of the compiler has support for all of the latest devices and implements some new features. All reported bugs have been fixed and more comprehensive tests have been carried out to further improve code reliability.

This update is available free of charge to current Extended Support Option customers and customers who have purchased version 8.05PL2 and version 9.50 of the PICC compiler.

For demos, updates and manuals go to the Downloads page.

Notes
Please note that this version of the compiler has a new command line driver which has a different format for options compared with previous versions. Please refer to the user manual for details on using the command line options. During the transitional period, the new command line driver will accept the old-style options, but this should not be relied upon for future versions.


Previous Versions
The previous release version was 9.50PL1, released October 2005.


New Features

General

HI-TIDE™ (9.50)
The compiler now comes with HI-TIDE™, an integrated development environent based on Eclipse™. Please refer to the HI-TIDE readme file and accompanying documentation for details.
Mac OSX Version (9.50)
In addition to the Windows®, Linux® and SUN versions, there is now a Mac OS X version of the compiler and HI-TIDE.
New Processors (9.50)
Support for the latest processors has been added (10F220, 10F222, 12F510, 16F506, 16F639, 16F685, 16F687, 16F689, 16F690, 16F785, 16F913, 16F914, 16F916, 16F917, 16F946).
New Qualifier (9.50)
New in v9.50 is the eeprom qualifier. An object using this qualifier will be stored in eeprom and can be read/written in the same manner as a regular RAM variable would. Due to efficiency concerns, only simple expressions involving eeprom qualified object are supported.
New Message System (9.50)
All error, warning and advisory messages are now stored in language specific text files in the compiler's DAT directory. Each message is assigned a unique number which is displayed with the printed message.
In addition to error and warning messages issued by the compiler, there is now a third ``advisory'' type. Advisory messages are messages which offer some additional information about an operation the compiler is performing or a situation it has encountered. These are simply provided as helpful messages which don't fall into the error or warning category.



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


Re: PICC complier 問題??
#5
版主
版主


查看用戶資訊
Hi-Tech PICC 在編譯 PIC16 系列時,應該不用考慮程式頁(Page) 的問題,但變數要放在 BANK0 以外的地方要自行指定,PICC 會自動切換BANK的。

你先把中段關掉後再執行程式看看會不會有錯誤發生。

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


Re: PICC complier 問題??
#4
高級會員
高級會員


查看用戶資訊
上面的問題..在呼叫一個副程式時,會直接跳到中斷執行..
怪的是..返回的位址也錯亂掉..看stack也才4層而已...
就這樣..執行到呼叫就跳中斷...中斷後又回到while迴圈啟始..
感覺就好像page沒切好..完全搞不清楚是什麼情況...
找了v9.60的版本..連要complier過都有一堆看不懂的錯誤..
真是一波多折..想想還是改組語好了.....

發表於: 2007/7/31 2:51
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PICC complier 問題??
#3
高級會員
高級會員


查看用戶資訊
難道...用 c 也要自己切頁嗎????....
把幾段程式拿掉..complier $0186 - $07FF程式執行就ok...
把程式加入後..$0186 - $0830..呼叫副程式會亂跳?
真的是...太莫名奇妙了...我電腦是中毒了嗎??
C18好用多了..microchip怎沒出C16...


Program ROM $0000 - $0181 $0182 ( 386) words
Program ROM $0186 - $0830 $06AB ( 1707) words
******************************************
$082D ( 2093) words total Program ROM

Bank 0 RAM $0021 - $006D $004D ( 77) bytes
Bank 0 RAM $0070 - $0074 $0005 ( 5) bytes
$0052 ( 82) bytes total Bank 0 RAM

Bank 2 RAM $0120 - $0124 $0005 ( 5) bytes total Bank 2 RAM
Bank 0 Bits $0100 - $0103 $0004 ( 4) bits total Bank 0 Bits
Config Data $2007 - $2007 $0001 ( 1) words total Config Data


Program statistics:

Total ROM used 2093 words (25.5%)
Total RAM used 88 bytes (26.2%)

發表於: 2007/7/30 23:16
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PICC complier 問題??
#2
版主
版主


查看用戶資訊
PICC 下直接切換 BANK 我是沒試過,不過 PICC 對變數的宣告是可以指定要放在那一個 BANK 的,有關 變數的 BANK指定宣告方式可以參考Hi-Tech PICC Workshop 的講義,也有些BANK 切換的練習。

發表於: 2007/7/30 16:20
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


PICC complier 問題??
#1
高級會員
高級會員


查看用戶資訊
105:               //****************************//
106:               //                      顯示        //
107:               //***************************//
108:               void TuneLvLed (void)
109:               {
110:                   if (fTuneSel)
  0693    0183     
CLRF 0x3
  
0694    1DA2     BTFSS 0x220x3
  
0695    2E9C     GOTO 0x69c
111
:                   {
112:                       oLed5= !oLed5;
  0696    
1683     BSF 0x30x5
  
0697    1703     BSF 0x30x6
  
0698    3008     MOVLW 0x8
  
0699    0688     XORWF 0x8F
113
:                       oLed6 1;
  069
A    1508     BSF 0x80x2
114
:                   }
  069
B    0008     RETURN  *****BANK3??*****
115:                   else
116:                   {
117:                       oLed6= !oLed6;
  069
C    1683     BSF 0x30x5
  
069D    1703     BSF 0x30x6
  
069E    3004     MOVLW 0x4
  
069F    0688     XORWF 0x8F
118
:                       oLed5 1;
  
06A0    1588     BSF 0x80x3
119
:                   }
120:               }
  
06A1    0183     CLRF 0x3 *****BANK0???*****


void test (void)
{
              while(
bcnt >0)
              {
                    
TuneLvLed();
                    
bcnt --; <---- ftunesel 1bank3
                               
;         ftunesel 0bank0
              
}
}


唉....找問題找到快吐血了...找到後...還真是欲哭無淚....
使用hi-tech c v8.05, chip 16f946
bcnt 宣告在bank0....
fTuneSel = 1時...
執行完TuneLvLed();
竟然沒有切回bank0? ...
突然..不知道該怎麼繼續寫下去...

感覺...這是 Complier 的 Bug...還是我沒設定好參數??
還是這個版本的complier還沒支援到16f946??
是不是有前輩可以提供較新版本供測試....感謝~

發表於: 2007/7/30 15:17
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... ]

教育訓練中心

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