Programming in the FLASH region

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Programming in the FLASH region

ソリューションへジャンプ
1,737件の閲覧回数
mmm
Contributor I
I've tried many times, but I can't store any value in the flash region, it doesn't change. (Flash because my micro, 9S08QG8 has a small RAM memory). Does the program need any espetial intruction? Or what can be the problem?
ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
951件の閲覧回数
bigmac
Specialist III

Hello,

 

If your program needs additional RAM, the 9S08QG8 may not be suitable, and you will need to use a larger device.  Flash memory is read-only, and cannot be directly written like RAM.

 

It is possible to use flash memory for non-volatile storage of data, but the flash must be programmed with the required data.  This may be done from within the program code, but is much more complex than simply writing to a flash location.  There is also a finite limit to the total number of times that a flash location may be erased, and then re-programmed.

 

I suggest that you use the search engine below (for the 8-bit forum) and you should find many examples that have been previously posted. You will also need to be familar with the flash programming requirements to be found within the datsheet for the 'QG8.

 

Regards,

Mac

 

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
952件の閲覧回数
bigmac
Specialist III

Hello,

 

If your program needs additional RAM, the 9S08QG8 may not be suitable, and you will need to use a larger device.  Flash memory is read-only, and cannot be directly written like RAM.

 

It is possible to use flash memory for non-volatile storage of data, but the flash must be programmed with the required data.  This may be done from within the program code, but is much more complex than simply writing to a flash location.  There is also a finite limit to the total number of times that a flash location may be erased, and then re-programmed.

 

I suggest that you use the search engine below (for the 8-bit forum) and you should find many examples that have been previously posted. You will also need to be familar with the flash programming requirements to be found within the datsheet for the 'QG8.

 

Regards,

Mac

 

0 件の賞賛
返信