pub const COMPMODE_1: u16 = 0x01;
Expand description

The VAL* registers and the PWM counter are compared using an “equal to or greater than” method. This means that PWM edges are produced when the counter is equal to or greater than one of the VAL* register values. This implies that a PWMA output that is high at the end of a period could go low at the start of the next period if the starting counter value is greater than (but not necessarily equal to) the new VAL3 value.