Docsity

circuit maker, Notas de estudo de Mecatrônica

Toggle sidebar
bg1
Basic Tutorial of Circuit Maker
Introduction
In this course, we will be using the free student edition of a commercial program,
CircuitMaker, to design and simulate logic circuits.
Starting a New Design
This program is user-friendly and well designed, but it is not something that you
can just pick up and start using without some trial and error on part of the user, or
with some kind of instruction. This is because it assumes you already know how
to design digital logic circuits, and does not provide any tutorial material.
Next we give you some pointers in order to help you get started and to avoid
some common problems. There is also some help that comes with the program,
but it tends to be sketchy.
1. The first thing to observe is that CircuitMaker can be used to design and
simulate both analog and digital signals. (Wherever you see "Spice" in the
help system, it's talking about analog simulation.) You can build your
circuit with out concern for this fact, but when you simulate it (run it), you
must be sure to do so in digital mode. If you don't, you'll get an error
message, probably telling you that you need a ground node "before a valid
spice Netlist can be generated". To avoid this problem click on the toolbar
button with the symbol for a transistor on it (shown in the next figure).
pf3
pf4
pf5
pf8

Pré-visualização parcial do texto

Baixe circuit maker e outras Notas de estudo em PDF para Mecatrônica, somente na Docsity!

Basic Tutorial of Circuit Maker

Introduction

In this course, we will be using the free student edition of a commercial program, CircuitMaker, to design and simulate logic circuits.

Starting a New Design

This program is user-friendly and well designed, but it is not something that you can just pick up and start using without some trial and error on part of the user, or with some kind of instruction. This is because it assumes you already know how to design digital logic circuits, and does not provide any tutorial material. Next we give you some pointers in order to help you get started and to avoid some common problems. There is also some help that comes with the program, but it tends to be sketchy.

  1. The first thing to observe is that CircuitMaker can be used to design and simulate both analog and digital signals. (Wherever you see "Spice" in the help system, it's talking about analog simulation.) You can build your circuit with out concern for this fact, but when you simulate it (run it), you must be sure to do so in digital mode. If you don't, you'll get an error message, probably telling you that you need a ground node "before a valid spice Netlist can be generated". To avoid this problem click on the toolbar button with the symbol for a transistor on it (shown in the next figure).

Just get in the habit of clicking on the transistor button (it turns into an AND gate) every time you start running CircuitMaker.

2. If you care about the neatness of your diagrams, selectGrid (1) under the

Options menu, and select the "Snap to grid" option.

1

3. Use theDevices menu(2) to select gates, etc. to add to your circuit. Use

the Wire Tool(3) to connect inputs and outputs together.

2

3

  1. The most common input device is the digital logic switch, which alternates between outputting 0 and 1 each time you click on in. You can type a lower-case 's' to get one, or look for it in Hotkeys2 under the Devices menu, or select browse from the Devices menu, and select Digital -> Power.

8 8

  1. You can move waveforms up and down by dragging their names in the

waveforms window. The white boxes(9) to the left of the names are used

for setting breakpoints. Breakpoints can be used to stop the simulation when the certain conditions are met. You can learn how to use breakpoints from the on-line help.

9

  1. To generate input values automatically or to have a clock signal, you have

to generate them using aData Sequencer (10). Type capital G to get one,

or browse to it under Digital/Instruments under the Devices menu. Here's how to set it up so that pins 1-3 on the right side can be used as an inputs signals.

10

Double click on the device, and you will get an "Edit Data Sequencer" dialog box. First of all, resist the temptation to turn on the "Use External Clock" option; it generates values at the proper rate for simulation (one propagation delay per step) all by itself. The data sequencer can generate

simulator. It takes one tick to perform a single step of the simulation for all devices.

Adjust X Magnification to view a larger or smaller section of the waveforms in the digital Waveforms window. By default, the magnification is set to 8. A smaller value zooms out, a greater value zooms in.

Use Simulation Speed to control how fast the simulation runs. This could be useful, for example, if the simulation is running too fast to view the states of a seven-segment display. Setting this field to a lower number slows down the simulation so you can view the changes of the display. Another method of slowing the simulation would be to run it in single step mode or set breakpoints.

Use the Breakpoint and Conditions options in conjunction with the waveforms window to set breakpoints. The following table illustrates the results of various combinations of settings.

Combination Result

Level-And All break conditions must be met before the simulation stops.

Level-Or Any one of the break conditions stops the simulation.

Edge-And The simulation stops when the proper edge occurs on all of the specified waveforms.

Edge-Or The simulation stops if a transition to any of the specified conditions occurs.