Plotting Digital Values

By beginning a line with % StampPlot will plot the binary digits - bits (1's and 0's) as digital traces. The ibin debug modifier is typically used since this will send the values as binary values starting with %. For example

DEBUG IBIN8 129, CR will display

%10000001 V Enter and run the following program.

'Plotting 8 binary values val VAR Byte

'Plotting 8 binary values val VAR Byte

DO

FOR val

= 0 TO 255

DEBUG

IBIN8 val, CR

PAUSE

100

NEXT

LOOP

V Close the Debug Terminal in the BASIC Stamp Editor.

V Connect in StampPlot and view the signals.

The ibin8 modifier caused the BASIC Stamp module to send the data with 8 positions. It is very important that the same number of bits is sent consistently and ends with a carriage return.

DIY Battery Repair

DIY Battery Repair

You can now recondition your old batteries at home and bring them back to 100 percent of their working condition. This guide will enable you to revive All NiCd batteries regardless of brand and battery volt. It will give you the required information on how to re-energize and revive your NiCd batteries through the RVD process, charging method and charging guidelines.

Get My Free Ebook


Post a comment