Working with Flash MCF52100

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

Working with Flash MCF52100

825 次查看
Dekabrist
Contributor I

Hello,

I developing board with MCF52100. This board must have next function:

save RAM memory bufer  in to the Flash (size - one page) by fail power. For properly selecting capacitance for power supply I need information how many time require  for write one page to flash. Thanks for any help.

标签 (1)
0 项奖励
回复
1 回复

711 次查看
TomE
Specialist II

The chip Data Sheet usually gives these figures. They're usually very fast AS LONG AS you don't have to erase a sector first.

 

So make sure you have a pre-erased block, or a free area (at the end of the data in the current flash block) to write to.

 

So how much data do you have to write? Multiply that by the write-time.

 

To that you'll have to add the delay from power disconnect to when your hardware recognises the fall. You'll have the raw input DC connected to an ADC input through a divider. There's a filter (time constant) in there. Then you'll be polling the ADC at a specific rate. If you're polling at (say) 10ms, then the worst case will be the code sees the fall 10ms after it has fallen.

 

You might use external hardware to see the voltage fall and then trigger an interrupt, but an ADC is usually easier. If you do use external hardware, make sure it handles a "slow brownout" properly.

 

What do you do if the voltage drops and then recovers without going low enough to reset? Watch out for problems like this.

 

Tom

 

0 项奖励
回复