DRV8835 analogWrite isn't working in all values

I have connected DRV8835 with 2 dc motors with 11 power supply. Arduino nano.
When I for loop i from 0 to 1024 for analogWrite for the dc Motor1 it's accelerating from 0 to like 200 and it's stoping. When i~250 it's starting at higher speed. When i becomes 500 it's stopping again..

Now I tried to run analogWrite(1000, ***) but it's not working. When I change 1000 to 1005 it's not working again. But at 1024 we have the maximum speed..0

The range of values for analogWrite() is 0 to 255

...R