9S08PL4 EEPROM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

9S08PL4 EEPROM

Jump to solution
1,111 Views
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 Kudos
Reply
1 Solution
1,095 Views
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.

View solution in original post

0 Kudos
Reply
1 Reply
1,096 Views
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 Kudos
Reply