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, 8 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 feed: Recent Posts Recent Posts

  • Will this solenoid actuator work as intended? September 13, 2026
  • NE602/SA602 Bias and Buffer circuit September 13, 2026
  • Rotary encoder with push function September 12, 2026
  • How much does generator frequency stability matter for sensitive electrical equipment? September 12, 2026
  • differential line loss question September 11, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 Arrowfly 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 Arrowfly
Privacy Policy | Advertising

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