Keil Logo

Peripheral Simulation

For Infineon C166 (all Variants) — Reset Configuration

Simulation support for this peripheral or feature is comprised of:

  • Dialog boxes which display and allow you to change peripheral configuration.
  • VTREGs (Virtual Target Registers) which support I/O with the peripheral.

These simulation capabilities are described below.

Simulator Setup Dialog

Simulator Setup

The Simulator Setup dialog allows you to specify the reset configuration for the simulated MCU. This dialog available under Options for Target - Debug Tab - Simulator - Settings Button. At reset, certain chip pins are used to configurate the operation of the MCU. You may specify the following configuration settings to use.

  • BUSACT# is the state of the BUSACT# pin at reset.
  • EBC0 is External Bus Configuration 0. EBC0 and EBC1 are used to configure the bus mode (8-bit or 16-bit and multiplexed or non-multiplexed) of the simulated MCU. The bus configuration is necessary for calculating program execution times.
  • EBC1 is External Bus Configuration 1. EBC0 and EBC1 are used to configure the bus mode (8-bit or 16-bit and multiplexed or non-multiplexed) of the simulated MCU. The bus configuration is necessary for calculating program execution times.

_BUSACT VTREG
Data Type: unsigned char

The _BUSACT VTREG contains the status of the BUSACT pin at reset. It is required to calculate the execution time of the MCU instructions. To set the value of the BUSACT pin, you must set _BUSACT to the desired value (0 or 1) and RESET the simulated MCU (you may use a RESET command) to load the value into the simulated MCU. For example:

_BUSACT=1
RESET

Note that the underscore in _BUSACT is used because BUSACT is also a bit in the SYSCON register.

EBC VTREG
Data Type: unsigned char

The EBC VTREG contains the External Bus Configuration value at reset. This VTREG allows you to configure the bus configuration used by the simulated MCU. This is required to calculate the execution time of the MCU instructions. The following values for EBD are valid:

  • 0: 8-bit data bus, non-multiplexed
  • 1: 8-bit data bus, multiplexed
  • 2: 16-bit data bus, non-multiplexed
  • 3: 16-bit data bus, multiplexed

To change the bus configuration, you must set the EBC and reset the simulated MCU (using the RESET command). For example:

EBC=2   /* 8-bit multiplexed */
RESET
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.