Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[moved] Multiplexer usage query

Status
Not open for further replies.

abhishek.2138

Full Member level 2
Joined
Dec 21, 2013
Messages
133
Helped
0
Reputation
0
Reaction score
1
Trophy points
1,298
Activity points
2,379
Hello,

I need to interface 14 digital inputs to microcontroller using multiplexer as MCU has less available pins.
Can anybody help how to use attached (datasheet) multiplexer with 8 inputs. I will use two such multiplexers to accomodate 14 inputs.

In the software programm, do I need to toggle the select pins??

Pls let me know.....
 

Attachments

  • Multiplex_74HC151.pdf
    195.7 KB · Views: 102

Hi,

With this solution you need:
2 data input at the microcontroller (wired to the ´151 "Y" outputs)
3 select output at the microcontroller (wired in parallel to the S0, S1, S2 inputs of the ´151)
(= 5 pins in total)
2 pieces 74HC(T)151

... for sure you need to "toggle" the Select pins. in this way:
* select 000 (bin)
* wait a little time for the signal to settle
* read the input(s)
* select 001 (bin)
* wait...
* read...
* and so on

***

Using a I2C port extender needs just 2 uC pins (SCL, SDA) and has several benefits like: individually selectable input or output, interrupt on pin change, standard interface, software library, ...

Klaus
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top