Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
PORTB = 0b11111110; // assigning a value to PORTB unconditionally
PORTB &=0b11111110; // reading PORTB and MASKING OUT the LSB bit ONLY
PORTB = PORTB & 0xFE; // same statement written differently
PORTB &= (1<<PB0); // isn't correct if it should be the same as the previous...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.