S08: writing in flash registers

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S08: writing in flash registers

2,173 次查看
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 回复数

686 次查看
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 项奖励
回复

686 次查看
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 项奖励
回复

686 次查看
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 项奖励
回复