Arduino Simulation Projects using Arduino Simulation Libraries.

In the previously discussed article titled “ARDUINO Simulation PCB and 3D Models Libraries for Proteus,” we delved into the process of incorporating ARDUINO simulation components, footprints, and 3D model libraries into Proteus. In continuation of this, our focus now shifts towards understanding the straightforward utilization of these component models to simulate ARDUINO projects effectively. As an illustrative example, we can consider the simulation of a LED control project that has been implemented with a microcontroller. This walkthrough will illuminate how these libraries facilitate seamless project simulation, contributing to an enhanced development and testing workflow.



Simple project implemented with a microcontroller model

Fig. 1 Simple project implemented with a microcontroller model

The ARDUINO UNO simulation model offers us the possibility to substitute the microcontroller, capacitors, and crystal oscillator components. This substitution allows for a comprehensive virtual representation of these elements within the simulation environment.



The same project above implemented with ARDUINO UNO simulation model

Fig. 2 The same project above implemented with ARDUINO UNO simulation model



It’s important to highlight that there’s a distinct numbering for the PB5 output in the two models. Despite this differentiation, it’s worth noting that the .hex file remains compatible with both models, as well as with the project that has been executed using the ARDUINO Pro Mini model.

Right-click on the model and select the option “Edit Properties” from the context menu:



Edit Properties

Fig. 3 Edit Properties



Upload the hex file of the blink project by selecting the “Program File” edit field and loading the respective hex file:



Load the Hex file

Fig. 4 Load the Hex file



To conclude, let’s initiate the simulation by running the process:



Run th simulation

Fig. 5 Run th simulation

ARDUINO PCB 3D Models Libraries for Proteus.

Discover the boundless potential of Arduino, the remarkable open-source microcontroller board, renowned for its seamless integration of hardware and software. Embraced by hobbyists, educators, and experts alike, Arduino stands as a beacon of versatility, user-friendliness, and programmability. In this comprehensive tutorial, we delve into the world of ARDUINO PCB 3D Models Libraries for Proteus, unveiling a step-by-step guide to simulate, visualize intricate layouts, and seamlessly incorporate lifelike 3D models of iconic boards like ARDUINO UNO, ARDUINO MEGA, and ARDUINO Pro mini within the Proteus environment. Elevate your electronics design journey and harness the power of these meticulously crafted libraries, revolutionizing the way you bring your projects to life.

This article is free, login to read it.

[attachments title=”ARDUINO Simulation PCB 3D models for Proteus Libraries ” logged_users=2 include=”6392″]

Premium Content

Login to buy access to this content

Coil Tester SPICE simulation using Proteus.

Ing. Cristoforo Baldoni

This article presents a detailed exploration of the Coil Tester SPICE Simulation using Proteus, focusing on the simulation (version 7 and higher) of an economical yet highly effective coil tester. Crafted for DIY enthusiasts, this In-circuit LOPT (Line OutPut Transformer) Tester, designed by Bob Parker, offers a practical means to assess coil performance by illuminating an array of LEDs in distinct colors. Notably, it doesn’t measure the inductance value itself, but rather gauges the ratio between the resistive and inductive components. With its ability to identify shorted turns, in components such as yoke wounds and SMPS transformers, this tester proves indispensable. Components with low losses activate four or more LEDs, while those with short circuits trigger minimal or no LED response. Within this article, we delve into implementing and simulating the circuit in Proteus, encompassing three key segments: the low-frequency pulse generator, the loop amplitude comparator, and the LED bargraph display. By modeling a coil and experimenting with various inductive and resistive values, we validate the simulation’s accuracy. Access the downloadable Proteus simulation files for this device upon reading further.

Premium Content

Login to buy access to this content
Proteus Video tutorials

Proteus Video tutorials

Welcome to the Proteus Video Tutorials page, an informative destination crafted to provide you with a seamless and insightful exploration of the inherent capabilities within the Proteus simulation software. Within this dedicated space, you will embark on a journey through a curated selection of YouTube videos, each chosen to present a comprehensive panorama of Proteus’s rich feature set.

These Video tutorials span a diverse array of functionalities, encompassing everything from the analog circuit simulation to the dynamic landscape of digital circuit emulation. A particularly distinctive facet of this tutorial collection is its coverage of circuits featuring programmable microcontrollers, showcasing an important attribute of the Proteus software.

