at last I got the solution. il give it because it may be helpful to somebody else.
the mokroc's pwm library dont support 10 bits. so PWM1_Set_Duty()
accepts only a number from 0 to 255. thats 0%duty to 100% duty cycle. if you want to use 10 bit resolution you should do it manully writting for registers.