one 5v/0v to 2x 5v?

Status
Not open for further replies.

computer

New Member
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]
 
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!
 
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
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…