By engaging with the Proteus Video Tutorials, you will effortlessly acquire a comprehensive understanding of the multifaceted world of circuit design and simulation, all facilitated by this advanced software. Whether you’re a novice seeking an introduction to circuitry or a seasoned designer seeking to delve into the depths of intricate PCB layout, these tutorials are designed to empower and equip you with the skills you need.

About Proteus: Proteus is a robust and versatile simulation software widely acclaimed by electronics enthusiasts, students, and professionals alike. Renowned for its user-friendly interface and comprehensive toolset, Proteus facilitates the design, simulation, and testing of circuits in a virtual environment. Its prowess extends to both analog and digital circuitry, enabling accurate analysis and optimization before real-world implementation. The integration of microcontroller simulation elevates Proteus to a league of its own, providing a platform for exploring the functionality of embedded systems.

Proteus offers an expansive array of features that cater to various skill levels and requirements. The Proteus Video Tutorials page is your gateway to unraveling the great potential this software holds, guiding you through its intricacies and empowering you to bring your circuit designs to life with confidence and precision.

For a detailed walkthrough on creating and simulating your initial circuit using NI Multisim, you can consult this article.



DC Machine and Motor Speed Drives Course with Proteus!!



TopicVideo
How to simulate a simple circuit with Proteus
How to create a component symbol in Proteus
How to perform a Time domain analysis in Proteus
Security Alarm System Simulation
Buck Boost Converter Simulation
Logic Gates Proteus Simulation
Microcontroller Simulation with Proteus
Arduino Proteus Simulation
How to design a circuit board layout with Proteus ARES


Digital Electronics for Beginner’s:- Mastering with PROTEUS!!

How to import PSpice Models into Proteus: A Step-by-Step Guide

Welcome to our comprehensive guide on enhancing your circuit design capabilities! This article is dedicated to unlocking the potential of Proteus by seamlessly integrating additional PSpice models into the platform. While Proteus offers a rich array of built-in models, our focus lies in expanding your toolkit by incorporating PSpice models, allowing you to access a wider range of options for your circuit simulations. If you’ve ever wondered “How to Import PSpice Models into Proteus,” you’re in the right place. In the following sections, we’ll provide you with a step-by-step guide to make this integration process smooth and efficient. Whether you’re an aspiring electronics enthusiast or a seasoned professional, this resource will empower you to take your circuit simulations to the next level.

If you’re not familiar with this powerful simulation environment, to take your first steps with Proteus, you can refer to this article.

Let’s now explore the process of importing a SPICE model using the “.model” statement into Proteus. Consider a scenario where we aim to import the PSpice model of an NPN Radio Frequency transistor, specifically the BF199. In the image below, we have the PSpice model of the transistor.





Open Proteus and click on the “P” button of “Device” to select the generic NPN device:





write “NPN” on the keywords edit field and select “Generic NPN bipolar transistor”



GenericNPN

Master the art of circuit analysis with SPICE using Proteus!

After placing the component on the layout, click on “Text Script Mode” button of left side toolbar and left mouse click on the layout, the Edit Script Block window pops up







Now, copy the text of the source SPICE model and paste it between the two statements:

*SCRIPT SPICE

*ENDSCRIPT

as in the figure below



DC Machine and Motor Speed Drives Course with Proteus!!

It’s important to copy the source text between the two statements; otherwise, the simulator will issue a warning, indicating that it’s unable to recognize the model, and it will replace it with a default NPN primitive.

Arduino Simulation with Proteus

Arduino, a versatile and widely embraced open-source electronics platform, stands as a cornerstone in the realms of both education and professional innovation. At its essence, Arduino comprises a series of microcontroller boards paired with an intuitive software ecosystem, designed to facilitate the creation of interactive and programmable projects. Catering to a diverse audience, from students and hobbyists to seasoned engineers, Arduino enables individuals to translate their creative ideas into tangible prototypes and functional systems.

In the educational sphere, Arduino serves as an invaluable tool for introducing fundamental concepts of electronics and programming. Its user-friendly interface and extensive online resources make it accessible even to those with limited technical backgrounds, nurturing a generation of problem solvers and tinkerers. Through hands-on experimentation, students learn to code, wire circuits, and witness real-world outputs, fostering a deeper understanding of the intricate interplay between software and hardware.

