• 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






Re: 12F675 的問題
#2
資深會員
資深會員


查看用戶資訊
程式看起來正常 沒問題 ; 問題可能在於 :

ICDWarn0010: Program end address > program memory size. Reset end address to 0x2FF?

你是用 DEBUG MODE 燒錄 , 然後 DEBUGGER 又選用 ICD2 , 但你並沒使用 12F675 的 HEADER , 而直接燒錄 12F675 才造成這問題

建議你 DEBUGGER 選用 MPLAB SIM 就好 , 反正這程式也沒作什麼 , ......

發表於: 2009/5/16 9:05
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


12F675 的問題
#1
新會員
新會員


查看用戶資訊
我第一次使用這個元件 使用 MICROCHIP 提供的
12F657TEMP.ASM ,可以成功 BUILD 但是PROGRAM 時
出現:
ICDWarn0010: Program end address > program memory size. Reset end address to 0x2FF?

問題是出在哪?

程式碼:

list p=12f675
#include <p12f675.inc>
__CONFIG _CP_OFF & _CPD_OFF & _BODEN_OFF & _MCLRE_ON & _WDT_OFF & _PWRTE_ON & _INTRC_OSC_NOCLKOUT

w_temp EQU 0x20
status_temp EQU 0x21
ORG 0x000
goto main
ORG 0x004
movwf w_temp
movf STATUS,w
movwf status_temp
movf status_temp,w
movwf STATUS
swapf w_temp,f
swapf w_temp,w
retfie

main
bsf STATUS,RP0
bcf STATUS,RP0

stare
nop
nop
nop
nop
nop
nop
goto stare

END

MAP 檔:

MPLINK 4.20, Linker
Linker Map File - Created Fri May 15 12:30:18 2009

Section Info
Section Type Address Location Size(Bytes)
--------- --------- --------- --------- ---------
.org_0 code 0x000000 program 0x000002
.cinit romdata 0x000001 program 0x000004
.org_1 code 0x000004 program 0x000022
.config code 0x002007 program 0x000002



Program Memory Usage
Start End
--------- ---------
0x000000 0x000002
0x000004 0x000014
0x002007 0x002007
21 out of 1168 program addresses used, program memory utilization is 1%



Symbols - Sorted by Name
Name Address Location Storage File
--------- --------- --------- --------- ---------
main 0x00000c program static D:\MyFolder\MicroChip\AntiLaserA\main.ASM
stare 0x00000e program static D:\MyFolder\MicroChip\AntiLaserA\main.ASM



Symbols - Sorted by Address
Name Address Location Storage File
--------- --------- --------- --------- ---------
main 0x00000c program static D:\MyFolder\MicroChip\AntiLaserA\main.ASM
stare 0x00000e program static D:\MyFolder\MicroChip\AntiLaserA\main.ASM

發表於: 2009/5/15 12:35
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... ]

教育訓練中心

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