Re: pic 18 eeprom 前置參數設定
|
||||
---|---|---|---|---|
版主
|
ak47,
EEPROM 的設定值是在做燒錄時就直接燒到 EEPROM 裡,此值隨時隨地都存在的,而且開機後也不需要做寫入或設定初始值的動作。
發表於: 2008/1/23 12:13
|
|||
|
Re: pic 18 eeprom 前置參數設定
|
||||
---|---|---|---|---|
高級會員
|
如此的宣告等於每次POWER ON時,即給EEPROM一些固定初值,若是這樣不如放在RAM就好,R/W也比較快。
我以為EEPROM的目的是要讓mcu在下次POWER ON時可保留OFF前最後的資料。
發表於: 2008/1/23 11:55
|
|||
|
Re: pic 18 eeprom 前置參數設定
|
||||
---|---|---|---|---|
中級會員
|
謝謝各位大大先去測試一下
發表於: 2008/1/14 13:46
|
|||
|
Re: pic 18 eeprom 前置參數設定
|
||||
---|---|---|---|---|
版主
|
#pragma romdata EEDATA
說明一下,可以這樣做的原因是因為在 LKR 檔裡有 EEDATA 節區的宣告: CODEPAGE NAME=eedata START=0xF00000 END=0xF000FF PROTECTED SECTION NAME=EEDATA ROM=eedata
發表於: 2008/1/14 11:44
|
|||
|
Re: pic 18 eeprom 前置參數設定
|
||||
---|---|---|---|---|
版主
|
這裡有範例:
****************************************************************
發表於: 2008/1/14 11:38
|
|||
|
pic 18 eeprom 前置參數設定
|
||||
---|---|---|---|---|
中級會員
|
不知道c18 有沒有在程式program時將pic 18 eeprom特定位址設定為所需特定數字的指令
發表於: 2008/1/14 11:24
|
|||
|