Back to TI-83Plus and Stamps
Buck Rogers
Posts: 2,187
Hello!
This is the code I am using:
It is based on this translation:
The idea came from this article:
http://smallrobot.bizland.com/bs2ti.html
In it he provides three examples. Two for the calculator, and one for a BS2. I had the program translated to that spoken by a BS1 by one of the good people here.
In it he describes the numbers displayed on the calculator.
This is the stamp2 program as I understand it:
And this is what I came up with for the Stamp2 for the same idea, and whilst running that same stamp I came up with a series of ideas that, ah, rattled my collection of logic.
Now the point of all this, can someone spot the reasoning why I'm not getting the numbers on my calculator when running the Stamp1 version, and normally getting them on the Stamp2 version?
This is the code I am using:
' {$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 OUTPUT 0 PIN0 = 1 DEBUG serDATA PAUSE 500 PIN0 = 0 INPUT 1 DEBUG PIN1 DEBUG PIN0 GOTO Main
It is based on this translation:
' {$PBASIC 1.0} SYMBOL serData = B2 Main: SERIN 7, T2400, serData DEBUG serData serData = serData + 1 SEROUT 7, T2400, (serData) GOTO Main
The idea came from this article:
http://smallrobot.bizland.com/bs2ti.html
In it he provides three examples. Two for the calculator, and one for a BS2. I had the program translated to that spoken by a BS1 by one of the good people here.
In it he describes the numbers displayed on the calculator.
This is the stamp2 program as I understand it:
' {$STAMP BS2} ' {$PBASIC 2.0} serdata VAR Byte again: '*****this will wait for serial from calculator SERIN 15,396,[serdata] '***this will send it to the pc debug screen DEBUG DEC serdata, CR '***this will send the same data plus 1 back to the calculator serdata=serdata + 1 SEROUT 15,396,[serdata] GOTO again
And this is what I came up with for the Stamp2 for the same idea, and whilst running that same stamp I came up with a series of ideas that, ah, rattled my collection of logic.
Now the point of all this, can someone spot the reasoning why I'm not getting the numbers on my calculator when running the Stamp1 version, and normally getting them on the Stamp2 version?
Comments
Dave
Hello!
I did that the first time around. I confirmed that the calculator was indeed receiving the correct data.
I'll keep investigating.
Hello!
An excellent guess. As it happens Chris and Dave, I've found and loaded the original BS2 ones, and indeed recreated my original prototype for a Basic Stamp2 board. I also spent yesterday online tracking down the resources for the calculator I did not have here. I refreshed the programming on the unit.
It's got me reaching for a dictionary of four-letter words.
I will now present the programs being used: (original program from site)
And then this one: (One of my edits)
Even with a minor change it does indeed work as described.
Some history now: I saw the original discussions on the old Yahoo group, obtained the calculator about the same time. I had Jon Williams translate the original to the Stamp1 style. And then went ahead and did the steps I outlined in the first note.
The layout of the original program all but compelled me to work out how to obtain a Stamp2. Then one was being given away. That's how I obtained the Stamp2 being used here.
By the time we reach when I posted the beginnings there,(Original messages discussing a theory in eight bits), I had gotten to the point where I felt I could hang stuff off of the original program, and yes I did have it triggering a blink from an LED. In fact one of the Stamp1 programs does do that, through logic.
I'll keep working on it, and advise. (Its what's called "Investigate and advise".)