We are using LM2940imp-5 regulator in our circuit to generate 5V to the board with an input voltage of 24 V. The load current on regulator is 500mA. we are facing issue that when we increase input voltage beyond 12 V the out put voltage is decreasing from 5V with an load of 500 mA. with out load the out put is stable.