Getting Started with Proteus


Sub-Circuits Application

This example shows how to use the Subcircuits. Let’ s click on “Subcircuit Mode” button

click on the workarea and draw a rectangle as that of the figure below

right click, select “Edit Properties”, and edit box appears to modify the properties

From the main toolbar, select Design menu and Goto Sheet option

in the Hierarchy diagram , we can see two images, we are working on the Root sheet1, SUB is just generated , and its name is the name we’ve edited in the Name property

we want that the block SUB represent the microcontroller atmega 16, This microcontroller will interface a 16 X 2 alphanumeric LCD. Now, let’s add the pins. Because in this case the direction of data transfer is unidirectional, from the microcontroller M16 to the LCD, accordingly, we’ll use only the OUTPUT pins. In the component list, select OUTPUT


the pins can only be placed to the left and right sides of the SUB symbol, add 6 pins and set their tag name ( method : Right-click the OUTPUT placed left-click again , enter the label name in a String ) ,

connecting LCD, the final result is

Now again, Design menu, let’s choose Goto Sheet, and select SUB, click OK

In the empty worksheet, add the ATMEGA 16 component and in the component list, select OUTPUT, add 6 pins and name the label ( they must have the same names used for the SUB symbol ) .

Let’s connect the pins to the ATMEGA16. Load the hex file in the microcontroller and run the simulation. the  final result is


Posted in Proteus and tagged , , , .