pub const COMPMODE_0: u16 = 0;
Expand description

The VAL* registers and the PWM counter are compared using an “equal to” method. This means that PWM edges are only produced when the counter is equal to one of the VAL* register values. This implies that a PWMA output that is high at the end of a period will maintain this state until a match with VAL3 clears the output in the following period.