serin.bs1 example question
duluski
Posts: 7
Hello,
I just recently got the Stamp 1 Project Board and am trying to make a simple switch controller. I plan on sending data from the PC to the controller to activate a specific switch. I am trying to send the data via the SERIN command, but am not sure exactly how it works. I found the SERIN.BS1 sourcecode in the samples that came with the BASIC Stamp Editor software and tried to execute it. It seems to just sit in the debug terminal and I cannot get it to react to the sequence ABCD. How do I input this string ABCD, followed by a number, followed by a carriage return using the basic stamp software?
Thanks
I just recently got the Stamp 1 Project Board and am trying to make a simple switch controller. I plan on sending data from the PC to the controller to activate a specific switch. I am trying to send the data via the SERIN command, but am not sure exactly how it works. I found the SERIN.BS1 sourcecode in the samples that came with the BASIC Stamp Editor software and tried to execute it. It seems to just sit in the debug terminal and I cannot get it to react to the sequence ABCD. How do I input this string ABCD, followed by a number, followed by a carriage return using the basic stamp software?
Thanks
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
DTQ
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Post Edited (Jon Williams) : 11/22/2004 6:31:59 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Post Edited (Jon Williams) : 11/22/2004 3:24:21 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
The purpose of this resistor is to reduce the current enough on the input pin that the PIC internal protection diodes can 'clamp' the signal. Thus, the far end of the 22 Kohm resistor sees + 12 and - 12 volts. The PIC end of the 22 Kohm sees 0 volts and +5 volts.