Serial communications question - newbie
KB6WIJ
Posts: 9
Another bonehead question from yours truly...
Why won't the following code work? The LED connected to pin 1 lights, signifying that the data reached the stamp, but I never see the stamp reply on my serial port monitor.
Thanks! Joe
Why won't the following code work? The LED connected to pin 1 lights, signifying that the data reached the stamp, but I never see the stamp reply on my serial port monitor.
Thanks! Joe
' {$STAMP BS2} ' {$PBASIC 2.5} query VAR Word DO SERIN 16, 396, [noparse][[/noparse]DEC query] IF query = 15 THEN HIGH 1 PAUSE 1000 LOW 1 SEROUT 16, 396, [noparse][[/noparse]"READY", CR] ENDIF LOOP END
Comments
If you're using the debug terminal, are your settings correct on the terminal? For instance, your code is using a 2400 baud setting, and the debug terminal defaults to 9600 on start-up.
Joe
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"I'm an occasional drinker, the kind of guy who goes out for a beer and wakes up in Singapore with a full beard."
Raymond Chandler, "The King in Yellow"
If it does, then your problem is probably your monitor configuration.
Now let's see if it talks to the program on my PC...
Thanks, Kevin! Joe
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"I'm an occasional drinker, the kind of guy who goes out for a beer and wakes up in Singapore with a full beard."
Raymond Chandler, "The King in Yellow"