This design example allows you to implement a battery-powered system’s power-down circuit using Altera® MAX® II devices.
The circuit in Figure 1 shows how an Altera EPM570-T100 CPLD with an external P-Channel MOSFET, diode(s), and resistors can be used to create a power-down system. The P-Channel MOSFET, or FET, controls the power supply from the battery to the CPLD and any other selected components in the system. The Gate of the FET is controlled by the CPLD and the switches in the application. The FET Gate is enabled when a switch is pressed. The CPLD has a small embedded timer that monitors switching activity and system activity, and once a specified period of inactivity is detected, the FET is disabled, powering down the CPLD and other components on the same power node.
Download the Power-Down design graphic editor and other files to support this implementation:
The use of this design is governed by, and subject to, the terms and conditions of the Altera Hardware Reference Design License Agreement.
Figure 1. Block Diagram for Power-Down Circuit Using MAX II Devices

For more information on using this example in your project, see:
- AN 422: Power Management in Portable Systems Using MAX II CPLDs (PDF)
- CPLD Automatically Powers Itself Off (EDN article (PDF)
Design Examples Disclaimer
These design examples may only be used within Altera Corporation devices and remain the property of Altera. They are being provided on an “as-is” basis and as an accommodation; therefore, all warranties, representations, or guarantees of any kind (whether express, implied, or statutory) including, without limitation, warranties of merchantability, non-infringement, or fitness for a particular purpose, are specifically disclaimed. Altera expressly does not recommend, suggest, or require that these examples be used in combination with any other product not provided by Altera.
