Serial communication between 2 picaxe-18x

@lowa

New Member
Hi everybody
I am trying to send data from output 0 of a picaxe-18x to input 0 of another one.
The program for the sending one is as fellow:

main: for b0 = 0 to 255
serout 0,N2400, (b0)
next b0
goto main

And the program for the receiving one is :

main:
serin 0,N2400, (b0)
pins = b0
goto main



they both seems to work in the simulator but not in real life, am i missing something?

thanks to reply

And my diagram is:
Disregard the first diagram and use the second
 

Attachments

Last edited:

hippy

Technical Support
Staff member
Add a PAUSE 100 before the SEROUT, that should hopefully solve the problem.

You can reduce the 100 once you have it working as you want, and you can also improve the speed of the receiver with ...

setfreq m8
main:
serin 0,N1200, pins
goto main
 
Last edited by a moderator:

Technical

Technical Support
Staff member
remove the incorrect (qualifier) brackets from serin...

main:
serin 0,N2400, b0
pins = b0
goto main
 
Top