What kind of wave should i feed the input of sample and hold,which is in the sar adc
Sample-and-hold has TWO input voltages
(1) the squarewave (rectangular wave) rail-rail signal that opens/closes the sampling switch

(2) the voltage or waveform being sampled. 

The datasheet will define min and max values for (1) and for (2).