If the data line retuns to zero,that does not mean end of transmission. Do not get confussed.
End of transmissions happens some time later. This "later" gives the 555 as a monostable multivibrator.
Ioannis
If the data line retuns to zero,that does not mean end of transmission. Do not get confussed.
End of transmissions happens some time later. This "later" gives the 555 as a monostable multivibrator.
Ioannis
What exactly is this "end of transmission"? I thought it was either on or off
I believe there is a problem with the basics here.
E.g. you have to send the following byte:
1 1 1 0 0 1 1 0
You send all the bits and not the '1's only
The RE and DE (if connected together) must be at high level before the first bit and a little after the last bit.
Ifyou send with a baud rate of 9600, then each bit is 1/9600=0,1042msec nd the full 8+2 bits (Start and Stop) will be 1,042msec. So the RE and DE have to be more than 1,042 msec high. Not just for the time that a bit of the data is 1.
Is that more clear now?
Ioannis
Yes, I understand what your saying but i dont understand why. The value can only be 1 or 0. When the 485 chip is in receiver mode then isnt that a 0?
What value?
You have a control input (Send or Receive) and a couple of data input/output.
When you send data, regardless if it is 1 or 0, you make control input high. This input is control not data. Your data can be 1 or 0. When you are done with data, then control input is set to low again, and you are ready to get any valid data.
In reallity the chip has 2 control pins and 2 data pins. Control are anti phase active so you can connect them together. Data can only be sent or received. Not at the same time if you have only one couple of lines (A-B), so you can connect data in and data out together too.
Ioannis
I agree with what you are saying there but i think you missed my point.
Lets say we have 2 RS485 chips connected together and for now we are only going to send data in 1 direction. By default both the control and data inputs on 1 chip are low. The chip on the other side will be outputting low.
To make the output of the second chip go high you need to turn on the control inputs (disables the receiver and enables the transmitter) and make the input pin high. The output of the second chip will only be high if the control inputs and data input are all high.
If the data input goes low then the output on the 2nd chip will go low.
If the control inputs go low then this chip is no longer sending so the 2nd chip will still go low even if the data input on the first chip is still high
I suggest you ask your question of an expert who also happens to be really good at explaining things with clarity. You can email Jan Axelson at jan (at) lvr.com. I've always found her to be responsive and helpful.
Hmm, now I see what you are cooking. But this, I have to say, is risky as you may get out of sync in the data stream.
But with a little careful design, it may work.
Ioannis
Bookmarks