how to access the bits in MCU 8051 IDE. P0.0=0x55;

Status
Not open for further replies.

gsatish10

New Member
I am trying to write bit access prg in 8051 MCU IDE
I am getting the syntax error with the following options
P0.0=0x55;
P0^0=0x55;

above options I am getting syntax error with ".0" "^"

Can you please guys help me out what is option to get the righ toption in MCU 8051 IDE.


Thanks to all
 
You can write byte wise

Code:
P0 = 0x55
Or you can write bitwise

Code:
P0.0 = 0
P0.0 = 1


But you cant write 0x55 to a single bit...
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…