how do the stamp IDE debug terminal macros work?
First off I'm trying to write a program that responds to short packets of binary encoded asynchronous serial information. (one start byte, one "command" byte, one "data" byte, and finally a checksum byte) I'd like to find a PC program with which I can pre-assemble these packets on the PC and send them out on command. It looks like the Debug Terminal built into the stamp IDE can do this for me with it's macros. Unfortunately I have not been able to find any information on how these macros work, or how to send arbitrary binary data. (or how to receive binary data either) Also, Is there any way to setup the stamp IDE debug terminal to echo the data it sends out?
I'm sure similar topics have been discussed here before. but I've found no trace of those topics when searching with search.parallax.com.
Sincerly,
Marty
I'm sure similar topics have been discussed here before. but I've found no trace of those topics when searching with search.parallax.com.
Sincerly,
Marty
Comments
x VAR Byte
y VAR Byte
z VAR Byte
main:
SERIN 16,16468,[noparse][[/noparse]DEC x,DEC y,DEC z]
DEBUG DEC x,CR, DEC y,CR,DEC z,CR
PAUSE 5000
DEBUG CLS
GOTO main
Jeff T.
I've got my prop programmed to echo any bytes sent to it. This is making it easier to see what works and what doesn't.
Thanks,
Marty
The parent page for this program is gone, but I managed to find a copy of it floating arround the web. It shows the any recieved data in ASCII, decimal, hex, and binary. It also allows entering raw byte values, in decimal or hex, into it's three macro slots. Additionally it has some buttons for and indicators for all the other I/O lines in an RS232 port. It is attached below in case it'll be useful to someone else.
Later,
Marty
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Lunch cures all problems! have you had lunch?