Proteus VSM and Keil Development Tools
This document contains instructions for configuring Proteus VSM to work with the Keil IDE. It also walks through some basic debugging techniques and provides a short tutorial on debugging a simulated VSM circuit with the Keil IDE. It is not intendedin any way to provide a complete list of the features of either product but rather is meant to supply some specific information on the interoperability of the two applications.
For the purposes of the following discussion we will assume that both Proteus VSM and the Keil software has been installed in the default directories on your computer. You will be able to follow thesubsequent steps with demonstration versions of both packages although you will find that you need to purchase the following VSM components if you want to simulate your own designs. ? Proteus VSM Professional (Schematic Capture and Simulation Engine). ? MCS8051/52 Microcontroller Family. ? Peripherals Library. Should you wish to write programs greater that 2K in size you will also need to purchase aProfessional version of the Keil IDE. How does it work? Interaction between Proteus and the Keil IDE is achieved via the Virtual Debug Monitor (VDM) Interface. This interface defines a mechanism whereby the Keil IDE can control a VSM simulation session in much the same way as it might control an in-circuit emulator. Actual communication is achieved through TCP/IP. This has the advantage that adebugging session can be run either on one computer or on two computers without the need for any external hardware other than a typical office network. How do I set it up? Although a lot of the hard work is done for you, some manual configuration is still necessary for successful communication. A step by step guide is given below. ? Ensure that TCP/IP networking is installed on the computer(s) youare going to be using. Almost all users will have this installed by default but it is easily checked. Look for TCP/IP under the following path: Control Panel – Network –Protocols (Windows NT) or Control Panel – Network – Configuration (Windows 95/98) ? Copy the VDM51.dll file from the MODELS directory of your Proteus VSM Installation to the BIN directory of your Keil installation. Typically thesetwo directories are located at: C:\Program Files\Labcenter Electronics\Proteus 5.2 Professional\MODELS and C:\KEIL\C51\BIN ? Using NOTEPAD (or your favourite text editor), edit the TOOLS.INI file that is located in the directory in which you have installed the Keil IDE. The full path to this file is typically C:\Keil\Tools.ini. Towards the bottom of this file under the section [C51] you will findthe line TDRV0=BIN\MON51.DLL (“ Keil Monitor-51 Driver” ) Immediately below this add a line that specifies the location of the copied VDM51.DLL . By default this will be
Proteus VSM and Keil Development Tools
Page 1 of 5
TDRV1=BIN\VDM51.DLL (“ Proteus VSM Monitor-51 Driver” ) This done, you can now save the TOOLS.INI file. Note: If you have the Keil application open you will need to closeit down before the above changes will take effect. You should now have configured the Keil IDE to accept the VDM driver allowing communication between the applications. The next step is to prepare a Keil project for debugging under Proteus VSM.
Preparing a Debug Session
For the purposes of this documentation we will use the C51 calculator project as provided in the samples directory of theProteus installation. A guide to configuring the applications is given below: ? Start up ISIS and load the Keil Calculator sample design. Typically this can be found in C:\Program Files\ Labcenter Electronics\Proteus 5.2 Professional\Samples\C51 Calculator\ Note that if you have the demonstration version of the Proteus software any alteration to the design will disable the simulation functionality....