• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Switch between different sets of inputs

Status
Not open for further replies.

Powzoom

New Member
I have a pic micro controller that is hooked up to 5 devices that each have 7 wires for control. Only 1 device needs to be used at a time. I don't have 5*7 = 35 ports on my pic. How can use less pins on my pic? I'm thinking something like a multiplexer would help but I'm not sure how to implement it in this case.
 

rajbex

Member
Which PICmicro are you using? You can use 5 octal latch ICs (like 74LS373), each for individual device control signals. All the inputs of latches will be connected in parallel. This way, you can send 7 control signals to all devices but it will be received by only one whose Latch Circuit is Output Enabled. Check datasheets for 74LS373. Also check for 74LS273.

- Raj
Experiments with PIC16F628A
 

Diver300

Well-Known Member
Most Helpful Member
I have a pic micro controller that is hooked up to 5 devices that each have 7 wires for control. Only 1 device needs to be used at a time. I don't have 5*7 = 35 ports on my pic. How can use less pins on my pic? I'm thinking something like a multiplexer would help but I'm not sure how to implement it in this case.
Can you have an enable line for each device? Then you could connect the 7 wires to all the 5 devices, and 5 enable wires. Total of 12 ports.
 

RayVT

New Member
someting I made up quick, It might help


Sorry 48 Input ports - it was late...
 
Last edited:
Status
Not open for further replies.

Latest threads

EE World Online Articles

Loading
Top