Sout pin for serial transmission
DrumAdrian
Posts: 2
Hi,
·I am using a Javelin stamp to do quite a few things for a·project, and I am running short of pins.· I want to know if you can use the Sout pin on the Javelin to send serial data when executing a program.· It would be great if I could use the pin to send data after the stamp has been programmed.· I know the BS2 will allow this· but what about the Javelin.· · Thanks in advance.·
Adrian
·I am using a Javelin stamp to do quite a few things for a·project, and I am running short of pins.· I want to know if you can use the Sout pin on the Javelin to send serial data when executing a program.· It would be great if I could use the pin to send data after the stamp has been programmed.· I know the BS2 will allow this· but what about the Javelin.· · Thanks in advance.·
Adrian
Comments
It's unfortunate there's not an option to turn this off, so you COULD use the built-in port as a generic serial port. This is why the Javelin development board has TWO DB-9 connectors, and a MAX232 chip, to support using any of the other I/O pins as a true UART.
http://groups.yahoo.com/group/JavelinCode/files/documents/
If you can filter out the meta bytes you can
use System.out
regards peter
·
You can join the JavelinCode group for free.
There are lots of Javelin·classes to download.
regards peter
to filter the Javelin Sout pin data.
The attached program displays the Sout pin data
(as text data) and also catches that to a file.
The source is here:
http://groups.yahoo.com/group/JavelinCode/files/JideDebug/
regards peter
Post Edited (Peter Verkaik) : 5/3/2005 7:40:27 PM GMT
This new release opens a com port without interfering with a running
Javelin, so a 3-wire cable (TX, RX and GND) will suffice.
(Javelin debug port requires·RX line to transmit data)
So you can hook up a laptop to check a running Javelin
without disturbing it.
Sources are here:
http://groups.yahoo.com/group/JavelinCode/files/JideDebug/
regards peter
Post Edited (Peter Verkaik) : 5/4/2005 1:38:06 PM GMT
to the Javelin using its Jide port (and thus renamed it to JideTerm).
This allows for .ini files or whatever to be send.
I have written a JideTerm class that 'collects' a message via the Jide port.
How this message is further processed is not specified.
You'll find the sources and JideTerm test files here
http://groups.yahoo.com/group/JavelinCode/files/JideTerm/
and here is the JideTerm class
http://groups.yahoo.com/group/JavelinCode/files/Javelin%20Stamp%20IDE/lib/stamp/core/
Being able to send a file allows for easy configuration of startup values without reprogramming
the Javelin.
regards peter
·
I have uploaded a windows version of JideTerm here
http://groups.yahoo.com/group/JavelinCode/files/JideTerm/
Also attached it.
This has a fixed screen size of 80 columns with autowrap.
Echoed characters are filtered out. Characters are not send to
the Javelin until clicking send. Output to screen (and optionally logfile)
may be paused, but while paused, the program keeps responding
to Javelin data requests, so the Javelin program continues to run
and is not blocked.
regards peter