How to stop flash erase operate in 9S08AW32?

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

How to stop flash erase operate in 9S08AW32?

1,190 Views
wackestar
Contributor I
9S08AW32 need 20ms to earse a flash page, this is to long.  Is there some methos to stop erase operate when a out accident is happening ?I need return to run program in flash immediately .
Labels (1)
0 Kudos
2 Replies

291 Views
Ake
Contributor II
Hi,
If you look in the MC9S08AW60 book, chapter 4.4.5 Access Errors, there are a number of things that will stop the erasure/programming execution.
 
I would try to write 0 into the FCBEF, which will cancel the command.
 
I have not tried it myself, but it seems quite simple to try it.
 
 
Regards,
Ake
0 Kudos

291 Views
peg
Senior Contributor IV
Hi wackestar,
I don't think you can do this!
If you can't tolerate the delay or can't only erase when you can then you need to use external EEPROM (IIC or SPI). Or change to a MPU with real EEPROM or two flash arrays.

0 Kudos