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 / related I/O pins operations of 8051……..

related I/O pins operations of 8051……..

|

Microcontroller › 8051 › related I/O pins operations of 8051……..

  • This topic has 2 replies, 3 voices, and was last updated 14 years, 4 months ago by Dexter.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 17, 2011 at 8:07 am #1448
    kirusanthan
    Participant

    hi friends i have doubt on i/o pins configuration of 8051.when i am writing embedded c program for selecting the single bit code sbit led=P1^0; like that for selecting all port0 pin means sfr led=0x80;… but my doubt on first im selecting all port pin using sfr then how i selecting particular pin example P0.1 form that sfr port for read and write…..

    December 30, 2011 at 10:32 am #6969
    nikhiljain
    Participant

    you can use either of the one operation. If you are using SFR u are using the entire 8 bits as a byte. When you are using sbit u are using only the corresponding bit..

     

    Using both for the same port in the program may produce logical error if not the syntax error..

    December 30, 2011 at 1:28 pm #6972
    Dexter
    Participant

     

    what nikhiljain said is correct .

     

    Using both for the same port in the program may produce logical error if not the syntax error..

     

  • 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

  • Phone charger fix May 11, 2026
  • Phone Charger 5v to 12v May 11, 2026
  • Voltage comparator circuit verification May 10, 2026
  • What is this??? May 10, 2026
  • Why aren’t the power windows in my 2006 Volkswagen Polo 2006 working despite repairing the control unit circuit board? May 10, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 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