CE Home
Navigation
Go Back   CrazyEngineers Forum > CE : Technical Discussions > Electrical & Electronics Engineering
Notices


Advertisements
Reply
 
LinkBack (1) Thread Tools Display Modes

  1 links from elsewhere to this Post. Click to view. #1 (permalink)
Old 2nd October 2007, 06:36 AM
CE - Newbie
 
Join Date: 2nd October 2007
I'm a Crazy Computer Science Engineer
Posts: 2
Default Need help finding a 12v <-> 5v level converter

Hi,

I'm trying to interface a 4021 (8 stage static shift register) chip which is receiving a 12v clock and data input from a remote device to a PIC chip. The PIC needs to talk at 5v TTL levels. The PIC is interfacing to the 8 bit parallel side of the 4021, the remote device connecting serially.

As the 4021 is bi-directional I need to do line level converting in both directions.

Anyone know of a simple solution that can handle the job?

Thanks,
Matt.
doozer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)
Old 4th October 2007, 03:24 AM
CE - Editor
 
xheavenlyx's Avatar
 
Join Date: 2nd October 2006
Location: Dubai, UAE
I'm a Crazy Electronics Hacker & Engineer
Posts: 572
Default Re: Need help finding a 12v <-> 5v level converter

1. If your PIC's datasheet states it can accept serial 12v input then interface the device directly to the PIC skipping your 4021.

2. Check your 4021 datasheet, if it is a CMOS chip it will work on the 12V input but, I THINK, will give a 5v parallel output. See the datasheet, it has a lot of information of allowed inputs and the available output level.

3. If the powersupply for your CMOS 4021 is 5V the output data will be 5V. thats how it works, again, this is an assumption. Datasheet is your best friend.

4. Do tell us what the datasheet says about all this.
xheavenlyx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)
Old 5th October 2007, 04:41 AM
CE - Newbie
 
Join Date: 2nd October 2007
I'm a Crazy Computer Science Engineer
Posts: 2
Default Re: Need help finding a 12v <-> 5v level converter

Quote:
Originally Posted by xheavenlyx View Post
1. If your PIC's datasheet states it can accept serial 12v input then interface the device directly to the PIC skipping your 4021.

2. Check your 4021 datasheet, if it is a CMOS chip it will work on the 12V input but, I THINK, will give a 5v parallel output. See the datasheet, it has a lot of information of allowed inputs and the available output level.

3. If the powersupply for your CMOS 4021 is 5V the output data will be 5V. thats how it works, again, this is an assumption. Datasheet is your best friend.

4. Do tell us what the datasheet says about all this.
1. Absolute maximum input direct to the PIC is 7.5V. So not an option.

2. The parallel output of the 4021 is determined by the input. It'll happily work from 5v to 15v. ie. a 12v input produced ~12V output. The chip is reversible, that is, can work as serial -> parallel and parallel -> serial hence the input voltage becomes the output.

3. Power supply to the 4021 is 12V. The other end is a 3rd party device which I have no control over. Its clock and data lines are at 12V levels.

4. See above answers

With the help of my CRO i have determined that the clock is always driven by the remote device. Thus my thinking is to use a few opto-couplers. One for the incoming clock signal and 2 for the data line. One for when reading, another for when writing.

Would love to hear your thoughts...

Thanks,
Matt.
doozer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)
Old 5th October 2007, 09:41 PM
CE - Editor
 
xheavenlyx's Avatar
 
Join Date: 2nd October 2006
Location: Dubai, UAE
I'm a Crazy Electronics Hacker & Engineer
Posts: 572
Default Re: Need help finding a 12v <-> 5v level converter

Ohmy, I can honestly say one thing that my practice skills is a little lacking.

I think isolation is the best option here. One more point is that, there are a few other methods that you very well know about except HVIC's (I THINK) which stands for High Voltage Integrated Circuits, so here are few excerpts from ElectronicDesign.com

[quote] There are alternative ways to level-shift signals from one reference to another, like pulse transformers and other magnetically isolated level shifters, optocouplers, and capacitive-coupled level-translating drivers. Generally, though, HVICs are more attractive than these alternatives.

For example, HVICs have lower losses than optocouplers. This is primarily because they don’t require secondary-side power supplies. (Secondary power can be derived from the primary side using bootstrapping techniques requiring simply a diode and capacitor.) Another advantage is that they can accommodate any practical output drive size. Then, there are HVICs designed for output currents in excess of 4 A (peak) for driving large switches.

Other advantages over optocouplers include high-frequency operation and short input-to-output delays. HVICs can function up to 1 MHz, and delays are less than 50 to 60 ns. Compared to pulse transformers, HVICs offer larger duty cycle ranges. More broadly, as monolithic circuits, HVICs can provide functionality beyond level shifting at little or no extra cost and with minimal external circuitry. For instance, undervoltage lockout inhibits the outputs in case there’s a power-supply brownout.
[/QUOTE]

Well, then the passage goes on to say these circuits (the pre manufactured ones) come in ranges from 100 to 2000 V ! Thats way out of your requirement.

I guess optocouploing is the best solution because I remember OHHHHH, I just remembered, our analog subject had this topic for signal isolation! I will confirm any other information provided there and let you know.
xheavenlyx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)
Old 11th October 2007, 01:48 AM
ash
Moderator
 
ash's Avatar
 
Join Date: 12th July 2007
Location: IIUM, Malaysia
I'm a Crazy Communications Engineer
Posts: 1,536
Default Re: Need help finding a 12v <-> 5v level converter

Man, I have no idea whats going on here! Me just rely on the good old 7805 for my TTL level needs Matt, which PIC are you using anyway?
ash is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)
Old 30th October 2007, 10:55 AM
CE - Regular Member
 
reachrkata's Avatar
 
Join Date: 4th November 2006
I'm a Crazy Electronics Engineer
Posts: 83
Default Re: Need help finding a 12v <-> 5v level converter

I am not very sure of the system being described as such. But if the clock and data frequencies involved are low (in the KHz range), I think simple Op amps should be enough for the voltage conversion. I think it is not necessary to go in for costly opto couplers / other interface ICs.

Keeping the cost low while still satisfying the requirements is an important point to consider !!!

My two cents are - Use 12V as the main supply for the sytem. Use a simple Linear regulator for the 5V supply of PIC. the 12V also serves are the voltage for up converson of the PIC data outputs connected to the 3rd party system.

reachrkata is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.crazyengineers.com/forum/electrical-electronics-engineering/1308-need-help-finding-12v-5v-level-converter.html
Posted By For Type Date
convertitore 12v in ttl | VIRGILIO Ricerca | Web This thread Refback 13th June 2008 03:46 PM


All times are GMT +5.5. The time now is 06:54 PM.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Member comments are owned by the poster. Copyright © 2005-2008 CrazyEngineers.com. All rights reserved.

Advertisements