из хэлпа кодевижена:
The bit level access to the I/O registers can be also accomplished by using bit selectors appended after the name of the I/O register.
Because bit level access to I/O registers is done using the CBI, SBI, SBIC and SBIS instructions, the register address must be in the 0 to 1Fh range for sfrb and in the 0 to 1Eh range for sfrw.
Т.е. на портах, которые находятся в адресах 0 to 1Fh, например PORTB.1=1; будет работать.
Порты, адрес который находится в RAM, например PORTF.1=1; не будет работать.
Note: Bit selector access to I/O registers located in internal RAM above address 5Fh (like PORTF for the ATmega128 for example) will not work, because the CBI, SBI, SBIC and SBIS instructions can't be used for RAM access.
Есть в CV хидер iobits.h там макросы для работы с битами:
SETBIT(port,b) - sets bit b of port to logic 1 state, CLRBIT(port,b) - sets bit b of port to logic 0 state и т.д.
Или же писать стандартно:
PORTF |= 1<<1; //установить бит 1 в порту F
PORTF &= ~(1<<1); //сбросить бит 1 в порту F