I am using RS-485/UART to communicate hundreds of feet between (3) 18F, either 4865 or 4620, and ultimately to an SN41 Bluetooth module. I either use all 4620 or all 4685 and am using the internal oscillator.
I have searched for information on baud-rate, auto baud, boot loader, oscillator, clock in an effort to learn how to reduce communication errors and increase speed, but am not finding much relating to Swordfish. Any ideas? I am thinking that baud-rate mismatch could be causing intermittent RS-485 communication.
RS-485
Moderators: David Barker, Jerry Messina
-
- Swordfish Developer
- Posts: 1473
- Joined: Fri Jan 30, 2009 6:27 pm
- Location: US
Re: RS-485
That's a lot of different topics, and they don't necessarily really have much to do with swordfish per say.
What settings are you using, and what sort of errors are you seeing? Usually a baudrate mismatch will generate a Framing Error on the receiving end (but that really depends on a number of things).
That could well be. The internal osc of the 4620 and 4685 aren't really accurate (+/-2% at room temp), so between two chips you could have quite a swing, and that's not accounting for any errors when using different baudrate generator settings.I am thinking that baud-rate mismatch could be causing intermittent RS-485 communication
What settings are you using, and what sort of errors are you seeing? Usually a baudrate mismatch will generate a Framing Error on the receiving end (but that really depends on a number of things).
-
- Posts: 22
- Joined: Thu Sep 05, 2013 4:45 pm
- Location: United Kingdom
Re: RS-485
Apologies in advance as I may be stating the obvious here.
Are you using proper communications cable i.e. a twisted pair / pairs? (Preferably screened over hundreds of feet)
Do you have the transmission line terminated correctly?
Are you using proper communications cable i.e. a twisted pair / pairs? (Preferably screened over hundreds of feet)
Do you have the transmission line terminated correctly?