element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Embedded Forum Trouble shifting 5V clock down to 3.3V
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 12 replies
  • Subscribers 482 subscribers
  • Views 1480 views
  • Users 0 members are here
Related

Trouble shifting 5V clock down to 3.3V

Former Member
Former Member over 10 years ago

Hi Folks.

 

I have a pwm generated clock from my mcu which is at 5V. I want to step this down to 3.3V. I am using a 2N7000 N channel mosfet and the setup shown below.

 

image

 

This is the square wave generated by the mcu:

image

 

When I put it through the level shifter I get This output:

image

 

It is clearly offset and very distorted. When I apply 5V directly I get 3.3V out and when I connect ground to it I get 0V out as expected. However when I apply the 0 to 5V square wave it doesn't work.

 

Does anybody know why this is happening?

 

Thanks,

 

Mark.

  • Sign in to reply
  • Cancel

Top Replies

  • michaelkellett
    michaelkellett over 10 years ago +1
    Do it like this: R1 should be chosen according to frequency - for 50kHz 1k will be acceptable. R2 will not be necessary with a 2n7000 (apply input directly to gate.) This type of level shifter is not very…
  • Jan Cumps
    Jan Cumps over 10 years ago +1
    Mark, I've made a few videos on this subject. Having an ugly deformed signal with a voltage divider solution is normal. www.youtube.com/watch www.youtube.com/watch
  • shabaz
    shabaz over 10 years ago in reply to Former Member +1
    Bit of a large package(20-pin DIP but SN74LVC244AN SN74LVC244AN is a nice part to have around It is 5V tolerant so good for level conversion particularly if you have many signals
Parents
  • michaelkellett
    michaelkellett over 10 years ago

    Do it like this:

     

     

    image

     

    R1 should be chosen according to frequency - for 50kHz 1k will be acceptable. R2 will not be necessary with a 2n7000 (apply input directly to gate.)

     

    This type of level shifter is not very good at high speeds - where you should use a proper level shifting chip.

     

    MK

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to michaelkellett

    Thanks for the reply.

     

    I did need to use R2 at1K otherwise connecting directlyto the gate prevented the mcu from generating the clock. I got a decent looking wave out with perak voltage of 3.6V which should be ok for 3.3V device.

     

    How do I select R1 for different frequencies. I would like to use between 1MHz to 8MHz. If this is not good at high speeds like you said what chip would you recommend?

     

    Mark.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Former Member
    Former Member over 10 years ago in reply to michaelkellett

    Thanks for the reply.

     

    I did need to use R2 at1K otherwise connecting directlyto the gate prevented the mcu from generating the clock. I got a decent looking wave out with perak voltage of 3.6V which should be ok for 3.3V device.

     

    How do I select R1 for different frequencies. I would like to use between 1MHz to 8MHz. If this is not good at high speeds like you said what chip would you recommend?

     

    Mark.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • michaelkellett
    michaelkellett over 10 years ago in reply to Former Member

    One of these would be good - surface mount only:

     

    • Manufacturer: TEXAS INSTRUMENTS
    • Order Code: 2499912
    • Manufacturer Part NoSN74LV1T126DBVR

    TI don't list any through hole parts.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube