for the serout command, i need max 232 ???
Demoncleaner
Posts: 17
Hi all,
I use a BASIC Stamp board (2001) with PIC 16C57C, and i am trying to send "hello" on my hyper terminal. To programm my board i need to connect it with the serial port (COM).
So, to send "hello" to hyper terminal i used an example from the BASIC Stamp editor database, "SERIN_SEROUT1.BS2". The default pin of this example is PIN 1. Should i make a board with max 232 or should i use another pin for the serout command???
I use a BASIC Stamp board (2001) with PIC 16C57C, and i am trying to send "hello" on my hyper terminal. To programm my board i need to connect it with the serial port (COM).
So, to send "hello" to hyper terminal i used an example from the BASIC Stamp editor database, "SERIN_SEROUT1.BS2". The default pin of this example is PIN 1. Should i make a board with max 232 or should i use another pin for the serout command???
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Is there another pin that could i use for this command??
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
FC PIN 0 ' flow control pin
Main:
DO
SEROUT SO\FC, Baud, [noparse][[/noparse]"Hello!", CR] ' send the greeting
PAUSE 2500 ' wait 2.5 seconds
LOOP ' repeat forever
END
But the error said that i couldn't use the pin 16...as you told me before [noparse]:([/noparse]
The baud rate is set at 38k4.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Main:
DO
SEROUT SO, Baud, [noparse][[/noparse]"Hello!", CR] ' send the greeting
PAUSE 2500 ' wait 2.5 seconds
LOOP ' repeat forever
END
i tried this and i get the same error....are you sure that i could use the programming port to send ascii to my hyper terminal, WITHOUT max 232??
I only need to send "hello" on my hyperterminal...nothing else. I should use shifter/driver such as the MAX232, or should i do it from the programming port???
And if i could use the programming port please just send me an example because i 'm trying 3 hours now with no results
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows
SerPin CON 16
SEROUT SerPin, 16384, [noparse][[/noparse]"Hi!", CR] ' Is Also a valid statement
So, using '16' in a SEROUT statement, is a kind of 'pseudo-pin'. True, it's in the place where you'd normally put a 'pin' number indicator. However, since the BS2 doesn't actually have a pin '16', this 'pseudo-pin' in this location of a SEROUT tells the BS2 to use the 'programming port'. But it MUST be a 'number' (aka CON), not a 'PIN'.
But, since it doesn't actually have a pin 16, declaring
MyPin PIN 16
Doesn't make sense to the BS2.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
i didn't know how to do it....