View previous topic :: View next topic |
Author |
Message |
ThomasC
Joined: 09 Oct 2007 Posts: 62
|
Connect MAX485 to PIC16F690? |
Posted: Wed Jan 23, 2008 9:23 am |
|
|
PCM 4.060
I have used this link:
MAX485 to PIC16F877
http://www.ccsinfo.com/forum/viewtopic.php?t=25720&highlight=rs485
and from Humberto's post I used this:
RO -RC7
DI -RC6
-RE/DE -RC5
pin5-GND
pin8-VCC
and derived this for the PIC16F690
MAX485-----------PIC16F690
1 R0------------RB5-RX
4 DI------------RB7-TX
2/3 RE/DE--------RC1-Pin Assigned for directional control
5 PIN 5---------PIN 20-VSS
8 PIN 8---------PIN 1-VDD
Did I do it correctly? Thanks everyone! |
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
Posted: Wed Jan 23, 2008 10:31 am |
|
|
yes |
|
|
ThomasC
Joined: 09 Oct 2007 Posts: 62
|
|
Posted: Wed Jan 23, 2008 2:05 pm |
|
|
Do I need caps on the pins like the MAX232?
Which pins of the MAX485 do I use to hook up to the RS485 connector?
My telebyte Model 245 opto-isolated superverter needs a T-/R- and a T+/R+.
I do notice that I have an Inverting Driver Output, Inverting Receiver Input and Inverting Driver Output, Inverting Receiver Input,and a NonInverting Receiver input and Noninverting Driver Output.
I'm thinking of using PINS 6 (Noninverting Receiver Input and Noninverting Driver output) and 7 (Inverting Receiver Input and Inverting Driver Output).
Thanks again. |
|
|
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
|
|
Posted: Wed Jan 23, 2008 2:46 pm |
|
|
The MAX485 does not need any voltage boosting caps. Pins 6 & 7 are the standard 485 lines A & B. A probably connects to T+/R+, and B to T-/R-, but reading the Telebyte should tell you for sure. _________________ The search for better is endless. Instead simply find very good and get the job done. |
|
|
ThomasC
Joined: 09 Oct 2007 Posts: 62
|
|
Posted: Wed Jan 23, 2008 3:02 pm |
|
|
Thanks. I hope I've gotten proficient enough where you guys are just nudging me instead of holding my hand through this. |
|
|
ThomasC
Joined: 09 Oct 2007 Posts: 62
|
|
Posted: Wed Jan 23, 2008 3:40 pm |
|
|
quick question. Can I leave my PIC16F690 plugged into the MAX232 and its serial connector while I have the MAX485 plugged in? The MAX232 is not hooked up to the PC's serial port or anything else. |
|
|
Humberto
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
|
|
Posted: Wed Jan 23, 2008 8:18 pm |
|
|
Quote: |
Can I leave my PIC16F690 plugged into the MAX232 and its serial connector while I have the MAX485 plugged in?
|
Yes you can. (Lets assume that I (we?) don't know what are you trying to do.)
The Telebyte interface converter handle RS232 to RS485 and viceversa.
I guess that you are using it to monitoring the RS485 activity with the DIP switches
configured in 2 wire mode. It is only a signal level converter, it doesn't have
any kind of "intelligence" to know if the other side is plugged or not.
Humberto |
|
|
Ken Johnson
Joined: 23 Mar 2006 Posts: 197 Location: Lewisburg, WV
|
|
Posted: Thu Jan 24, 2008 7:14 am |
|
|
Can I leave my PIC16F690 plugged into the MAX232 and its serial connector while I have the MAX485 plugged in?
I haven't looked at these particular parts, but I'm pretty sure . . .
They'll both be driving your pic rx line when the 485 receive enable is assertted (low).
I've done this using an and-gate - when either signal goes low, the pic rx then goes low. Probably also need a pull-up between the 485 output and the and-gate, 'cause when the 485 rx is disabled, the output is hi-impedance (methinks)
Hope this is helpful
Ken |
|
|
|