Keil Logo

Peripheral Simulation

For NXP (founded by Philips) P89V51RD2 — 6 or 12 Clocks Per Machine Cycle (X2)

Simulation support for this peripheral or feature is comprised of:

  • Accurate simulation of special on-chip features.
  • VTREGs (Virtual Target Registers) which support I/O with the peripheral.

These simulation capabilities are described below.

6/12 Clocks per Machine Cycle

This device can run in either 6 or 12 clocks per machine cycle. Enabling 6 clocks per cycle mode allows equivalent processing speed at half the clock frequency. This clock double feature doubles only the internal system clock and the clock used to access internal flash memory, so access to external memory and external peripherals could be affected when it is enabled.

X2 VTREG
Data Type: unsigned char

XTAL VTREG
Data Type: unsigned long

The XTAL VTREG contains the frequency of the oscillator (in Hertz) used to drive the microcontroller. The value is automatically set from the value specified in Project Options - Options for Target. However, you may change the value of XTAL using the command window. For example:

XTAL=12000000

You may also output the current value of XTAL using the following:

XTAL

XTAL may be used in calculations to synchronize external scripts with the simulated microcontroller.

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.