That was just superb!

I got it now how to deal with Software PWMs. Thanks a lot all of u!

Now can anybody tell me that how would i determine that what frequency do i need to supply in order to run my motor correctly. I mean what is the effect of frequency on motor?

e.g:

if i apply a pWM of freq 100Hz to a motor

and then apply a PWM of freq 1000Hz to the same motor.

What will be the difference between the two?