+ Post New Thread
Results 1 to 15 of 15
  1. #1
    Full Member level 2
    Points: 2,683, Level: 12
    Achievements:
    7 years registered

    Join Date
    Jul 2008
    Posts
    131
    Helped
    6 / 6
    Points
    2,683
    Level
    12

    Regarding Logic Level Sifter Using Voltage Compactor (HIGH 3V and LOW 2V)

    Hi All.

    I need to connect my MCU with an external SPI device which have Logic levels of HIGH 3V and LOW 2V. From the Device to MCU Logic shift I can convert the Voltage 3V/2V to 5V/0V respectively using LM339. But I am facing problem in the other direction conversion of 5V/0V to 3V/2V. I looked for LM311 but As my needed output of LOW Logic is not GND or -Ve hence I can not use it.

    Can anyone advice any comparative Circuit or IC which I can use to make the LOW Output a Positive Voltage (i.e. 2V)? It will be great if there any Quad Differential Comparator available.

    Thank you in advance.

    Regards.

  2. #2
    Super Moderator
    Points: 77,731, Level: 67
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    15,759
    Helped
    3590 / 3590
    Points
    77,731
    Level
    67

    Re: Regarding Logic Level Sifter Using Voltage Compactor (HIGH 3V and LOW 2V)

    Hi,

    I don't know any srandard logic device that needs 2V as Low level.
    I assume you misunderstood the circuit or the datasheet.

    Please show us your circuit (hand drawn is OK) with exact part names. Maybe post the datasheets...or a link.

    Klaus
    Please donīt contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



    •   AltAdvertisement

        
       

  3. #3
    Full Member level 2
    Points: 2,683, Level: 12
    Achievements:
    7 years registered

    Join Date
    Jul 2008
    Posts
    131
    Helped
    6 / 6
    Points
    2,683
    Level
    12

    Re: Regarding Logic Level Sifter Using Voltage Compactor (HIGH 3V and LOW 2V)

    Hi, Thanks.

    So far I did this to convert the 2V LOW and 3V HIGH Pulse to a 0V Low and 5V High Pulse. And its working OK using LM339.

    Click image for larger version. 

