S08: writing in flash registers

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

S08: writing in flash registers

2,172件の閲覧回数
ramabh
Contributor I
hi
I am new to this HCS08.I am trying to wtrite data in flash registers FCDIV and FCMD but i am not able....what may be the possible reason for this one


Alban Edit: Added part number in subject line.

Message Edited by Alban on 2007-03-13 10:37 PM

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

685件の閲覧回数
peg
Senior Contributor IV
Hi ramabh,
 
On the very limited information you have given I can suggest two possible issues:
 
1. FCDIV is "write once". That is only the first write to this register after a reset will be honoured.
 
2. FCMD is "write only" attempts to read it will always give 0.
 
Give us some more info on your problem and we may be able to help you more.
 
0 件の賞賛
返信

685件の閲覧回数
ramabh
Contributor I
hi peg
 
 
Ya i know that FCMD is write only...i am just checking the memory location through debugger but i am not able to see the BYTE program command(0x20) there its showing 00 only and i am getting access error
 
whether we are not able to see the memory locations also
0 件の賞賛
返信

685件の閲覧回数
peg
Senior Contributor IV
Hi,
 
"See"ing IS reading. Looking at this register in the debugger or simulator or whatever IS reading it! Reading this register either via programme code or via the BDM WILL yield ZERO! That is how it works and how it is documented in the datasheet.
 
0 件の賞賛
返信