use a 9 bit PWM and a 256 step lookup table