Beyond the classroom, Arduino finds its place within the professional landscape as a rapid prototyping powerhouse. Its adaptability, cost-effectiveness, and robust community support make it a go-to choice for swiftly iterating through ideas and proofs of concept. Entrepreneurs, engineers, and innovators across various industries harness Arduino’s capabilities to bring products to market faster, all while maintaining the flexibility to customize solutions to specific needs.

On this article, we will explore how straightforward it is the Arduino Simulation using Proteus software, employing nothing more than a microcontroller, an oscillator, and two capacitors. Arduino simulation projects through Proteus empowers us to expedite the design process and implement immediate modifications before transitioning to the physical prototype stage.

To familiarize yourself with Proteus software, you can refer to this article to get started with this powerful design and simulation tool.





Let’s execute the ISIS Schematic:



isisprodemo


To simulate the core of Arduino platform, we require just a handful of components: the ATmega328P Microcontroller, a crystal, and two capacitors. Let’s proceed to locate these devices within the library:



The Art of Doing: Electronics for Everyone
Start designing, building, and playing with your own circuits today!!

Click the “P” button and input “atmega” as the keyword:



atmega328p


Double-click on the model, and it will appear in the Devices panel:





Perform the same steps for the Crystal and Capacitor components:



crystal


cap


Getting Started with Proteus PCB

In this article, we will examine the essential procedure for moving from a complete circuit diagram, in this case featuring a PIC microcontroller in Proteus schematic, to its associated PCB project in Proteus PCB. This step by step guide aims to provide a systematic and informative guide, to facilitate the seamless conversion of your electronic circuits into tangible and functional prototypes through the utilization of Proteus PCB

Let’s commence with this comprehensive Proteus schematic.



Proteus_page117_image1


this microcontroller circuit has the following components:

4 diodes 1N4148

2 NPN transistors BC547

2 electrolitic capacitors CAP-ELEC

2 zener diodes a 3EZ8V2D5 and a 3EZ5V1D5

3 resistors RES

a connector D-type 9 pin female CONN-D9

a PIC microcontroller PIC16F877

The PIC16F877 features two concealed pins, VDD and VSS. The VDD pin should be designated as ‘POWER,’ and the VSS pin should be assigned as ‘GROUND.’ When incorporating a component in Proteus Schematic, certain components are preconfigured with a corresponding PCB footprint, while others may not possess an associated PCB footprint and necessitate manual addition. In such instances, it is imperative to manually include the appropriate footprint, as illustrated in the ‘CAP-ELEC’ example below:





Open the Properties dialog box for the CAP-ELEC component. Click the “?” Button (in the latest versions the binoculars icon) to open the PCB package selection dialog



Proteus_page118_image1


Select an appropriate PCB footprint, and then click ‘OK’ to confirm your choice. Proceed to select PCB footprints for all the components. Next, open the Netlist Compiler by navigating to the ‘Tools’ menu within Isis Proteus (Tools -> Netlist Compiler). A settings dialog box will appear; please retain the default settings and click ‘OK’ to generate the netlist file. Once the file is generated, access ARES software by selecting ‘Tools -> Netlist to ARES’ from the ‘Tools’ menu. Alternatively, you can utilize the corresponding button on the toolbar to perform this operation.



Proteus_page119_image3


Note: in the latest versions of Proteus it is sufficient to click on the PCB Layout icon:



DC Machine and Motor Speed Drives Course with Proteus!!



As we can see, the workspace is currently empty, and our intention is to utilize all the elements listed on the left.

Before proceeding with component placement, it is essential to create a border. To achieve this, we utilize the ‘2D Graphics Box Mode’ button to draw the border:





Prior to initiating the drawing procedure, it is necessary to make a color selection. Given the border’s nature, we have chosen the color yellow (Board Edge), as discernible within the settings tool situated at the lower section of the main window:





Click within the workspace, hold down the left mouse button, drag the cursor to define a rectangle of suitable dimensions, and then release the mouse button.

If you wish to make adjustments to the board’s size at a later stage, you can follow these steps: Click on the ‘2D Graphics Box’ rectangular icon once more, right-click on any of the board’s corners to reveal a control point, and then drag this control point to resize the board. To return to the components placement view, simply click the icon located below:





To populate the board with components, please follow these steps. For an overall perspective, press the ‘F8’ key. The outcome will be as follows:



