SREOUT PROBLEMS

TONYMORAGA

New Member
Hi, I've been trying to get serial communications to a desktop pc.
This is the code I'm using (copied and pasted)
main: serout 1,N4800,("Hello") ' Send the word ‘Hello’
serout 1,N4800,(10,13) ' Send the ‘new line’ instructions.
pause 1000 ' Wait one second
goto main ' Loop back to the start
(may have wrapped)
The program downloads fine, but when I run hyperterminal (configured as 4800-8-n-1 it gets absolutely nothing.

THE PIN 1 IS CONNECTED TO RX PIN 2 PC DB9 TROGH A 180 RESISTOR.
I´M SURE THAT THE HYPERTERMINAL SETTINGS IS OK BECAUSE WHEN I CONNECT IT TO THE SERTX PIN, PC RECEIVE THE MESSAGE.
I TRIED CHANGING SPEEDS FROM 300 TO 4800 AND SEROUT DOESNT WORK.
Í ´VE TRIED USING ANOTHER PICAXE 28X AND NOTHING HAPPENED.


The circuit that it's connected to is the one from the electronic interfacing document. I'm at a loss to find out what's wrong.
I ´ve READ MANY PEOPLE HAS PROBLEM WITH THIS COMMAND SEROUT.

Many thanks
TONY
 

Technical

Technical Support
Staff member
Sounds like a hardware wiring issue, serout command itself works fine. Note it must be output 1 (not chip leg 1). Also make sure you have connected directly to the PICACE pin (not via the darlington driver buffered output on some of the project boards).

Also make sure PICAXCE 0V is connected to pin5 of your 9 pin serial connector.

Also try with the in-built serial terminal within the PICAXE software (PICAXE menu) - it's easier to configure than hyperterminal.

Edited by - Technical on 08/11/2006 13:35:21
 

TONYMORAGA

New Member
I´VE TRIED WITH pin 11- c0 pin12-c1 of the PCAXE28X.
WITOUT ANY DARLINGTON , THE CONNECTION IS TROUGH A 180 OHM RESISTOR
 

Technical

Technical Support
Staff member
???
Legs 11 and 12 are not output1, they are inputs!

See the pinout diagram in the manual. Output 1 is leg 22
 
Top