Keil™, An ARM® Company

µVision® User's Guide

Simulation

The µVision3 Debugger incorporates a C script language you can use to create Signal Functions. Signal functions let you  simulate analog and digital input to the microcontroller. Signal functions run in the background while µVision3 simulates your target program.

The µVision3 simulator simulates the timing and logical behavior of serial communication protocols like UART, I²C, SPI, and CAN. But µVision3 does not simulate the I/O port toggling of the physical communication pins on the I/O port.

To provide fast simulation speed and optimum access to communication peripherals, the logic behavior of communication peripherals is reflected in virtual registers that are listed with the DIR VTREG command. This has the benefit that you can easily write debug functions that stimulate complex peripherals.

The chapter contains several Signal function temples that you may use to simulate: