servo angle is calculated by variable resistor so there is a mapping function between ADC and PWM generator 0 and angle displayed at nokia5110 lcd The system is running under FreeRTOS OS.