|
Author |
Topic: Basic Stamp 2 serial problems (Read 2135 times) |
|
xntrk
|
Basic Stamp 2 serial problems
« on: Feb 16th, 2005, 10:16pm » |
|
i'm having a lot of problems getting my stamp to use SEROUT. i am getting info from processing and hyperterminal from the debug window but that is about it. i have my baud rate on my com port set to 9600, 8 data bits, no parity, 1 stop bit, no flow control. i'm also not excatly sure what pin i should be sending the info on either i have tried all of them at 9600 and none of them are working. i'm using the basic stamp homework board if that makes any difference. here is some code that isn't working. ' {$STAMP BS2} ' {$PBASIC 2.5} DO SEROUT 2,16468,[DEC 65] IF (IN3 = 1)THEN HIGH 14 ELSE LOW 14 ENDIF LOOP any insight as to why this isn't working would be awesome. (i leave the light on in3 to show me that the board hasn't locked up like it does when i SEROUT on pin 3)
|
« Last Edit: Feb 16th, 2005, 10:17pm by xntrk » |
|
|
|
|
fry
|
Re: Basic Stamp 2 serial problems
« Reply #1 on: Feb 19th, 2005, 2:44am » |
|
isn't working in what way? processing doesn't read it? or you just have a bug in the basic stamp code? one common problem from the basic stamp is sending ascii instead of binary data, so you wind up with results you didn't expect, but i'm not sure what you're having trouble with exactly...
|
|
|
|
|