Data Sheet

LABCENTER ELECTRONICS LTD.
210
By default, a graph based simulation will run from time zero to one second of simulation time. In
our case, it would make much more sense to run from one second to two seconds, thus
skipping the initialization traffic. We can do this by editing the graph (right click and edit
properties) and changing the start and stop time.
Left clicking on an empty area of the schematic will de-select any currently selected
objects. Normally, this is done when you exit an edit properties dialogue form as the
object will still be highlighted.
We are now ready to simulate except for one significant problem. As mentioned previously, you
cannot interact with a circuit during a graph based simulation but we need to switch mode in
order to poll the temperature sensor and trigger the I2C traffic. Since we can't press the button
we need to inject an equivalent signal to the PIC so that the firmware switches into temperature
mode. We do this with generators. Select the generator icon and then the pulse generator from
the parts bin. Place the generator to the right of the button beside the RD2 terminal - you may
need to move the terminal first to make some space on the wire for the generator.