12F675 的問題
|
||||
---|---|---|---|---|
新會員
|
我第一次使用這個元件 使用 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
|
|||
|