How to stop flash erase operate in 9S08AW32?

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

How to stop flash erase operate in 9S08AW32?

1,604 次查看
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 .
标签 (1)
0 项奖励
回复
2 回复数

705 次查看
Ake
Contributor III
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 项奖励
回复

705 次查看
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 项奖励
回复