Sorry, I just realized that your serouts are exclusive to each associated transmitter device.... kind of hard to know what's going to happen without knowing what lines are being used as busy/handshaking lines...
Sorry, I just realized that your serouts are exclusive to each associated transmitter device.... kind of hard to know what's going to happen without knowing what lines are being used as busy/handshaking lines...
Last edited by picster; - 11th April 2006 at 15:42.
do u hv any suggetion to solve this problem?actually i hv 3 pair of transmitter and only one receiver.each of the transmitter with a identify code for receiver to determine the code sent from which transmitter.as i post the code above. Below shows the concept of my code,can u please give me some comment whether my code have any problem.i try many ways already but still do not know why my receiver can not receive data.
serout PORTB.0,N9600,["A",1]--transmitter 1 with the identify code "1"
serout PORTB.0,N9600,["A",2] --transmitter 2 with the identify code "2"
serout PORTB.0,N9600,["A",3]--transmitter 3 with the identify code "3"
and at the receiver the command is--serin PORTB.2,N9600,["A"],rx
what i mean here is each of the transmitter hv the password "A" and the number at the back of "A " represent the identify code.then at the receiver if the rx it receive is "1", mean receive from transmitter 1.
rx is "2" mean receive from transmitter 2 and rx "3"mean receive from transmitter 3.
is it my code got error?any correction for me?
actually at the receiver pin 3 is detect pin.at the datasheet it stated may used to derive a carrier detect to enable external circuit when a signal is being received.if unused connect a 10k ohm resistor to Vcc.
so i jz connect it directly with 10Kohm resistor to Vcc.Do u think this pin can help me in this situation?if yes,can u please gv me some guide line?
another problem is i am dealing with a math problem. the equation as below:
---theta s= actan (Y2/X2)- theta 2-----
Y2, X2 and theta 2 are known,i need to find the theta s but by using pic basic pro, i do not know how to deal with "actan"
Hello,
I don't fully understand what you are trying to do, or what your schematic is looking like but I would try the following:
1. You said it only works on Transmitter 1.. That is case statement 1.
For this, I would drop the case statement and us "IF" "Then" statements... see if that makes a difference.
2. You have extremley long pauses after each recieve... the first 2 have 2 second pauses, the last one has 1 second pause.... Is this too long of a pause??? Is it necessary?
3. Baudrate... 9000 Try something like 300 first.
Dwayne
Ability to Fly:
Hurling yourself towards the ground, and missing.
Engineers that Contribute to flying:
Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute
Pilots that are Flying:
Those who know their limitations, and respect the green side of the grass...
Bookmarks