Proteus_page120_image1


How to connect Proteus with Keil IDE

 

Proteus 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. Proteus 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.

In the context of Proteus with Keil, here’s a straightforward example illustrating a debugging session of a Proteus simulation project with Keil. Communication is established via TCP/IP. The key advantage of this method is that a debug session can be conducted on either a single computer or two computers connected through the local network, all without the need for any external hardware.

The heart of the circuit features an AT89C51 microcontroller. A seven-segment 6-digit LED display is interfaced with the microcontroller. The segment code pins (a, b, c, d, e, f, g, dp) are linked to microcontroller port P1, while six pins of port P2 are connected to the digit code pins (1, 2, 3, 4, 5, 6). The objective is to display LED characters with a strobe effect.

In case you’ve never worked with Proteus, this article provides a guide to get started.



Control Anything Anywhere without Internet with Arduino!!



this is the schematic of the AT89C51 microcontroller connected to the 6-digit LED display



Proteus_page84_image3


Let’s create the circuit schematic:





Add the necessary components to the object selection window. Select the components for the schematic by clicking the Object Selector button, as depicted in the image below:





In the ‘Pick Devices’ window, modify the ‘Keywords’ input to ‘AT89C51’ to search for the object library, and the search results will be displayed as illustrated:



Proteus_page86_image1


“In the ‘Results’ column, choose the first item, ‘AT89C51’. Then, in the ‘Pick Devices’ window, modify the ‘Keywords’ to ‘7 SEG’ and select ‘7SEG- MPX 6 – CA – BLUE’ (6-digit common anode 7-segment LED display), as demonstrated in the image:



Proteus_page87_image1


Lastly, modify the ‘Keyword’ to ‘RES’ and choose the single result, as indicated:





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

wiring up in Proteus

Wiring up In Proteus.

In the field of electronic design and simulation, the process of wiring up in Proteus holds a central significance, as it entails the establishment of intricate connections among electronic components. Proteus, a widely adopted software suite for circuit design and simulation, offers a range of techniques for establishing these crucial connections within electronic circuits. From conventional point-to-point wiring to advanced automated routing, proficiency in the practice wiring up in Proteus environment is essential for both newcomers and seasoned electronics enthusiasts. This article endeavors to delve into the various wiring techniques available in Proteus, elucidating how each approach can be effectively employed to facilitate the creation and testing of electronic circuits. Whether one is embarking on their journey in electronic design or seeking to augment their competence in this potent simulation environment, this comprehensive guide aims to illuminate the path to proficient circuitry integration in Proteus.Inizio modulo

In this article, you will find a guide for getting started with Proteus schematic.



Connection between two objects: Line automatic path function (Wire Auto – Router or WAR)

Left-click on the first object’s connection point. If you want Proteus to automatically provide the line path, simply left-click on another connection point.





On the other hand, if you want to manually determine the alignment path, simply click the left mouse button at the desired point where you want a corner.





The automatic wire path function eliminates the need for manually drawing each specific wire path. This feature is enabled by default but can be disabled in two ways. If you simply left-click on the two connection points, WAR will automatically select a suitable path. However, if you click on a connection point, followed by one or several non-connected point positions, Proteus will interpret this as a manual alignment path request. It will allow you to click at each corner of the path and complete it by left-clicking on another connection point. Another method to deactivate the WAR mode is by accessing the Tools menu and using the WAR command to disable it.





This feature becomes highly useful when you need to establish a direct connection between two connection points, such as in the case of a diagonal path:





Arduino Water Level Checker with Automated Water Pump
You will learn how to use a float sensor to measure the water level in a tank, and how to use a relay to control a pump



Repeat wiring (Wire Repeat)

Assuming you want to establish a connection between an 8-byte ROM data bus and the main data bus circuit, we have both the ROM and the bus, as depicted in the picture below:





First, left-click on A, and then left-click on B to draw a horizontal line between A and B. Double-click on C to activate the repeat wiring function, which automatically wires C to D. Double-click on E, and it will be connected to F. The repeat wiring function replicates an entire line path. If the auto-repeat function is enabled, it allows you to connect different wires or pins to the bus. Simply connect the first one, and then double-click on each subsequent pin, and the connections will be established automatically.



Drag line (Dragging Wires)

