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!