The data sheet says I can:
Quote:Why on Earth would I ever want to toggle an input? Does anyone do this and if so why and if not why is it a feature worth mentioning in the data sheet? Maybe I'm miss reading this and this is an alternate way to change an output pin, but why would I want to do that. Oh wait, is this how I'd toggle an output pin without knowing its state and not wanting to use the xor bitwise operator. I'm confused.
Writing a logic one to PINxn toggles the value of PORTxn, independent on the value of DDRxn.
Note that the SBI instruction can be used to toggle one single bit in a port.