CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Problem with RS485

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
stoyanoff



Joined: 20 Jul 2011
Posts: 375

View user's profile Send private message

Problem with RS485
PostPosted: Wed Jul 15, 2015 7:58 am     Reply with quote

Greetings! I have a device with RS485 output and a PCB. My PCB has PIC18F86J65 controller and ADM3485ARZ. I have 120ohms terminator. The problem is I can't receive anything from the device. I have 4.7k resistors on A and B connected to Vcc and GRD through jumpers. I've tried a lot of combination. The device doesn't respond! Is it a problem my RS485 chis in on 3.3V?!

I'm sure my hardware is working because I tested it with another PCB.
Please, help?!
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Wed Jul 15, 2015 8:10 am     Reply with quote

Your post is a bit unclear.
You say:
Quote:
I can't recieve anything from the device


then say
Quote:

sure my hardware is working because I tested it with another PCB.


SO you CAN receive something with another bit of hardware or not?

got CODE and a schematic of where you are at ??

And a clearer explanation of what is working for you and what is not.

if you try to send data in a tight loop can you see signal on the RS485 output with an oscillioscope ?? or not
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Wed Jul 15, 2015 8:48 am     Reply with quote

Hi,

How are you testing this? The ADM3485ARZ seems to be a 3.3V version of the ubiquitous 8 pin RS485 driver IC such as SN75176B and MAX485. So, assuming that your wiring is correct, and that you are *properly* handling the chip enable for each device, this should be an easy task. As was noted, it's hard to say anything specific until we see code and a schematic!

When I was doing RS485 development, I bought a USB-to-RS485 converter for my PC. Using the converter and a terminal program allowed me to work on one RS-485 node at a time to ensure things were working correctly. Only then did I connect multiple nodes together! These adapters can be purchased at places like B&B Electronics, and Sparkfun.

So, post the following if you want more help:

1. Code
2. Schematic
3. Vdd voltage if it's not obvious on the schematic
4. Compiler version
_________________
John

If it's worth doing, it's worth doing in real hardware!
guy



Joined: 21 Oct 2005
Posts: 297

View user's profile Send private message Visit poster's website

PostPosted: Sat Jul 18, 2015 9:38 am     Reply with quote

Maybe the 3.3V with the 120 ohm termination doesn't create enough voltage difference for the receiving edge. Try a higher value termination resistor or remove it altogether for testing.
Ttelmah



Joined: 11 Mar 2010
Posts: 19551

View user's profile Send private message

PostPosted: Sat Jul 18, 2015 2:00 pm     Reply with quote

No, RS455, is RS485. 100 to 120R termination. The drivers warrant to give over 2v into 50R.

ezflyr comments are spot on, as is asmboy's request for a schematic and code.
drolleman



Joined: 03 Feb 2011
Posts: 116

View user's profile Send private message

PostPosted: Sat Jul 18, 2015 10:35 pm     Reply with quote

you are missing the pull up and pull down resistors. look at this site he is very good on 485

http://www.rs485.com/
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group