Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
pls refer the above site for your problem from which you can find your problem relating rs485.
i think the code is same for rs232 and rs485 but the transmitter/receiver signal line(pin no.2&3 of rs485)should specify either transmit or receive,for transmit it should connect...