How to use the

Stop watch, Signal Generator and Digital Voltmeter Plugins


Index

Overview
The Project
Configuring the Plugin
Conclusion

                        

 

Overview

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 Project

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.

 

Configuring & Using the Plugins

Configure your voltmeter like this:

  • Connected to port RC0

Configure your signal generator like this:
  • Amplitude to 5V
  • DC offset to about 2V
  • About 300 Hz
  • Sine wave signal type
Configure your signal generator like this:
  • Start triggers on the rising edge of the signal on RB0
  • Stops triggers on the rising edge of the signal on RC0
  • Set for repeat mode

Run the simulation by pressing the run button on the tool bar or pressing F5.

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.

Conclusion

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.

Return to Plugin Help

 

 

 

Legal Information

  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.


http://www.picant.com/c2c/c.html
Copyright © 2003-2006 Pavel Baranov
Copyright © 2003 Mark Duren