Hi,
I would like to know if the Master should enable the TX output on power up/reset and only drop it low when it expects a packet from a slave (after the Master sends slave a request/command)?
OR
Should the Master only enable the TX when it needs to send out a packet, drop it low to receive the response packet.
Thank you,
Ron
RS485 TX Enable
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: RS485 TX Enable
Hi Ron,
I would probably go with option 1 and then make sure that all the slave devices are in receive mode unless told to switch to transmit.
eg.
master sends address
master sends sample adc command
master switches to receive mode
slave switches to transmit mode
slave sends back adc reading
master and slave both switch back to start condition.
You might need to add little delays in your program to ensure that the master switches to receive before the slave switches to transmit and visa versa.
I would probably go with option 1 and then make sure that all the slave devices are in receive mode unless told to switch to transmit.
eg.
master sends address
master sends sample adc command
master switches to receive mode
slave switches to transmit mode
slave sends back adc reading
master and slave both switch back to start condition.
You might need to add little delays in your program to ensure that the master switches to receive before the slave switches to transmit and visa versa.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: RS485 TX Enable
Hi Ben,
I agree, number one makes the most sense to me.
I will tie DE and NOT RE together to a PIC output pin.
I am thinking the best way to do number 1 is to use a pull up resistor tied to (DE-NOT RE) on the Master and a pull down resistor on same line of all the slaves.
On power up this would force the Master in TX and force the slaves into RX.
Does this sound good to you?
Thank you,
Ron
I agree, number one makes the most sense to me.
I will tie DE and NOT RE together to a PIC output pin.
I am thinking the best way to do number 1 is to use a pull up resistor tied to (DE-NOT RE) on the Master and a pull down resistor on same line of all the slaves.
On power up this would force the Master in TX and force the slaves into RX.
Does this sound good to you?
Thank you,
Ron
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: RS485 TX Enable
Hello Ron,
Yes that sounds sensible to me and I cant foresee any problems with doing that.
Yes that sounds sensible to me and I cant foresee any problems with doing that.

Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel