I made my first serial connection between two 28X1 via a 330 ohm resistor.
The transmitter has a line code:"serout 0,N2400_8,("ABC",#b6,#b8,#b3,#b7)"
intended to transmit 4 byte variables.
The receiver has a code:
[/code]
serin 3,N2400,("ABC",b1,b2,b0,b4)
sertxd (#b1," ",#b2," ",#b0," ",#b4,CR,LF)
pause 200
[/endcode]
intended to store the received variables into b1,b2,b0 and b4 and display them on the computer.
Both circuits operate at 8MHz and have common supply.
The problem is that the sertxd does not give any output.
Are the used pins (outpin 0 and input pin3) suitable for serial communication or should I use input pin 7 and 6 respectively with the hserin hserout commands?
The transmitter has a line code:"serout 0,N2400_8,("ABC",#b6,#b8,#b3,#b7)"
intended to transmit 4 byte variables.
The receiver has a code:
[/code]
serin 3,N2400,("ABC",b1,b2,b0,b4)
sertxd (#b1," ",#b2," ",#b0," ",#b4,CR,LF)
pause 200
[/endcode]
intended to store the received variables into b1,b2,b0 and b4 and display them on the computer.
Both circuits operate at 8MHz and have common supply.
The problem is that the sertxd does not give any output.
Are the used pins (outpin 0 and input pin3) suitable for serial communication or should I use input pin 7 and 6 respectively with the hserin hserout commands?