PICs in a RS-485 network?
Hello all,
I've searched the forum for past threads
regarding this, but came out emptyhanded
:( Anyone has any experience with
PicBasic Pro and RS-485 protocol? I'd like
to be able to control multiple slave devices
from one master (bi-directional comm.) as
well as couple of RS-232 units over RS-485
network. I've looked at MAX485 / MAX491
and it looks they are just right for the job.
Any ideas? Thanks in advance.
--
Sincerest regards,
YZ7REA Vladimir M Skrbic
4N7ATV Repeater Administrator
YU7GHZ Radio Club President
Right Cabling for RS485 network
Hi everyone, I'm new to RS485 technology and as I read the datasheets of RS485 chips, I noticed that it is recommended to use a twisted pair cable. I am only familiar with 8-wire CAT 5 UTP cable. Locally, I cannot find any cabling technology provider that sells 2-wire twisted pair cable. My question is, is there any alternative solution to this? Will it be possible to use an ordinary telephone cord?
emavil
Re: PICs in a RS-485 network?
Quote:
Originally Posted by
mat janssen
This is what I did a few years ago.The upper schema is the master, the rest is slave. Al programmed in PBP with the max speed possible at 4 Mhz. Connect all "A" 's to eachother, all "B" 's to eachother and also the gnd's to eachother.
Each "ontvanger" and "input" is adressable for and adress between 0 and 255.
So everything is possible. The program is so that an output adress follows the anput adres with the same adresnumber.
I'm looking for what you have build, is your solution open source? I'm pretty new in pic programming and I hope I may use and learn from your code.
1 Attachment(s)
Re: PICs in a RS-485 network?
In the attached file the source for the transmitter and the receiver.
The receiver software fits in the input and output card.