Peripheral Simulation
For Infineon C165 — 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
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