Name:	LM339_Application.png 
Views:	1 
Size:	64.1 KB 
ID:	154597

    But I need to do the reverse direction as well ... i.e. convert 0V LOW and 5V HIGH Pulse to a 2V LOW and 3V HIGH Pulse. Can you advice how to do?

    Regards.



  4. #4
    Super Moderator
    Points: 77,731, Level: 67
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    15,759
    Helped
    3590 / 3590
    Points
    77,731
    Level
    67

    Re: Regarding Logic Level Sifter Using Voltage Compactor (HIGH 3V and LOW 2V)

    Hi

    What is your "external SPI device" that needs a 2V LOW level?
    Exact part name, datasheet.

    Klaus
    Please donīt contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



    •   AltAdvertisement

        
       

  5. #5
    Super Moderator
    Points: 260,203, Level: 100
    Awards:
    1st Helpful Member

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    45,441
    Helped
    13826 / 13826
    Points
    260,203
    Level
    100

    Re: Regarding Logic Level Sifter Using Voltage Compactor (HIGH 3V and LOW 2V)

    Assuming the 2..3V is true (don't actually believe), a simple voltage divider would do the trick.



    •   AltAdvertisement

        
       

  6. #6
    Full Member level 2
    Points: 2,683, Level: 12
    Achievements:
    7 years registered

    Join Date
    Jul 2008
    Posts
    131
    Helped
    6 / 6
    Points
    2,683
    Level
    12

    Re: Regarding Logic Level Sifter Using Voltage Compactor (HIGH 3V and LOW 2V)

    Hello.

    Actually there is no Datasheet. The device is a Camera Flash Light where I like to control it by MCU though Flash Light's Hot-Shoe Interface.

    I measured the signals of Camera and Flash Hot-Shoe Interface which is LOW 2V and HIGH 3V. Where my MCU Logic Level 0V LOW and 5V HIGH.

    As I mentioned before ... I make the one direction conversion of 2V LOW and 3V HIGH Pulse to a 0V Low and 5V High Pulse using LM339. But can anyone suggest how to do the opposite direction i.e. convert 0V LOW and 5V HIGH Pulse to a 2V LOW and 3V HIGH Pulse?

    Thanks.



  7. #7
    Super Moderator
    Points: 77,731, Level: 67
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    15,759
    Helped
    3590 / 3590
    Points
    77,731
    Level
    67

    Re: Regarding Logic Level Sifter Using Voltage Compactor (HIGH 3V and LOW 2V)

    Hi,

    I really doubt this. No one would reinvent new logic levels...

    Anyway: use three resistors as voltage divider:
    5V -> 2kOhm -> (3V) -> 1kOhm -> (2V) -> 2kOhm -> GND.
    This generates 2V and 3V.
    Connect to each of the nodes a 100uF capacitor to GND to stabilize the voltage (you could try with lower values like 10uF).
    Then use a CMOS SPDT switch like 74HC4053 or 74HCT4053.
    Connect the "S" to your microcontroller logic out.
    Connect the "Y0" to the 2V node of the voltage divider
    Connect the "Y1" to the 3V node of the voltage divider
    Then "Z" is the 2V/3V level output.

    Klaus
    Please donīt contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



  8. #8
    Full Member level 2
    Points: 2,683, Level: 12
    Achievements:
    7 years registered

    Join Date
    Jul 2008
    Posts
    131
    Helped
    6 / 6
    Points
    2,683
    Level
    12

    Re: Regarding Logic Level Sifter Using Voltage Compactor (HIGH 3V and LOW 2V)

    Hi KlausST. Thanks a lot. The solution looks great.

    But unfortunately, I think here at my location this 74HC4053 or 74HCT4053 not available. However, I'll order it from China but will take some time to get it.

    Just asking ... is it possible to get this output by using BJT's (NPN/PNP)?

    Regards.



  9. #9
    Super Moderator
    Points: 77,731, Level: 67
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    15,759
    Helped
    3590 / 3590
    Points
    77,731
    Level
    67

    Re: Regarding Logic Level Sifter Using Voltage Compactor (HIGH 3V and LOW 2V)

    Hi,

    You don't show where you live...

    4053' parts are relatively common ... and as written, it's just a SPDT analog switch device, I assume there are thousands different types around, from many manufacturers all over the world. Many of them will work for you.

    Buy a couple of old PCB's and there is a good chance to find some SPDT analog switches.

    ***
    If one knews about load and currents... one could surely build a circuit with BJTs.
    More useful are FETs. Even a 4053 is built with FETs.

    Klaus
    Please donīt contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



  10. #10
    Full Member level 2
    Points: 2,683, Level: 12
    Achievements:
    7 years registered

    Join Date
    Jul 2008
    Posts
    131
    Helped
    6 / 6
    Points
    2,683
    Level
    12

    Re: Regarding Logic Level Sifter Using Voltage Compactor (HIGH 3V and LOW 2V)

    Thanks again for reply KlausST.

    I found this CD4053 available here. I can use it as well ... right?

    http://www.sycelectronica.com.ar/sem...4051-52-53.pdf

    A --- MCU IO
    ax --- 2V
    ay --- 3V
    OUT/IN ax or ay --- Will be the desired 2V LOW 3V HIGH output

    Would you mind to advice if the connection above is Ok?

    Regards.



  11. #11
    Super Moderator
    Points: 77,731, Level: 67
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    15,759
    Helped
    3590 / 3590
    Points
    77,731
    Level
    67

    Re: Regarding Logic Level Sifter Using Voltage Compactor (HIGH 3V and LOW 2V)

    Hi,

    I found this CD4053 available here. I can use it as well ... right?
    As already said: we don't know all your requirements, thus it's impossible to validate.

    Reading the datasheets is essential. Every professional needs to do this, too .... no one does like it.

    Your pin usage seems to be OK.

    Klaus
    Please donīt contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



  12. #12
    Full Member level 2
    Points: 2,683, Level: 12
    Achievements:
    7 years registered

    Join Date
    Jul 2008
    Posts
    131
    Helped
    6 / 6
    Points
    2,683
    Level
    12

    Re: Regarding Logic Level Sifter Using Voltage Compactor (HIGH 3V and LOW 2V)

    Hello.

    I made my circuit using CD4053 and now I cam generate the pulse of 3V HIGH and 2V LOW.

    But one issue I am facing ... when I am connecting this line (SPI CLK SIgnal) to my Flash Light Device then the pulse voltage gets dropped to 2V HIGH and 1V LOW. Any comments why? Do I need any Pull-Up in 4053 Output?

    Sorry that the Flash is a 3rd party device and no Datasheet available.

    Regards.



    •   AltAdvertisement

        
       

  13. #13
    Super Moderator
    Points: 77,731, Level: 67
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    15,759
    Helped
    3590 / 3590
    Points
    77,731
    Level
    67

    Re: Regarding Logic Level Sifter Using Voltage Compactor (HIGH 3V and LOW 2V)

    Hi,

    Obviously the flash draws some current at the communication signals.

    Sorry that the Flash is a 3rd party device and no Datasheet available.
    And there is no brand, no label, no type, no description, no photo... how can you use it?

    Klaus
    Please donīt contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



  14. #14
    Full Member level 2
    Points: 2,683, Level: 12
    Achievements:
    7 years registered

    Join Date
    Jul 2008
    Posts
    131
    Helped
    6 / 6
    Points
    2,683
    Level
    12

    Re: Regarding Logic Level Sifter Using Voltage Compactor (HIGH 3V and LOW 2V)

    Hi KlausST. The Flash Mode I am using is Canon 430EX ii. Hot-Shoe pins are standard for all Canon models.

    Thanks.



  15. #15
    Super Moderator
    Points: 31,597, Level: 43
    ads-ee's Avatar
    Join Date
    Sep 2013
    Location
    USA
    Posts
    7,308
    Helped
    1719 / 1719
    Points
    31,597
    Level
    43

    Re: Regarding Logic Level Sifter Using Voltage Compactor (HIGH 3V and LOW 2V)

    Quote Originally Posted by KlausST View Post
    Hi,

    I really doubt this. No one would reinvent new logic levels...

    Anyway: use three resistors as voltage divider:
    5V -> 2kOhm -> (3V) -> 1kOhm -> (2V) -> 2kOhm -> GND.
    This generates 2V and 3V.
    Connect to each of the nodes a 100uF capacitor to GND to stabilize the voltage (you could try with lower values like 10uF).
    Then use a CMOS SPDT switch like 74HC4053 or 74HCT4053.
    Connect the "S" to your microcontroller logic out.
    Connect the "Y0" to the 2V node of the voltage divider
    Connect the "Y1" to the 3V node of the voltage divider
    Then "Z" is the 2V/3V level output.

    Klaus
    If you worked with any SLR cameras there is a lot of compatibility issues with the hot-shoe connector as the voltages can be different between brands, since most of them use proprietary levels for their accessories (to lock people into their ecosystem). So yeah 2V and 3V makes sense.



--[[ ]]--