9S08PL4 EEPROM

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

9S08PL4 EEPROM

跳至解决方案
1,121 次查看
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,105 次查看
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,106 次查看
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 项奖励
回复