PDA

View Full Version : Hyper Terminal with Serout



Mike Collier
05-11-2006, 09:22 PM
I can't·get hyper terminal to receive bytes sent from BS2 executing SEROUT commands, although I can get the bytes in the debugger fine.

I am using Pin 16. I have tried various baud modes to no avail. 8 Bits, no parity , 1 stop bit, no handshaking. I am using just the plain download cable with no extra hardware.

Does hyper terminal work with bs2 (pref using download cable), and can anyone give an example of setting please?

Note: Hyper terminal does work with a non parallax chip on this machine.

Thanks

PJ Allen
05-11-2006, 09:29 PM
Don't know what data you are sending from your BS2 to HyperTerminal, BUT (and anyone can shiv me if I'm totally wrong-o here) HyperTerminal will only "show" the standard ASCII set/characters.· So, if you were sending it a constant stream of $00, $80, etc., then HyperTerm isn't going to be impressed at all.

Post Edited (PJ Allen) : 5/11/2006 2:32:19 PM GMT

Newzed
05-11-2006, 09:34 PM
Mike, you probably don't have Hyper set up correctly.· I am attaching a program that ket my Stamp communicate with Hper.· Load it into your Hyper directory.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Do you have a Stamp Tester yet?
http://hometown.aol.com/newzed/index.html

Tracy Allen
05-11-2006, 10:32 PM
Be sure there is a capacitor (0.1uf) in series with the DTR line (pin 4 on the db9).

Without the capacitor, Hyperterminal brings the DTR line high and keeps it there as long as it is "connected", and that holds the Stamp in reset.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com (http://www.emesystems.com)

PJ Allen
05-11-2006, 11:17 PM
I am/was figuring that this is a BS2 in a BoE/HWB.

How fare ye then, Mike Collier?

Mike Collier
05-12-2006, 12:02 AM
I was sure I had this working before so I switched back to using a laplink cable with gender changer on one end. Using this cable I can get consistent text into hyperterminal, and can download programs into the stamp. The previous (problem) cable came with Velleman Pic loader but works ok for that. The laplink cable is considerably longer but I don't know how else it differs other than having two female ends.

I tried the tws9600.ht file but that didn't seem to help me, maybe I wasn't using it right, I just opened it in H.T. applet viewer.

I am now trying to read data into an existing application that reads from the COM port, that application is getting inconsistent readings from the stamp and laplink cable - so I will dig into the source. Ultimatly it is this application that I want to get working correctly. AFAIK this wouldn't affect DTR line would it? it just writes and reads from a com file/port.

If anyone has delphi code for reading code from COM & Stamp that would useful too, hopefully it is just a setting problem since non stamp stuff works ok....

Any ideas welcome...

Mike Collier
05-12-2006, 01:56 AM
I have had a closer look at the DTR voltages with either cable and there is a difference,one goes to -12 whereas the other stays around 0 volts.

I have also had a closer look at the board that the bs2 came on (bought in uk) its not a parallax board and doesn't seem to have the capacitors tracy mentions (just one for regulating the power from what I can work out).

Seems I need to get some decent hardware and maybe things will work out for the best.

Thanks for the help, much appreciated.