9S08PL4 EEPROM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,113件の閲覧回数
zebster
Contributor I

Hi,

I am trying to store one single byte to the EEPROM. As a test:

After checking if the first EEPROM byte contains 0xFF, I try to write it to 0x00.

FCLKDIV is OK,

CCIF is set,

ACCER and FPIVOL are both off,

FCCOBHI(0) ← 0x11 (EEPROM WRITE)

FCCOBLO(0) ← 0x80 (ADDRESS 23...16)

FCCOBHI(1) ← 0x31 (ADDRESS 15...8)

FCCOBLO(1) ← 0x00 (ADDRESS 7...0)

FCCOBLO(2) ← 0x00 (DESIRED CONTENT)

FSTAT ← 0x80 (START EXECUTION)

WAIT FOR CCIF SET

And then: ------ACCERR set!!!

The meaning can only be "command is not available in current mode".

It's only unavailable in unsecured mode, but I didn't use SD (secure device) on my CYCLONE programmer (from PE Micro).

What do I do after days of trying? I need to remember some values at next Power-up.

Pls help!

0 件の賞賛
返信
1 解決策
1,097件の閲覧回数
zebster
Contributor I

Never mind, it took one more weekend, but it's solved.

The Reference Manual is so bad I haven't seen anything like it.

Address 23, allegedly used to determine if it's FLASH or EEPROM, should be on FLASH setting (LO) to work with the EEPROM. Go figure.

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,098件の閲覧回数
zebster
Contributor I

Never mind, it took one more weekend, but it's solved.

The Reference Manual is so bad I haven't seen anything like it.

Address 23, allegedly used to determine if it's FLASH or EEPROM, should be on FLASH setting (LO) to work with the EEPROM. Go figure.

0 件の賞賛
返信