Shop OBEX P1 Docs P2 Docs Learn Events
Is this flow of debug statements normal? — Parallax Forums

Is this flow of debug statements normal?

Buck RogersBuck Rogers Posts: 2,178
edited 2015-05-20 21:08 in BASIC Stamp
Hello!
With my now working BASIC Stamp1 carrier board hosting a Stamp1 one I have this code running:
' {$STAMP BS1}
' {$PBASIC 1.0}

SYMBOL serData = B2

Main:
DEBUG serData
SERIN 7, T2400, serData
DEBUG serData
serData = serData + 1
DEBUG serDATA
SEROUT 7, T2400, (serData)
DEBUG serDATA
GOTO Main

This is translated from code available here http://smallrobot.bizland.com/bs2ti.html the calculator code available from there is running unchanged. I added those debug statements to what I was running last night (or early this morning) to have a better idea of what's happening. The debug output is this:
SERDATA = 0
SERDATA = 191
SERDATA = 192
SERDATA = 192
SERDATA = 192
SERDATA = 191
SERDATA = 192
SERDATA = 192
SERDATA = 192

What I'm looking for is someone to try out the new code, even the old code, which is this here:
' {$STAMP BS1}
' {$PBASIC 1.0}

SYMBOL serData = B2

Main:
SERIN 7, T2400, serData
'DEBUG serData
serData = serData + 1
DEBUG serDATA
SEROUT 7, T2400, (serData)
'DEBUG serDATA
GOTO Main

Which would be run on a regular BASIC Stamp1 and with a TI83+ connected and loaded as the webpage describes. (If someone could try out a Stamp2 in the same fashion that would be okay too,).

Basically I would want one of the good people in here could largely confirm or refute my theories here.

Comments

Sign In or Register to comment.