Device Database®

Peripheral Simulation

For Atmel AT8xC5122 — Power save modes (Idle & 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.

Idle Mode Example Program

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

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