There are special methods available for wiring two components. If you position the mouse pointer anywhere between the ends of the wire, a corner will appear, allowing you to adjust the wire’s path by dragging the corner. It’s important to note that for this to function correctly, the wire connected to the object must not have a label; otherwise, Proteus will interpret it as an attempt to move the object instead.





Move segment or segments group  (To move a wire segment or a group of segments)

If you wish to move and drag a selection window as if it were a single line segment, follow these steps: Left-click on the “Move” icon located in the toolbox:





Left-click to select the final position of the block. If the newly created wiring is not satisfactory, you can always use the Undo command to revert the changes.



Arduino Solar Tracker
Make Your Own Arduino Solar Tracker in a Step by Step Manner, learn and have fun Practicing Arduino!!

Getting Started with Proteus Simulation

Proteus is a comprehensive and highly regarded software platform widely employed in the field of electronics for its capabilities in electronic design and simulation. This versatile tool caters to a broad spectrum of users, including engineers, students, and electronics enthusiasts, offering a rich set of features that facilitate the development and testing of electronic circuits.

At the core of Proteus lies its robust simulation engine, which is instrumental in enabling users to emulate and test electronic designs with precision and efficiency. Proteus simulation provides users with the means to thoroughly assess the functionality and performance of their circuits, without the need for physical prototypes.

Proteus stands out for its capacity to simulate both digital and analog systems with ease. This means users can create intricate digital logic circuits, microcontroller-based projects, and complex analog circuits, all within a unified environment. This adaptability renders Proteus simulation a valuable tool for a broad spectrum of applications, from elementary LED circuits to advanced communication systems.

Moreover, Proteus simulation extends beyond mere static circuit analysis. It offers real-time interaction capabilities, particularly beneficial for projects involving microcontrollers and sensors. This functionality allows users to observe how their circuits respond to various inputs and stimuli. Running Proteus simulations translates into efficient resource utilization, as it mitigates the need for extensive physical prototyping and testing.

Proteus further complements its capabilities with a robust PCB (Printed Circuit Board) design module that seamlessly integrates with the simulation environment. This feature facilitates the design of PCB layouts based on circuit schematics, ensuring a seamless transition from concept to manufacturing. The ability to simulate the entire electronic system before progressing to PCB layout and fabrication is advantageous, as it facilitates the early detection and resolution of potential issues, thereby saving both time and resources.

In this article, we will introduce you to the world of Proteus simulation and guide you through the initial steps of harnessing its power, drawing a circuit within the “Schematic Capture” design environment. We’ll walk you through a step-by-step tutorial, showcasing how to interface a microcontroller with an LCD display, allowing you to gain practical experience while using Proteus to bring your electronic designs to life.

In addition, within this article, we will also delve into the graphical modification of existing components and explore the use of Subcircuits to streamline our circuit designs, enhancing our efficiency in Proteus simulation.

To expand the SPICE model library and learn how to import PSPice models into Proteus, please refer to this article.





After installing Proteus, run Proteus Professional; the following window interface will appear:



windowinterface


The following is a brief description of each part of the window interface:

1. Schematic Editor window (The Editing Window):

As the name implies, this window is used for drawing schematics. The blue box serves as the editable area where components can be placed. Please note that this window does not have a scroll bar; you can utilize the preview window to adjust the schematic’s visual range.

2. Preview window (The Overview Window):

This window serves two purposes. Firstly, when you are in the component list and select a component, it provides a preview of the chosen element. Secondly, when your mouse focus is on the main schematic editor window (i.e., when you place a component into the schematic editor window or after opening the Schematic Editor window, simply clicking the mouse), it displays a thumbnail view of the entire schematic diagram. Additionally, it highlights a green box within this thumbnail, representing the content currently visible in the main schematic window. By clicking on this green box with the mouse, you can alter its position, consequently adjusting the schematic’s visual range.



Proteuspage28image3


3. Model Selection Toolbar (Mode Selector Toolbar):



Main Modes:



in order from left to right let’s see what the various icons represent:

1 * Select elements (components) ( selected by default )

2 * Place the connection point

3 * place a label ( the bus will be used )

4 * Place text

5 * for drawing bus

6 * for placing subcircuits

7 * for instant editing component parameters ( first click on the icon and then click the element you want to modify )



Tools:



1 * terminal interface (terminals): There VCC, ground , output, input and other interfaces

2 * Device Pin : for drawing pin

