Keil Logo

Peripheral Simulation

For Infineon SAB 80C517A — Compare/Capture Register

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.

Compare Capture Register Dialog

Compare Capture Register

The Compare Capture Register Dialog controls the compare and capture functions. The compare function generates an output signal and interrupt when the Timer 2 register equals one of the preset values. The capture function stores the Timer 2 value and generates an interrupt on an external event, or when the capture registers are modified.

System Module Group

  • Mode (Capture/Compare Mode) enables and configures the capture or compare mode for this register.
  • CCx (Capture Compare Registers) displays or sets the value of each of the capture/compare registers (CRC, CC1, CC2, CC3, CC4).
  • IEXx (External Interrupt Request Flags 3 - 6) is set in Capture Mode 0 when an external event causes a capture. It is also set in Compare Mode when a compare event occurs.
  • CCx Pin sets or clears the state of port pins CC0-CC4.

Concurrent Compare Group

  • Add. Outputs defines which pins on Port 5 are activated for a concurrent compare event.
  • COMO (CC4 Compare Mode Select Bit) is set to select Mode 1 for register CC4. Mode 0 is selected if COMO is reset.
  • COCOEN1 is set to enable Concurrent Compare .
  • COCOEN0 when set, uses Port 5 to output signal levels from CC4 when a Concurrent Compare event occurs.
  • COMSET holds a match value for Timer 2. When this value equals Timer 2 (compare event), the pins on Port 5 that correspond with the SETMSK value are set high.
  • SETMSK holds the bits that correspond to the pins on Port 5 that will be set high when COMSET matches Timer 2.
  • ICS (Interrupt Request Flag For Compare Register COMSET) sets when a compare match occurs for COMSET
  • COMCLR holds a match value for Timer 2. When this value equals Timer 2 (compare event), the pins on Port 5 that correspond with the CLRMSK value are set low.
  • CLRMSK holds the bits that correspond to the pins on Port 5 that will be set low when COMCLR matches Timer 2.
  • ICR (Interrupt Request Flag For Compare Register COMCLR) sets when a compare match occurs for COMCLR.
  • T2CM (Timer 2 Compare Mode) selects Compare Mode 1 when set, and Compare Mode 0 when reset. This is only used when Compare Mode is enabled.
  • I2FR (External Interrupt 2 Falling / Rising Edge Flag) is set to capture register CRC on a positive transition at pin INT2.
  • I3FR (External Interrupt 3 Falling / Rising Edge Flag) is set to capture register CRC on a positive transition at pin INT3.
Get more information about the
Peripheral Simulation Capabilities
of the µVision Debugger.
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.