Can the BASIC Stamp generate square waves?
Yes, however, it is limited. The SOUND command in the BASIC Stamp I generates square waves which vary from 94.8 Hz to 10,550 Hz (non-linearly). The BASIC Stamp II, however, does not include any functions to generate an accurately timed square wave, however, it can be done manually as long as fast timing is not an issue. This can be done with multiple lines of code that simply set a pin high or low and pause for the appropriate duration in-between transitions. The timing will vary somewhat depending upon your loop execution speeds.