Sharing Max232 with two pics?


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Apr 2009
    Posts
    15

    Default

    Quote Originally Posted by Bruce View Post
    Why not just use one of the OPEN baud modes? This leaves the TX pin set to input
    after the transmission is complete.
    With OPEN transmission does not works, nothing happens, I think that mode is for direct connection to the PC.

    I'v solved the mistery of the broken PICs (just a programmer bug), anyway if someone have a better idea to share the MAX233, would be appreciated.

    Thks

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    OPEN mode work if you use a good enough pull-up resistor for true mode...
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Apr 2009
    Posts
    15

    Default

    Quote Originally Posted by mister_e View Post
    OPEN mode work if you use a good enough pull-up resistor for true mode...
    I can try it, would be enough a 47k resistor?

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405

    Default

    47k may work, but 4.7k to 10k will for sure.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  5. #5
    Join Date
    Apr 2009
    Posts
    15

    Default

    Something does not works

    I'm testing with another board, just a 16F628A 20mhz OSC and a MAX233 that sends 'D00000' or 'D11111' every time RB.4 changes, it works ok if I use True Mode T9600 (RB.5 connect directly to MAX233).

    Try to change it to Normal Mode (N9600) modifying the board (a resistor between +5V and RB.5), but the PC receive trash:

    p}ŸŸŸŸWÖÖÖÖp}ŸŸŸŸWÖÖÖÖp}ŸŸŸŸ

    I've tried with several resitors (47K, 10K, 7.2K, 2.7K) with no difference.

    What I'm doing wrong?

  6. #6
    Join Date
    Jul 2003
    Posts
    2,405

    Default

    What I'm doing wrong?
    Trying to use inverted mode when you should be using non-inverted or TRUE mode.

    You have to use TRUE mode when going through the MAX232.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  7. #7
    Join Date
    Apr 2009
    Posts
    15

    Default

    Quote Originally Posted by Bruce View Post
    Trying to use inverted mode when you should be using non-inverted or TRUE mode.

    You have to use TRUE mode when going through the MAX232.
    So Mister_E answer is wrong, I'm always talking about a PIC+MAX233! Without the Max I can comm with the PC (can receive from, but not send to)

    Can you explain me what are the difference between inverted and non-inverted mode? When must I use each one?
    Last edited by zx81sp; - 27th April 2009 at 17:22.

Similar Threads

  1. PIC and MAX232 in/out
    By The Master in forum Serial
    Replies: 10
    Last Post: - 29th March 2008, 21:41
  2. Retrieving infos from multiple PICs on a bus/chain
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 15th October 2007, 05:42
  3. Programming Pins of PICs?
    By Kamikaze47 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th August 2007, 19:59
  4. MAX232 and DB9 connecter
    By Tomas in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 25th March 2006, 17:02
  5. Do I need MAX232 for Serial Comms
    By koossa in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 10th October 2005, 18:10

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