Browsing this Thread:
1 Anonymous Users
|
Re: 關於udata的宣告
|
|
版主
Joined
: 2004/4/30 10:53 最後登入時間
: 2021/11/30 18:11
From CAE, Microchip
Group:
站務管理者 註冊會員
Level : 75 HP : 744 / 1861 MP : 5367 / 111130 EXP : 45
|
假如你是用 PIC18F 系列的組語,RAM 0x00 ~ 0x7F 是屬於 Access Bank 的。在 PIC18F 要擺在這區塊是要使用 UDATA_ACS 來宣告的。
bank0_var udata_acs 0x20 bFLAG_TIME RES 1 b100msCnt RES 1
發表於: 2009/10/29 11:52
|
|
|
關於udata的宣告
|
|
高級會員
Joined
: 2005/5/28 16:31 最後登入時間
: 2023/4/20 11:28
Group:
註冊會員
Level : 10 HP : 0 / 233 MP : 42 / 13228 EXP : 35
|
想要在sim中,watch可以顯示數值... 要怎麼宣告才對?
;---------------------------------------; bank0_var udata 0x20 bFLAG_TIME RES 1 b100msCnt RES 1
;---------------------------------------; comm_var udata 0x50 W_TEMP RES 1 STATUS_TEMP RES 1 FSR_TEMP RES 1 PCLATH_TEMP RES 1
MPLINK 4.34, Linker Copyright (c) 2009 Microchip Technology Inc. Error - section 'bank0_var' can not fit the absolute section. Section 'bank0_var' start=0x00000020, length=0x00000002 Errors : 1
發表於: 2009/10/29 10:18
|
|
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.