Connecting to pic UART together

Discussion in 'Embedded Systems and Microcontrollers' started by Art, Aug 19, 2015.

  1. Art

    Thread Starter Distinguished Member

    Sep 10, 2007
    785
    61
    Hi Guys,
    I have a 5 Volt pic 16F628A, and a 3.3 Volt dsPic33FJ64GP802,
    and want to connect both chip’s UART tx and rx pins together for communication between the two pics.

    It seems to me so far that I can just directly connect each chip’s tx pin to the other chip’s rx pin.

    Is it really this easy without any level shifting at all, or am I missing some information?
    The 3.3 Volt dsPic has some 5 Volt tolerant pins.
    Cheers, Art.

    Code (Text):
    1.  
    2. Pic 16F628A (4.5-5.5V)
    3.  
    4. Input  low voltage Min: VSS - Max: 0.8V
    5. Input high voltage Min:2.0V - Max: VDD(5V).
    6.  
    7. ---------------------------------------------------
    8.  
    9. dsPic 33FJ64GP802 (3.0-3.6V)
    10.  
    11. Input  low voltage Min: VSS - Max: 0.2V
    12. Input high voltage Min: 0.7 - Max: 5.5V
    13. (on a 5 Volt tolerant I/O pin)
    14.  
     
  2. ericgibbs

    Senior Member

    Jan 29, 2010
    2,499
    380
    hi Art,
    Providing the Input pins on the PIC33 are 5V tolerant there should be no problem.
    On a Neo GPS input I used a simple resistive divider, 5v down to 3v.
    Look at Tip #5 on this PDF for other options.
    E
     
  3. Art

    Thread Starter Distinguished Member

    Sep 10, 2007
    785
    61
    Hi Eric, Yes I have that document, and know about level shifting, but I think I should not need it altogether.
    resistive divider is the slowest way, though I think at serial speeds it wouldn’t hurt,
    but I should need nothing at all.

    There is a consideration in the dsPic datasheet about total current being sent in all IO pins collectively,
    where the voltage is above the dsPic VDD, but this is only for one pin.
     
  4. jpanhalt

    AAC Fanatic!

    Jan 18, 2008
    5,671
    899
  5. Art

    Thread Starter Distinguished Member

    Sep 10, 2007
    785
    61
    Yes, but the whole idea is I think I do not need to in this case.. to save hardware.
    I think it should just be the two wires.
     
Loading...