|
|
|||||||||
IntroductionCompared to the earlier implementations, today's Flash memories usually require less complex programming algorithms and they are now divided into several sectors. The benefit of having sectors is that the Flash memory is sector-erasable, meaning you can erase one sector at a time. In the past, erase commands erased the entire memory chip - therefore to keep a working copy of that data during run-time, an application required additional memory. Since Flash memory is integrated on-chip with microcontrollers, its usage became even easier. Having Flash memory and a microcontroller on the same chip opened up the opportunity to take advantage of the "additional intelligence".
Being ROM, this code area is not erasable; applications can rely on it as always being there. It can be used for recovery of a system, by downloading new code into the Flash memory via the serial port. Because of this feature, this code is also referred to as "boot loader". In this article, we will not only take a closer look at different programming methods like ISP and IAP, we will also give guidelines on how to implement fail-safe systems using Flash memory and how Flash can be used efficiently to store variable data. [ Introduction | ISP vs IAP | Self-Recovery | Storing Variables | Flash Life-Time | Summary ] |
ESAcademy, 2000 All materials |