The attached schematic shows a low drop 200mA regulator that can be shutdown by the host PICAXE. There are a number of reasons why it can be an advantage to automatically power down a battery-powered system in an orderly way. For example, when a logger has filled memory and wants to save power, or to protect a rechargeable battery from dropping to a damagingly low voltage.
The regulator is powered-up by momentarily activating the push-button. The first action required by the PICAXE, when it comes out of reset, is to hold the regulator on by taking OUT high. Provided that the push-button is no longer activated, the system can be powered-down at any time by taking OUT low. One reason for the PICAXE to do this might be when a low battery (< 5.5V) warning has been detected at IN. There is not normally a need for a separate ON/OFF switch because battery drain in the powered-down state is only in the order of micro Amps.
The regulator is powered-up by momentarily activating the push-button. The first action required by the PICAXE, when it comes out of reset, is to hold the regulator on by taking OUT high. Provided that the push-button is no longer activated, the system can be powered-down at any time by taking OUT low. One reason for the PICAXE to do this might be when a low battery (< 5.5V) warning has been detected at IN. There is not normally a need for a separate ON/OFF switch because battery drain in the powered-down state is only in the order of micro Amps.