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 Infineon C517A-L — Timer 2

Simulation support for this peripheral or feature is comprised of:

  • Dialog boxes which display and allow you to change peripheral configuration.

These simulation capabilities are described below.

Timer/Counter 2 Dialog

Timer/Counter 2

The Keil Debugger simulates all aspects of Timer/Counter 2. The configuration is reflected in the Timer/Counter 2 Dialog that you may open from the Peripherals Menu. You may use the controls in the dialog to override the settings configured by your target program. This allows you to learn how the timer/counter works by interactively changing the configuration settings.

  • Mode settings enable the timer and select either Timer or Counter operation for Timer 2.
  • Reload settings enable and select the reload trigger source for Timer 2.
  • T2CON (Timer Control Register) holds the Timer 2 control and configuration bits.
  • T2 (Timer/Counter 2) holds the value of Timer/Counter 2.
  • CRC (Compare/Reload Capture Register) holds the 16-bit value used for Timer 2 reload or capture operations.
  • T2EX (Timer 2 Capture/Reload Trigger) is an external input (P1.1/AN1/T2EX) for up/down counting or triggering a timer 2 reload.
  • T2 Pin is an external input pin for counter 2(P1.1/AN0/T2).
  • T2PS0 (Timer 2 Prescaler Enable 0) when set divides the timer 2 input clock value by 2.
  • T2PS1 (Timer 2 Prescaler Enable 1) when set divides the timer 2 input clock value by 4.
  • TF2 (Timer 2 Overflow Flag) is set when a Timer 2 overflow occurs.
Get more information about the
Peripheral Simulation Capabilities
of the µVision Debugger.