MC9S08PA EEPROM

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

MC9S08PA EEPROM

1,410 Views
lamatrice
Contributor I

Hi,

 

I am using MC9S08PA4 and cannot get the EEPROM to work. I want to write 1 byte in non-volatile memory and read it after a power reset

 

I used the reference manual and AN4570 for documentation, and I am writing in c:

- Setup the proper speed FDIV

- Unsecured the flash and eeprom

- Erase the first sector (0x3100)

- Verify Erase first sector

- Program the first sector

 

Is there any special command for reading the EEPROM, or just read first NVM_FCCOB ??

 

thanks,

 

Daniel

Labels (1)
Tags (2)
0 Kudos
Reply
1 Reply

1,010 Views
david_diaz
NXP Employee
NXP Employee

Hello Daniel,

Please be aware that if the FCLKDIV register has not been written, any flash and EEPROM program or erase command loaded during a command write sequence will not execute.

Are you writing to FCLKDIV register in order to divide BUSCLK down?

Have a great day.

David

0 Kudos
Reply