1.

Can Single Bit Of A Port Be Accessed In 8051?

Answer»
  • Yes, 8051 has the CAPABILITY of accessing only single BIT of a PORT.
  • Here only single bit is accessed and rest is unaltered.
  • SYNTAX: “SETB X. Y”.
  • Here X is the port NUMBER and y is the desired bit.
  • Example: SETB P1.2

 Here the second bit of port 1 is set to 1.

 Here the second bit of port 1 is set to 1.



Discussion

No Comment Found