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


Browsing this Thread:   1 Anonymous Users




(1) 2 »


Re: 時間和 編輯問題
#12
中級會員
中級會員


查看用戶資訊
了解~非常感恩

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


Re: 時間和 編輯問題
#11
版主
版主


查看用戶資訊
它已經告訴你 ROM 已使用 100%,考慮換顆 4K ROM 的看看。

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


Re: 時間和 編輯問題
#10
中級會員
中級會員


查看用戶資訊
Memory Usage Map:

Program ROM $0000 - $03C2 $03C3 ( 963) words
Program ROM $03C4 - $07FF $043C ( 1084) words
$07FF ( 2047) words total Program ROM

Bank 0 RAM $0023 - $0059 $0037 ( 55) bytes total Bank 0 RAM
Bank 2 RAM $00A0 - $00A9 $000A ( 10) bytes total Bank 2 RAM
Bank 0 Bits $0100 - $0110 $0011 ( 17) bits total Bank 0 Bits


Program statistics:

Total ROM used 2047 words (100.0%)
Total RAM used 58 bytes (45.3%)

-----------
可能是rom不夠了吧!!
可是 ram還有阿!!
在加 bank2 char a 0x00
Error[000] : Can't find 0xA words (0xA withtotal) for psect idata_2 in segment CODE

真的搞不懂到底是什麼錯誤!!


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


Re: 時間和 編輯問題
#9
資深會員
資深會員


查看用戶資訊
unsigned char ...就是宣告不用+-符號,但你卻用又-1所以會有問題.

int 2byte ,char 1byte 可能是RAM不夠吧,ROM的宣告方式和RAM有點不同...

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


Re: 時間和 編輯問題
#8
中級會員
中級會員


查看用戶資訊
宣告真的是問題 改了就ok了!!
可是
unsigned char Lhcount......0~255
signed char Lhcount.........-128~127
Lhcount都有含到0 不是嗎?

if ((Lhcount>=0)&&(Lhcount<6))
這樣應該沒問題不是嗎?
-----------
在請教一下當我 宣告
signed int p_x1 =0;
會出現以下
Error[000] : Can't find 0xB words (0xB withtotal) for psect text4 in segment CODE
大概是 rom不夠是嗎?


當我改宣告
signed char p_x1 =0;
時就不會出現 真的是 rom不夠嗎?
問題好多真是不順利
拜託各位了

發表於: 2007/7/17 18:50
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 時間和 編輯問題
#7
資深會員
資深會員


查看用戶資訊
宣告的有問題.unsigned char Lhcount=0
signed char Lhcount.........-128~127
unsigned char Lhcount......0~255
宣告的有問題.

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


Re: 時間和 編輯問題
#6
中級會員
中級會員


查看用戶資訊
我改過了好像不是這個原因也
Lhcount 應該可以0~255

如果改成
if ((Lhcount>0)&&(Lhcount<6))
or
if ((Lhcount>=1)&&(Lhcount<6))

就ok
if ((Lhcount>-1)&&(Lhcount<6))
不ok
Lhcount =0不是在合理範圍嗎?
--------------------------------------
Error[000] : Can't find 0xB words (0xB withtotal) for psect text4 in segment CODE
.c 加 .h 合起來快50k
我是用pic 16f72
編輯時會出現上面的錯誤 是不是 pic的容量爆了

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


Re: 時間和 編輯問題
#5
資深會員
資深會員


查看用戶資訊
if ((0<=Lhcount)&&(Lhcount<6))
變數要放在左邊吧??
if ((Lhcount>=0)&&(Lhcount<6))
難怪怎麼看都覺得很奇怪??

發表於: 2007/7/17 13:25
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 時間和 編輯問題
#4
中級會員
中級會員


查看用戶資訊
作法是這樣----
unsigned char Lhcount=0
if ((0<=Lhcount)&&(Lhcount<6))
變數宣告應該沒什麼問題吧!

TIMER2=0.2US*1*9*(99+1)
TIMER2=180US 好像差滿多的

發表於: 2007/7/17 11:43
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 時間和 編輯問題
#3
新會員
新會員


查看用戶資訊
我看書"pic16f877原理與應用"P10-12
他的公式
100uS=[(PR2+1)]*4*(1/12us)*4
預儲值4 12MHz參考看看了

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

教育訓練中心

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