freedomtruth
Junior Member level 2
- Joined
- Sep 4, 2006
- Messages
- 22
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,455
I have a problem with rs485 driver SN65176b (which is exactly like max485).
I wrote a code for a pic to send modbus commands to a temperature controller but got no responses.
Here is how the command is being sent.
Then accidentally the wire on “Drive Enable” pin disconnected (left floating) and the slave responded! I’m very confused.
Isn’t the output driver supposed to be disabled when left open?
If the output driver is active, then how can the chip receive messages?
Why my code which controls the direction doesn’t work?
(devices are 10cm apart. power is 5v. no termination resistors. no fail-safe biasing resistors)
Sharing your experiences would be appreciated
I wrote a code for a pic to send modbus commands to a temperature controller but got no responses.
Here is how the command is being sent.
Code:
output_high(drive_enable);
printf ( ":010310000001BE\r\n" );
output_low(drive_enable);
Isn’t the output driver supposed to be disabled when left open?
If the output driver is active, then how can the chip receive messages?
Why my code which controls the direction doesn’t work?
(devices are 10cm apart. power is 5v. no termination resistors. no fail-safe biasing resistors)
Sharing your experiences would be appreciated