![]() | ![]() | ![]() |
| | |||||||
| 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? |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| 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: ---------.-----.-----.-----.
| | | |
---------¦--.--¦--.--¦--.--¦--.
| | | | | | | |
[:][ ][ ][:][:][ ][:][ ]
[ ][:][:][ ][ ][:][ ][:]
| | | | | | | |
'--' '--' '--' '--'
| | | |
----------' | | |
----------------' | |
----------------------' |
----------------------------' 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] | |
| |
| | (permalink) |
| 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! | |
| |
| | (permalink) |
| 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. | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |