This examples implements a very simple calculator to demonstrate how the backup modes of the AT91SAM7L microcontroller family can be used in an actual application.
This example requires an AT91SAM7L-EK board.
The project implements a simple calculator. It has the following particularities:
The point of the example is not the calculator itself, but its use of two backup modes. The first backup mode is used between each keypress. In this mode, the SLCD is still powered, which makes it completely transparent to the user while reducing power consumption. The device instantly wakes-up whenever any key is pressed.
The second backup mode is entered after 10 seconds of inactivity. The SLCD is turned off, but the backup SRAM is still powered. So, whenever the user presses the "wake-up" button, the device returns to the state it was in prior to entering backup.