EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / Using multiple inputs on the same port of 8051

Using multiple inputs on the same port of 8051

|

Microcontroller › 8051 › Using multiple inputs on the same port of 8051

  • This topic has 2 replies, 3 voices, and was last updated 9 years, 1 month ago by Ashutosh Bhatt.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 14, 2016 at 7:50 am #4366
    Jules
    Participant

    Hi,

    Is there any way to using multiple inputs on the same port of 8051. Almost like automatic swicth selectors for a specific port. What I want to do is to use more than one input on the same port but I have to instruct the 8051 in the codes to switch automatically from one input to another when it is needed. The scenario I have is that I want to use only port 0 to use 3 sensors (Light, Proximity and Temperature). How can I go about doing this? Please help me.

    September 22, 2016 at 9:44 am #14148
    GANEEV SINGH
    Participant

    Hi Jules

    What I have interpreted from your doubt is that you want to dedicate only one PORT for interfacing light,proximity and temperature sensors, also you might be using ADC concept with this, is it so? If yes, then of course you can do this. There are many ways of performing the same but the main idea lies in multiplexing these sensors. You could use a multiplexer (4:1 in this case) or make your own using BJTs, I would suggest you the former. It is simple, the output pin of multiplexer will be connected to the input pin of ADC IC like ADC0804/08/09. The three sensors will be connected to individual input pins of the multiplexer. You'll also need some I/O pins as selection pins for multiplexing.

    This might help.

    September 26, 2016 at 8:59 am #14161
    Ashutosh Bhatt
    Participant

    you can use 8 channel ADC 0808 with 8051 and then connect atmost 8 sensors with only port

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • restarting this Christmas project November 14, 2025
  • desoldering November 13, 2025
  • Unknown, to me, electric motor fitting November 13, 2025
  • Can a small solar panel safely trickle-charge old NiMH AA batteries? November 13, 2025
  • KiCad custom symbol definition correct approach November 13, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise