I want connect PC with RS485 network. I use COM1 of PC connected to an MAX232 and follow an MAX483. I use for the transmition of signals the visual basic 6, MSComm control.
Via rs485 network I collect those signals to an mega8.
I control manually the direction of MAX483 in pc side (marked with A in attached file), and is possible to send a receive data from PC to mega8 without problem.
The problem is how can I control the direction of MAX483 in pc side via COM1, automatically? I want when I send a stream from PC, to be set the MAX483 in transmition mode, and immediately after the transmition of the stream to return back in receive mode.