• 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: 18F452的ROM
#4
版主
版主


查看用戶資訊
1. 是在program 0x1000的位址擺放查表資料,沒有說程式空間一定要擺程式的,擺資料或擺一些可以被修改的參數也可以(Flash Tpte)。

2. Internal EEPROM 有它特定的空間,上列的程式是存取外部的 I2C 介面的 EEPROM,兩著存取方式差的遠了不可相提並論。

3. 這是User強定RAM位址的方式之一,你也可以讓 Linker 自動幫你安排,寫C嗎! 剛開始不要太在意變數放在哪? 程式會動功能正常後再去研究。

發表於: 2005/9/8 17:48
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 18F452的ROM
#3
資深會員
資深會員


查看用戶資訊
參照:

Ryang 寫道:
18F452的ROM宣告位是從多少開始:
0x0000 ~ 0x7FFFF
===>這個ROM空間是不是程式位址的空間
這是範例:
/* define the LCD_MSG1[] in program memory at 0x1000 */
//*****************************************************
#pragma romdata My_romdata=0x1000
const rom char LCD_MSG1[]=" C18 Workshop ";
const rom char LCD_MSG2[]="A/D Result = ";

const rom far char Disp_Msg1[]="MPLAB-C18 Workshop";
const rom far char Disp_Msg2[]="Motor is Running !";
const rom far char Disp_Msg3[]="Motor is Stopped !";
const rom far char Disp_Msg4[]="Current Motor Speed are : ";
#pragma romdata



EEPROM宣告位是從多少開始:
EEPROM 有它自己的獨立空間不佔位址,但用 ICSP 燒錄時的位只是在 0xF00000~0xF000FF
===>這是不是各種型號有所不同
這也是範例
while(1) // loop here until read the NULL from EEPROM
{
EE_Read_Data.l = EERandomRead(0xA0,j); // Read data from EEPROM

if (EE_Read_Data.i[0]!=NULL) // check NULL data?
{
WriteDataLCD(EE_Read_Data.i[0]); // No, display the data to LCD
j++; // Point to next address of EEPROM
}

RAM宣告位是從多少開始:
從 0x000 ~ 0xFFF 最大4K Bytes
範例:
/* define the LCD_MSG2[] in data memory at 0x100 */
//*************************************************
#pragma idata My_Banked_RAM=0x100
char LCD_MSG2[]="A/D Result = ";
#pragma idata

/* define following variable in data memory at Access Bank */
//***********************************************************
#pragma udata access My_Access_RAM



已上是從範例中看到
不知道如何來定義位址
我都有樣學樣
不知能否細述


發表於: 2005/9/8 9:22
==== ^^ ^^ ====
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 18F452的ROM
#2
版主
版主


查看用戶資訊
18F452的ROM宣告位是從多少開始:
0x0000 ~ 0x7FFFF


EEPROM宣告位是從多少開始:
EEPROM 有它自己的獨立空間不佔位址,但用 ICSP 燒錄時的位只是在 0xF00000~0xF000FF


RAM宣告位是從多少開始:
從 0x000 ~ 0xFFF 最大4K Bytes

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


18F452的ROM
#1
資深會員
資深會員


查看用戶資訊
請問各位大俠
18F452的ROM宣告位是從多少開始
範圍是多少(用C18寫程式時)

EEPROM宣告位是從多少開始
範圍是多少(用C18寫程式時)

RAM宣告位是從多少開始
範圍是多少(用C18寫程式時)



發表於: 2005/9/7 16:14
==== ^^ ^^ ====
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... ]

教育訓練中心

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