TITLE: Basic Stamp II (BS2) Code to generate pulses
AUTHOR: Chuck McManis
LAST UPDATE: 30-dec-2001

Description

This code generates a test pulse. It is used in the pulse measurement article as a way of generating test pulses than can be measured by the Lab X3.

The Source Code

' Program to Generate a test pulse for the m-pulse code
' {$STAMP BS2}
'
    LOW 7           ' Make P7 logic 0
    OUTPUT 7        ' And an output
LOOP:
    PAUSE 10        ' Pause for about 10mS
    PULSOUT 7,752   ' Send a pulse of 1500 mS (empirical)
    GOTO    LOOP

License

Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License. You are free to play around with it and modify it but you are not licensed to use it for commercial purposes. Click the link above for more details on your rights under this license.