Thanks for reference asmboy, have code for and now it is workig well. I have only problem of resolution, for that also i am trying by increasing crystal frequency.
i have done half bridge pwm with timer 2 but because of timer2 being 8 bit timer i am not getting resolution can any one give me idea how to do this with timer 1 since it is 16 bit and in datasheet it ...