Hello Nikilos,

N>>I manage to make a simply conection between two pics!!!!
That ws the step1.

Please advise me with the step2.<<

Ok, now that you have a simple verifyable connection using SERIN and SERout, lets expand on your SERin and SERout, and use another function of SERin and SERout.

USE YOUR WORKING PROGRAM that works for you. Steve has helped you remendously. When I talk to you, I will be talking in GENERALIZATION. I do not have a compiler here where I am at right now, so my programs are PSUEDO examples. Use the working example you got from Steve. He have you a couple of working examples, all varied just a little, but still worked.

******the following is PSUEDO**********
Serout PinNumber,Baudrate,["test"],"A";

Serin PinNumber,Baudrate,["test"], Variable
LCDout Variable.

Something like this: (this is very close to the example in the book.)

SERIN 1,N2400,[“test”],Variable
************************************




What this does, is read pin number "1", and until it receives the filter letters "test" (completely reads *all* the letters test), it will NOT put a character into Variable

So, if you want to send the word "Hello", your transmitter must send the following data:
testH
teste
testl
testl
test0

The 'test' will be ignored, and the letter following test will be placed in the "Variable".


With this information, The Master Chip can send any data to any slave chip, by sending the correct "test", or "Code" that corrisponds to the slave chip.

Slave Chip #1, could have SERIN 1,N2400,[“Slave1”],Variable
Slave Chip #2, could have SERIN 1,N2400,[“Slave2”],Variable
Slave Chip #3, could have SERIN 1,N2400,[“Slave3”],Variable

That way None of the other slaves will respond to any of the other slave chips, as the data is being sent back and forth to the master slave.

Step 2, is getting the receiver to respond and print only the character after the "filter characters". (In the above case SlaveX is the filter Character, and the letter following the filter characters is what you want to see).

Since you already have communication between the two chips with the Serin/Serout, you need to use the same command, and make sure you can use the "Filter"

Remember... 1 step at a time...You have communication, and you can verify it. This is also part of step 1...Changing the program (just a small bit) to enable "Filters" to work.




Dwayne