3.3v to 5v CMOS interfacing - diyAudio
Go Back   Home > Forums > Source & Line > Digital Source

Digital Source Digital Players and Recorders: CD , SACD , Tape, Memory Card, etc.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 14th May 2006, 06:55 PM   #1
Zodiac is offline Zodiac  United States
diyAudio Member
 
Join Date: Jun 2003
Location: Kenfield, CA, USA
Default 3.3v to 5v CMOS interfacing

Hi

I'm trying to interface a 3.3v logic output (from a PCM2706 USB receiver) to a 5v TTL input (HC4024 counter). Is there any easy way to do this for example using a transistor switch? Googling hasn't brought any easy answers... or would swapping the HC for a HCT do the trick?

Any help greatly appreciated
  Reply With Quote
Old 14th May 2006, 08:03 PM   #2
diyAudio Member
 
Real_Macgyver's Avatar
 
Join Date: Aug 2004
Location: Sweden
Yes, you can use a single transistor as a level converter. Use a CE stage, 3.3V input on the base and output on the collector.
The collector needs a resistor on a few kohm and the emitter is grounded. The collector is connected to +5V and the output signal is taken after the collector resistor. This makes it swing between +5V and 0V. Notice that the signal will be inverted. Don't forget the base resistor.
  Reply With Quote
Old 14th May 2006, 09:01 PM   #3
diyAudio Member
 
BlackCatSound's Avatar
 
Join Date: Oct 2004
You should be able to find the input switching thresholds for the TTL gate, but an HC is not TTL, its CMOS.

Its very likely the 3v3 output will drive it directly, no need for any 'glue'.
  Reply With Quote
Old 14th May 2006, 09:27 PM   #4
Dave is offline Dave  New Zealand
diyAudio Member
 
Join Date: Oct 2001
Location: New Zealand
HCT logic will work with 3.3v input signals.
  Reply With Quote
Old 14th May 2006, 09:47 PM   #5
Zodiac is offline Zodiac  United States
diyAudio Member
 
Join Date: Jun 2003
Location: Kenfield, CA, USA
Quote:
Originally posted by Real_Macgyver
Yes, you can use a single transistor as a level converter. Use a CE stage, 3.3V input on the base and output on the collector.
The collector needs a resistor on a few kohm and the emitter is grounded. The collector is connected to +5V and the output signal is taken after the collector resistor. This makes it swing between +5V and 0V. Notice that the signal will be inverted. Don't forget the base resistor.
Thanks, I kinda thought that would do the trick....sounds straightforward enough! I guess 100r for the base and 2k for the collector would be ok?
  Reply With Quote
Old 14th May 2006, 09:49 PM   #6
Zodiac is offline Zodiac  United States
diyAudio Member
 
Join Date: Jun 2003
Location: Kenfield, CA, USA
Quote:
Originally posted by BlackCatSound
You should be able to find the input switching thresholds for the TTL gate, but an HC is not TTL, its CMOS.

Its very likely the 3v3 output will drive it directly, no need for any 'glue'.
Yeah I made a mistake - it's CMOS not TTL therefore I was having voltage threshold problems, figured that bit out with a scope after tracing the circuit from the master clock output of the receiver

Thanks for the help
  Reply With Quote
Old 15th May 2006, 09:43 PM   #7
Zodiac is offline Zodiac  United States
diyAudio Member
 
Join Date: Jun 2003
Location: Kenfield, CA, USA
no luck it seems... inserted an NPN transistor switch in the circuit, base connected via 470r resistor to the output of the receiver chip (high state 2.8v, low 0.4v), connected emitter to gnd and collector to 5v via 2k47 resistor. Output to circuit from collector / resistor junction.

Looked at it with a scope and multimeter - looks like the collector is saturated permanently (hanging at 15mv or so), scope shows signal on one side of the 470r resistor, not on the other

Any ideas? Why not working!!!
  Reply With Quote
Old 15th May 2006, 09:47 PM   #8
diyAudio Member
 
darkfenriz's Avatar
 
Join Date: Jun 2004
Location: Warsaw
Try open collector or open drain buffer.
  Reply With Quote
Old 15th May 2006, 10:03 PM   #9
Zodiac is offline Zodiac  United States
diyAudio Member
 
Join Date: Jun 2003
Location: Kenfield, CA, USA
Quote:
Originally posted by darkfenriz
Try open collector or open drain buffer.
Whats an open drain buffer when its at home!?

Also what should I be looking for?
  Reply With Quote
Old 15th May 2006, 10:11 PM   #10
Dave is offline Dave  New Zealand
diyAudio Member
 
Join Date: Oct 2001
Location: New Zealand
Just swap to an HCT device, the transistor and pull resistor will be probably be too slow on the rising edge anyway.
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
new interesting CMOS op-amps Dominique Solid State 12 4th April 2011 06:42 PM
24 bit ADC interfacing with ARM using I2S sukhdeep Digital Line Level 2 20th June 2009 03:37 PM
Recommendation for a good CMOS op-amp? rruss Solid State 8 20th October 2004 08:39 PM
cmos inverter speed till Digital Source 6 21st June 2004 02:51 AM
which is a better spdif-to-cmos converter? rlim Digital Source 4 15th June 2004 07:03 AM


New To Site? Need Help?

All times are GMT. The time now is 11:37 PM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2