Content originally posted in LPCWare by Lithium on Thu Apr 07 13:19:29 MST 2011
I need to have a pwm signal with 2ms high at 50% duty cycle.
The program given above has a frequency of 17.8khz. That is way to fast.
Most drivers can only read signals about 2ms.
Yes indeed, the ESC drives the motor, got 4 of them.
I did not tried to make a signal about 2ms, it is difficult for me to use interrupt etc.
I was looking for an working program and found this.
I was thinking how to make my own pwm output. Hope you could help me with it.
Make a timer until the 2ms max for example.
Use 4 var's where i can set the a number.
If the counter is greater then that number, put it high. Is it lower then put it low.
That could give me a pwm ouput.