pwm01 = Get_Analog_Value(rc_ana_in01) * 254 / 1023;
pwm01 = (char) (((long) Get_Analog_Value(rc_ana_in01)) * 254L / 1023L);