Content originally posted in LPCWare by frame on Wed Jul 25 06:28:38 MST 2012
Quote:
Data can be saved within the interrupt of the BOD.
Be sure that you have time enough to do so, by using larger capacitors.
Could you explain this in some more detail ?
For systems I know, a brown out happens rather late, when capacitors almost empty.
As second point, I would avoid writng to Flash under tight time and energy constraints. A write may involve an erase,
adding some hundred milleseconds to finish. And to be clear, Flash erase/write consumes a significantl current.
When erasing and programming, charge pump boosters are started to create a voltage of 9..12V internally, required to get
a charge on the isolated gate. I have measured this for a 8 bit controller, which was drawing about 300% of the normal current
in this case (3mA/10mA). In relation, it would be less dramatic for a M3, but can't be ignored when running on cap charges.