Keil™, An ARM® Company

Device Database®

Product Information

Device Database®

Evaluation Software

Compliance Testing

Distributors

  • Overview

    Select your country for a list of the
    distributors available in your area.

Peripheral Simulation

For NXP (founded by Philips) P89LPC917 — Power Saving Modes (Idle and Power Down)

Simulation support for this peripheral or feature is comprised of:

  • Example code which helps you get started quickly.

These simulation capabilities are described below.

Power Down Mode Example Program

The Keil Debugger fully simulates the effects of Power Down Mode. When your target program initiates Power Down Mode program execution stops until the next external interrupt is triggered or until the MCU is reset. The following example code shows how to enter Power Down Mode.

while (1)          // Repeat Forever
  {
  PCON |= 0x02;    // Enter Power Down Mode
  count++;         // External Interrupt or Reset Wakes-up MCU
  }
Get more information about the
Peripheral Simulation Capabilities
of the µVision Debugger.