JonDallimore
Member
hello.
I'm playing around with the Serout and Serin commands for the first time. Basically, I would like to use it to transmit the values of variables from chip to chip.
Im using 2x 20M2 pics.
So far... I have this:
pic1:
serout b.7,N4800_32,("b1"),b1
pic2:
serin c.0,N4800_32,("b1"),b1
However, I keep getting a syntax error on the serout, although the serin seems fine. Also, is there a way to transmit more than one variable at a time? Ive tried it but it seems to mix the variables up, so for example if b1=10 and b2=30, it seems like both variables end up being 20 on pic2.
thanks, from a complete novice (with this command at least)
Jon
I'm playing around with the Serout and Serin commands for the first time. Basically, I would like to use it to transmit the values of variables from chip to chip.
Im using 2x 20M2 pics.
So far... I have this:
pic1:
serout b.7,N4800_32,("b1"),b1
pic2:
serin c.0,N4800_32,("b1"),b1
However, I keep getting a syntax error on the serout, although the serin seems fine. Also, is there a way to transmit more than one variable at a time? Ive tried it but it seems to mix the variables up, so for example if b1=10 and b2=30, it seems like both variables end up being 20 on pic2.
thanks, from a complete novice (with this command at least)
Jon