I'm in the process of learning how to use the timers on an Atmega 328P chip, with the goal of eventually building and programming an inverted pendulum robot.
However, I'm having a hard time understanding some of the "syntax" the data sheet uses, for lack of a better word.
For example, in section 19.7.4;
The Phase Correct PWM mode (WGM0[2:0]=0x1 or WGM0[2:0]=0x5) provides a high resolution, phase
correct PWM waveform generation.
What does the "WGM0[2:0]=0x1" part mean? I've seen a lot of similar things on the data sheet but I can't figure it out. I know what WGM is, I just don't understand what the "[2:0]=0x1" part is trying to convey.
Here's the link to the Atmega 328p data sheet for anyone who wants to see the whole thing. My question comes from the very beginning of section 19.7.4