3 * Emulation chart (graph): used for various analyzes, such as Noise Analysis

4 * recorder

5 * signal generator (generators)

6 * Voltage Probe: to be used when using simulation charts

7 * current probe : Using simulation to be used when using simulation charts

8 * Virtual Instrument :  in the image above, an oscilloscope



2D graphics (2D Graphics):



1 * Drawing Lines

2 * draw a variety of boxes

3 * draw various circles

4 * draw a variety of arc

5 * draw various polygons

6 * draw various text

7 * draw symbols

8 * paintings origin , etc.



4 . Component List (The Object Selector):

For the selection of components (components), terminal interface (terminals), the signal generator (Generators), simulation chart (graph) and so on. For example , when you select ” Component (Components) “, click the ” P ” button will open the selected component dialog box, select an element after ( click on the ” OK ” after ) , the device will be displayed in the list of elements , later to use this element, just in the component list can be.



5 . Toolbars direction (Orientation Toolbar):

Rotate :



The rotation angle can be an integer multiple of 90 .

Flip:



Flip Horizontal and vertical flip finish . Use: Right-click the component , and then click ( left-click ) the corresponding rotation icon.





6 . Simulation Toolbar



1 * Run

2 * single-step operation

3 * Pause

4 * Stop



AVR microcontroller simulation example:

We aim to design an AVR driver for an LCD1602 and monitor its data lines using an oscilloscope. It’s worth noting that various compilers generate different file formats. For instance, ICC produces COF files, IAR generates D90 files, and GCC outputs COF and ELF formats. Fortunately, Proteus supports multiple file formats including COF, D90, HEX, and more, making it a versatile platform for our project.

When you launch Proteus Professional, the following window will appear:



Proteus_page30_image2


1, Add the components:

in this case, the ATMEGA16 and LM016L (LCD1602). Afterward, we will add the oscilloscope. Click the “P” button to open the Component dialog box.





Proteus_page31_image2


Entering “ATMEGA16” inside the “Keywords” field of the dialog box will yield the following results:



Proteus_page31_image1




Click “OK” and close the dialog box. Afterward, you will find the components listed in the component list, including ATMEGA16 and LM016L. This concludes the process.





2 Place the components:

In the component list, select “ATMEGA16,” and then in the schematic editor window, left-click to place ATMEGA16 in the Schematic Editor window. Follow the same procedure to place LM016L as well.



Proteus_page32_image5


Click on the ‘terminal interface’ icon, select ‘Ground’ to place the ground reference on the drawing.





left-click to place the “ground” symbol into the Schematic Editor window.



Click on the ‘Virtual Instrument’ icon and select ‘oscilloscope’:





left-click to place the oscilloscope symbol into the Schematic Editor window:





Place the components, making sure to position them inside the blue workarea box.



3 . Connection

The terminals of the LCD, VSS, VDD, and VEE do not need connections; they are by default: VSS = 0V, VDD = 5V, VEE =-5V, GND = 0V. Connect the RS, RW, and E terminals, as well as the terminals from D4 to D7, as shown in the picture below.





4 . Add a simulation file.

Right-click on ATMEGA16 first, then select ‘Edit Properties.





In the Program File field, click on the File Browser dialog box, locate the ‘lcd_C.hex’ file, click OK to complete the file addition. Set the Clock Frequency to 8MHz, and click OK to exit



5 . Simulation

Click Start simulation :







Description: The red color of the LCD terminal indicates a high voltage level, while blue represents a low voltage level., gray represents uncertainty level (floating). By running the Debug menu, you can view AVR-related resources.



6 the source code debugging

Proteus supports COF file debugging. Make sure to generate this file in your compiler options. Finish the schematic drawing and add the debug files (COF file), then click the icon below:





The AVR Source Code window will appear. If it doesn’t appear in the debugger, navigate to the Debug menu to locate it.



Proteus_page35_image2


Let’s discuss these icons:





1 * continuous operation , it will exit the single-step debug state , and close the AVR Source Code window

2 * single-step operation , skip directly encountered Functions

3 * single-step operation , will enter its internal encountered Functions

4 * out of the current function , when using 3 * into the internal function , use it immediately on exiting the function returns a function , it should be seen in conjunction with the 3 *

5 * run to the line where is the mouse

6 * Add or remove a breakpoint , the breakpoint is set using the program will stop at the breakpoint.