I'm new to Arduino and have an UNO. I'm working on a motor control project using PWM. I'm new to Arduino but have been a programmer of microcontrollers for many years both in assembly and C. My question comes from an article I found called the SecretsPfArduinoPWM where the line
TCCR2A = _BV(COM2A1) | etc.
I understand that this is setting the register TCCR2A with a value. I am unfamiliar with the _BV. Is this to set a bit value? Is it a define or a macro defines somewhere? I've tried searching the Arduino reference but can't find _BV().
thanks.
thanks very much. I had been reading the ATmega328P data sheet so I've got a better idea of what's happening. The link you sent me for microchip reference will be very helpful.