Author Topic: Logic as level shifter?  (Read 2875 times)

0 Members and 1 Guest are viewing this topic.

Offline Jeroen3Topic starter

  • Super Contributor
  • ***
  • Posts: 4665
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Logic as level shifter?
« on: March 16, 2017, 07:23:49 am »
I've made a mistake on a little project. Like we all do sometimes.
There is this little circuit with a 3.3V MCU and a little P-channel fet switching some 5V stuff.
The fet has a gate pull-up to 5V to turn it off, but is clamped at 3.6V due to the pin used on the mcu not being 5V tolerant. So it's not going off completely.
5-3.6 is Vgs 1.4

For a cheap fix I could add a NPN transistor, but that would require an additional new part.

Can I use an 74LVC1G57 Configurate gate as 3.3V to 5V level shifter?
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 14140
Re: Logic as level shifter?
« Reply #1 on: March 16, 2017, 07:50:24 am »
Provided you've got a 5V supply for it, and the 3.3V MCU logic '1' level is over 3.1V the thresholds in Table 12. Transfer characteristics look promising.  There isn't going to be a lot of margin so put it as near as you reasonably can to the MCU pin.
 

Offline Jeroen3Topic starter

  • Super Contributor
  • ***
  • Posts: 4665
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: Logic as level shifter?
« Reply #2 on: March 16, 2017, 08:26:43 am »
I see a problem when it gets hot. I'd better add a reel of bc547's.
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 14140
Re: Logic as level shifter?
« Reply #3 on: March 16, 2017, 08:32:08 am »
As long as your 5V supply isn't more than 0.1V high you've got a little margin over the full temperature range.
 

Offline Jeroen3Topic starter

  • Super Contributor
  • ***
  • Posts: 4665
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: Logic as level shifter?
« Reply #4 on: March 16, 2017, 09:34:19 am »
Yeah, its a "regulated" DC/DC (24 to 5) sip brick. So no warranties there.
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 14140
Re: Logic as level shifter?
« Reply #5 on: March 16, 2017, 09:41:43 am »
Better bite the bullet and put in something like a 74LVC1T45 (or 74LVC2T45 if you need two channels)
You may even be able to safely do away with the gate pullup.
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 30439
  • Country: nl
    • NCT Developments
Re: Logic as level shifter?
« Reply #6 on: March 16, 2017, 12:00:27 pm »
I'd go for a 74HCT device. You can power them from 5V but since they are TTL compatible Vih (logic high input threshold) is 1.4V.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline Jeroen3Topic starter

  • Super Contributor
  • ***
  • Posts: 4665
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: Logic as level shifter?
« Reply #7 on: March 16, 2017, 02:24:19 pm »
Since it required a pcb update. I've placed some sot23 npn.
Obviously, there are plenty of special chips to buy for this, but board space and efficiency were not a design goal.

The reason I asked for the configurable gate is because there were already some on the board.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->