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
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