lpcware

LPC17XX PWM iSSUE

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Wilbur He on Sun Mar 01 07:33:57 MST 2015
Hi all, I have met some problem on using PWM to control the servo. I have defined two functions which is servo1turn and servo2turn, however i can't my them run properly at the same time
but if I delete one, the other one will work.

How should I solve this? add a delay? (but I don't want to add too much delay in my program)


ps: the code in servoturn is just the configuration of the pwm pins, for servo1 I used MR2, for servo2 I used MR3

Outcomes