The reason what I need this for is as follows: In course of a university project I'm trying to control a speed control that changes the speed of a motor depending on the ingoing signal.
For example, if there's a signal (High) every 1 ms, the motor turns in one direction. If I changed the signal to every 2 ms, the motor turns into the other direction.
I'm afraid that this is only pssoible with a higher PWM frequency?
Maybe my expression was a bit misleading. With "direction" I meant the turning direction of the motor.
Depending on the signal it turns left or right. But as far as I know, the Arduinos PWM frequency is 500 Hz. And since I need to control the motor with signal in a range from 1 ms to 2 ms, a higher frequency of at least 1000 Hz is needed.
I hope this explanation illustrates the problem in a better way.
Your speed controller uses hobby radio control signals which are PPM not PWM. If you look in the arduino reference pages and playground for servo code you should be able to find what you need.
Ah, so you are using a DC motor controller with servo-style pulse width control? If so, then as mem suggests, you need to treat it like a servo and use the servo library.