Add interrupt that runs at the start of every PWM period and re-loads the
pulse width (CCR) for the following PWM cycle from a variable shared with main
program.