How can I set and retrieve bitwise in uVision C? Similar to assembler P1.0 addresses Bit0 in Port P0. I could not find any possiblility to do so unless I take the usual Bitaddressing techniques (masking and shifting) Please answer to andreas.alef@web.de Regards, A. Alef
Note that it would generally be better to give the bit a more meaningful name than just "P0_0" - make it reflect the function of that bit; eg, door_open or tank_full Agreed. I was just reflecting the name he chose.