18F4550 running 3.3V (serin2) and 16F877 running 5v (serout2), is possible?


Closed Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    Dec 2006
    Location
    Brasil, Sao Paulo, Campinas
    Posts
    54

    Default 18F4550 running 3.3V (serin2) and 16F877 running 5v (serout2), is possible?

    Hello all,

    Somebody knows solve it? I have a circuit based on 18f4550 as RX (serin2) using 3,3v as power, and other circuit using 18f877a running 5,0V. I puted a 1k resistor of the TX to the RX pins but sometimes the data fail. I thinnk that is necessary to use some converter. I alread put a divider resistor (15k and 10k without sucess.

    Pimentel
    Last edited by Pimentel; - 25th January 2014 at 18:35.

  2. #2
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Default Re: 18F4550 running 3.3V (serin2) and 16F877 running 5v (serout2), is possible?

    See old Philips I2C application note AN97055, page 10 (Devices with different logic levels connected via the bi-directional level shifter).
    In addition what they propose, you can use e.g BS170, 2N7000, etc...

  3. #3
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default Re: 18F4550 running 3.3V (serin2) and 16F877 running 5v (serout2), is possible?

    Two diodes in series will give you a 1.2 volts drop just what you need!

    Cheers

    Al.
    All progress began with an idea

  4. #4
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Default Re: 18F4550 running 3.3V (serin2) and 16F877 running 5v (serout2), is possible?

    I was already thinking the next generation version with both way communication (a step ahead)
    2 diodes in series is a good solution!

  5. #5
    Join Date
    Dec 2006
    Location
    Brasil, Sao Paulo, Campinas
    Posts
    54


    Did you find this post helpful? Yes | No

    Default Re: 18F4550 running 3.3V (serin2) and 16F877 running 5v (serout2), is possible?

    I tried using 2 diodes (1N4007) but did not work. I also tried to use signal diode 1N4148 but failed. Finally tried with two fast diodes (schotky) and did not work!
    For now the best way of functioning was linking directly (1k resistor between tx(5v) and rx (3,3v) but I know this is wrong and yet sometimes fails!
    Anyone have any more ideas?

  6. #6
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Default Re: 18F4550 running 3.3V (serin2) and 16F877 running 5v (serout2), is possible?

    Sounds that you may have other problems than signal line and components between two PICs.
    - Power supply and de-couplings (internal noise)?
    - External noise coupling (shielding to transmission path between PICs)?
    - Grounding of PICs (GND references)?
    - Grounding between PICs (GDN reference)?
    - Used TX speed (signal integrity)?
    - etc...
    Last edited by Gusse; - 26th January 2014 at 13:54.

  7. #7
    Join Date
    Dec 2006
    Location
    Brasil, Sao Paulo, Campinas
    Posts
    54


    Did you find this post helpful? Yes | No

    Default Re: 18F4550 running 3.3V (serin2) and 16F877 running 5v (serout2), is possible?

    Gusse,

    You was rigth! My problem was grounding between PICs. My wiring was wrong! Sorry!
    Using a 1k to 10k resistor between Tx(5v) and Rx(3,3v) it is working fine.
    Then, I put 2 diodes without resistor and doesn't work. I removed 1 diode and works fine. Then I puted a 10k + 1n4007 and works fine too.
    I tried with 2 diodes 1N4148 but its fail. Using just 1 signal diode fail also.
    Now my circuit is 10k resistor in serie with 1 diode 1N4007! Do you think it is ok?
    Thanks again!

  8. #8
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default Re: 18F4550 running 3.3V (serin2) and 16F877 running 5v (serout2), is possible?

    I suggest to remove the diodes and leave the 10k, hence add a 20k resistor from the 3.3V input pin to ground, in order to create 1/3 divider network.

    Cheers

    Al.
    Last edited by aratti; - 27th January 2014 at 12:52.
    All progress began with an idea

  9. #9
    Join Date
    Dec 2006
    Location
    Brasil, Sao Paulo, Campinas
    Posts
    54


    Did you find this post helpful? Yes | No

    Default Re: 18F4550 running 3.3V (serin2) and 16F877 running 5v (serout2), is possible?

    Aratti,

    I removed the diode and used your suggestion with sucess. Divider network was the better solution!
    Thanks

Similar Threads

  1. 18f4550 running slow?
    By Giulio in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 22nd October 2012, 21:28
  2. 18f4550 running slow?
    By Giulio in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 14th October 2012, 22:48
  3. 18F4550 not running
    By comwarrior in forum General
    Replies: 6
    Last Post: - 1st January 2011, 01:07
  4. running of page warning and error 16f877
    By earltyso in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 7th November 2007, 01:05

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