Thanks for the reply Grumpy_Mike.
Grumpy_Mike:
Remove the transistor all together. Replace the motor with an LED, and put a 2K2 resistor in place of the IREF resistor and see that your software works.
Yes this lights up the LED.
Grumpy_Mike:
Then change the IREF resistor to 200R and replace your motor.
This doesn't turn on the motor but there's 0.36V voltage that drops across the motor.
Do i understand it correctly that this amount of voltage is not enough to turn the motor on?
Grumpy_Mike:
Note that this current is right on the limit of what the chip can supply, have you done the power calculations to make sure you don't fry the chip?
No I haven't.
I'm still not sure how to do so after reading your Power page http://www.thebox.myzen.co.uk/Tutorial/Power.html
Where shall i start?