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 13 years, 11 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

  • mechanism to shutdown feeding when sensor temperature rises December 9, 2025
  • Want Thermal Camera with Fixed Thermal Span option December 8, 2025
  • Bad design , bad maintenance or just how it was. December 8, 2025
  • Looking for single photovoltaic cells for light gate December 8, 2025
  • Sanity Check – Peltier "Cooler" for Heating and Cooling December 8, 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