How to connect Proteus with Keil IDE

Thanks for this article to archeng504

Proteus  ISIS can performs a mixed-mode SPICE circuit simulation of analog devices with a variety of models of microprocessors for a complete microcontroller based design. This  feature is called VSM Virtual System Modelling. It can performs RS232 dynamic simulation, I2C simulation and debugging , SPI simulation and debugging, USB simulation, keypad and LCD system simulation functions,  it also has available various virtual instrument devices , such as oscilloscopes, logic analyzers, signal generators. ISIS Also supports third-party software to compile and debug environment, such as Keil uVision IDE software. Keil uVision is an integrated development environment that combines project management, code editing, program debugging and other facilities in a single environment.

Here a simple example to demonstrate a debugging session of a Proteus simulation project using  Keil . The communication is achieved through TCP/IP. This method has the advantage that a debug session can be run either on one computer or on two computers using the local network without any external hardware.

The core of the circuit is a microcontroller AT89C51.  A seven segments 6 digit LED dispaly is connected to the microcontroller. The segment code pins (a, b, c, d, e, f, g, dp) are connected to the port P1 of the microcontroller, six pins of the microcontroller port P2 are connected to the digit code pins ( 1, 2 , 3, 4 , 5, 6 ). We want display LED charactures with a strobe effect.

Proteus_page84_image3

 

Let’s draw the circuit schematic

Add the required components to the object selection window. Pick the components into the Schematic: click the Object Selector button, as shown

On the “Pick Devices” window edit the “Keywords” Input  “AT89C51”  to find the object library , and the search results are displayed as shown:

Proteus_page86_image1

In the “Results” column list,  select the first item “AT89C51”, again on the  “Pick Devices” window edit the “Keywords” “7 SEG” and choose the “7SEG- MPX 6 – CA – BLUE”, (6 -digit common anode 7 LED display ) as shown in the image

Proteus_page87_image1

Finally, edit the ” Keyword” RES, and select the single result as shown

Click the “OK” button to add the devices window.