RS232 to RS485


Closed Thread
Results 1 to 23 of 23

Thread: RS232 to RS485

Hybrid View

  1. #1
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    Attached Images Attached Images  

  2. #2
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697


    Did you find this post helpful? Yes | No

    Default

    So what your saying is scrap the 555 idea and go back to using RTS. I guess that is an option. Ill have to look into how that will affect the software. I know i can easily control RTS in VB using the comm control but i do like to use API for speed. Ive not had the need to use handshaking before so i should probs read up on that.

    Thanx for the suggestion and the diagram. Now i see the point in the MAX232 having 2 ins and outs

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,139


    Did you find this post helpful? Yes | No

    Default

    Why not sending some control characters then wait for the start character, dump it and get the next.

    Like this:

    Send "#######$data"

    on PIC side:

    Hserin [wait("$"),str mydata\data_bytes]

    Ioannis

  4. #4
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697


    Did you find this post helpful? Yes | No

    Default

    I suppose thats a possibility. Im using the hardware UART so its a little harder but still possible.

    Is there anything faster than a 555? What about bypassing it? I noticed the output from the MAX232 chip seems to be inverted but if i could invert it again and connect it and the 555 through resistors to the MAX485 then it should be a lot faster because it doesnt rely on the 555 to turn it on, the 555 will simply keep it turned on for a short while after the data stops.

    I guess the only problem now is that the MAX485 chip might be too slow to react too

  5. #5
    Join Date
    Aug 2005
    Posts
    57


    Did you find this post helpful? Yes | No

    Default

    I have used the 485SD9TB converter from BB Electronics with no problems.It does exactly what you are trying to do.Its not cheap,but you can check out the schematic and maybe reproduce the circuit.
    Attached Images Attached Images

  6. #6
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697


    Did you find this post helpful? Yes | No

    Default

    Ive tried the RTS method. It takes quite a while to turn on using software. Im only talking a few ms but its still enough to cause problems.

    I think a circuit based on that scematic would be best. I dont have any logic gates that i can make a NOT gate out of so i cant test it yet.

    I will have a go at the control characters method. That one seems like it should definately work aslong as i can program it properly. At the moment it relies on counting the bytes that arrive. With the control characters 1 or more will be missing.

Similar Threads

  1. UART vs software RS232
    By Michael in forum mel PIC BASIC Pro
    Replies: 27
    Last Post: - 5th September 2008, 18:27
  2. RS232 into 2 PC ports
    By manxman in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th August 2008, 13:33
  3. PIC18F4680 to PC via MAX232 (RS232 serial) no output
    By opticsteam1 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th April 2008, 20:39
  4. Using 16f676 with comms
    By Peter1960 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 28th October 2005, 20:01
  5. rs485 to rs232 smart switch
    By RSSHARPE in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 17th June 2004, 08:44

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts