update pwm controler and some raw demo