Re: pragma issue!!
|
||||
---|---|---|---|---|
初級會員
|
謝謝版主:
我會下載相關元件回去Study
發表於: 2008/12/30 22:37
|
|||
|
Re: pragma issue!!
|
||||
---|---|---|---|---|
初級會員
|
Hi Eigen
現在我可以將程式放到位置上了 將繼續下一步的動作 Thanks
發表於: 2008/12/30 2:46
|
|||
|
pragma issue!!
|
||||
---|---|---|---|---|
初級會員
|
Hi 各位先進
目前有一pragma 問題如下 #pragma code isrhighcode = 0x0008 void isr_high_direct(void) { _asm //begin in-line assembly goto isr_high //go to isr_high function _endasm //end in-line assembly } #pragma code 以上的Code可以將位置定在 0x08起點 現小弟想將呼叫的 isr_high 定義在 0x7000h 程式如下 #pragma interrupt isr_high = 0x007000 void isr_high(void) { .....//自定程式 } #pragma code 但是Compile 時發生如下錯誤 ////////////////////////////// D:\DCM_Source\DCM-DP-001\Isr.c:53:Error [1020] unexpected input following 'interrupt' Halting build on first failure as requested. ////////////////////////////// 但是原本的code (沒有指定位址),是OK的 #pragma interrupt isr_high void isr_high(void) { .....//自定程式 } 請先進們, 多多指教 thanks!!
發表於: 2008/12/28 16:20
|
|||
|
Re: PIC18F 系列
|
||||
---|---|---|---|---|
初級會員
|
thanks
因為最近比較忙的關係 所以回覆有點晚 抱歉 先去study您建議的文件 有問題再請教您
發表於: 2008/12/9 22:24
|
|||
|
PIC18F 系列
|
||||
---|---|---|---|---|
初級會員
|
Hi 版主
目前已經針對PIC18F4520做過一些了解 也練習過APP001大部分功能 想請教的是 如果想撰寫如下的功能 該採用哪一顆PIC 及有沒有相關參考範例或文件 PIC1===>RJ45網路===>>PIC2 PIC2===>RJ45網路===>>PIC1 PS. 不是做web serer 單純只做資料傳輸 PIC18F97J60適合嗎?
發表於: 2008/11/27 0:28
|
|||
|
Re: table read and table write
|
||||
---|---|---|---|---|
初級會員
|
Any demo in C for this
發表於: 2008/6/2 21:07
|
|||
|
table read and table write
|
||||
---|---|---|---|---|
初級會員
|
Hi 版主
想知道 table read & table write 如何以C18語言去撰寫 因為組語的部份(18F4520's data sheet)無法看懂 有C的demo嗎 thanks EX. MOVLW D'64===>>write 64 到 WREG 用C 如何達成上述目的???
發表於: 2008/6/1 3:07
|
|||
|
Re: 請問AN851 bootloader for 18F4520
|
||||
---|---|---|---|---|
初級會員
|
抱歉
因為有事 一陣子沒時間 練習bootloader 現在 才重溫 目前狀況 asm可以compile OK!! 想整合進我的C code, 將asm file added 到我的 專案 在make時發生錯誤 如下 section 'isrhighcode' can not fit the absolute section. Section 'isrhighcode' start=0x00000008, length=0x00000006 我的疑問是 我在main.c中的code是很少的 =================== #pragma code isrhighcode = 0x0008 void isr_high_direct(void) { _asm //begin in-line assembly goto isr_high //go to isr_high function _endasm //end in-line assembly } #pragma code =================== 應該不會超出範圍 我自己思考, 會不會因為我載入bootloader(asm file),而bootloader中已經使用0x08,我在main.c中的isrhigh 應該用bootloader中定義的reset vector address (ex:0x208) 還是說 必須先用icd2寫入bootloader,然後再用RS-232將我的主程式傳進去? 是這樣子嗎 PS.c018i.c 已經修改如下 #pragma code _entry_scn=0x000200 謝謝您的解答
發表於: 2008/5/11 2:17
|
|||
|
Re: 請問AN851 bootloader for 18F4520
|
||||
---|---|---|---|---|
初級會員
|
可不可以先更新一下 ICD2 的 F/W 後再試試看
===>>不好意思 可以 告訴我 哪裡可以download嗎 我找不到. 先謝謝了 SORRY!!我找到 投影片說明了 我試試看 Thanks
發表於: 2008/4/9 17:51
|
|||
|