Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 27th November 2004, 05:40 PM   (permalink)
Default one 5v/0v to 2x 5v?

Hi,

Is there a small IC that'll take the output from an PIC and if its 0v (low) put out 5v on one pin and if its 5v (high) put out 5v on another pin?

The reason I ask is I need to multiplex 8pin DIP into my pic for addressing but only have 1 spare output to switch the 2 channels. I have setup like:

Code:
---------.-----.-----.-----.
         |     |     |     |
---------¦--.--¦--.--¦--.--¦--.
         |  |  |  |  |  |  |  |
        [:][ ][ ][:][:][ ][:][ ]
        [ ][:][:][ ][ ][:][ ][:]
         |  |  |  |  |  |  |  |
         '--'  '--'  '--'  '--'
          |     |     |     |
----------'     |     |     |
----------------'     |     |
----------------------'     |
----------------------------'
I hope that works out! ASCII normally poops up for me

anyway, the two lines at the top need to be the 2 alternating between 5v.
the 4 at the bottom are input to the chip. Alternatively if you know of an easy way to implement a resistor ladder to do this that'd be another way ok with me

computer[/code]
computer is offline  
Old 29th December 2004, 10:28 AM   (permalink)
Default

bump?!?

still looking for something to do this. Perhaps a flipflop would work, but then I'd need another line for reset
Also, if its a library item in Eagle PCB, all the better!
computer is offline  
Old 29th December 2004, 03:33 PM   (permalink)
Default

when PIN is high, you need INa to be 0 and INb to be 1
When PIN is low, you need INa to be 1 and INb to be 0?

Use an inverter, drive the inverter with PIN, drive INb with PIN, and drive INa with the inverter.

If you're using any RS-232 drivers on the board you can use a spare channel (driving the rs-232 inputs) as a logic level inverter. Alternatively you can use a regular inverter chip (is it a 7404? but they're big) or make your own out of an NFET and a pullup, or an NFET and a PFET
__________________
A rectangular bear is just a polar bear after a coordinate transform. -- I dunno who.
A recent study shows that research causes cancer in rats. -- I dunno who said that one either.
Noggin is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 03:56 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

eXTReMe Tracker