Overview
The Project
Configuring the Plugin
Conclusion

This tutorial will show how to configure and use the stop watch, signal generator and digital voltmeter (DVM) plugins.
The voltmeter will be configured to read the voltage supplied by the signal generator to the input. The stopwatch will be configured to be triggered by the output and stopped by the input from the signal generator.
The program is simple but effective for our purposes. The code takes an input form PORT C and outputs to the respective pin on PORT B.
.
.
.
//Infinite loop
while( 1 )
{
clear_wdt();
portb = port_c;
};
.
.
.
Once the project has been built enter debug mode by clicking the bug icon on the tool bar. Sect the plugins menu -> Digital Volt Meter, Signal Generator and Stop Watch.
![]() |
Configure your voltmeter like this:
|
![]() |
Configure your signal generator like this:
|
![]() |
Configure your signal generator like this:
|
Run the simulation by pressing the run button on the tool bar or pressing F5.
The DVM will change reading as the signal changes.
As the voltage crosses the 2.5 volt threshold port RC0 will change states...
...causing port RB0 to go high...
...triggering the stopwatch to start timing
When the signal on RC0 rises again the stopwatch is stopped and the time is listed in the log.
If the simulation speed can be changed by adjusting the signal generators frequency setting.
Change the signal type to observe the difference in the voltage change rates and the timing changes.
The DMV is useful when the instantaneous voltage level on an external pin is needed.
Precise timing can be accomplished using the stopwatch plugin.
The most common regular wave forms can be input using the signal generator plugin.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
THE AUTHOR RESERVES THE RIGHT TO REJECT ANY LICENSE (REGISTRATION) REQUEST WITHOUT EXPLAINING THE REASONS WHY SUCH REQUEST HAS BEEN REJECTED. IN CASE YOUR LICENSE (REGISTRATION) REQUEST GETS REJECTED YOU MUST STOP USING THE SourceBoost IDE, C2C-PLUS, C2C++, P2C-plus and BoostC COMPILERS AND REMOVE THE WHOLE SourceBoost IDE INSTALLATION FROM YOUR COMPUTER.