Hello,
I need to control a servo motor that has pulse duration from 0.9mS to 2.1mS with 1.5mS as center. The pulse refreshes at 50Hz (20mS). Is the dead band the only way? and how can I use it?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I need to control a servo motor that has pulse duration from 0.9mS to 2.1mS with 1.5mS as center. The pulse refreshes at 50Hz (20mS). Is the dead band the only way? and how can I use it?
you are trying to create a control signal that varies between 0.9 and 2.1 ms with a frequency of 20 ms...but the pulse has to be centered around 1.5ms?
If you tried to do this with a 16b PWM up-down timer for 20 ms = 1,000,000 counts of 50 MHz...it couldn't be done. With the 32-bit eCAP working as a PWM though you have plenty of resolution....you could also probably do this with a SW GPIO pretty easily.
follow the example in controlSUITE. you will need to configure your 20ms and edge triggers
C:\ti\controlSUITE\device_support\f2803x\v125\DSP2803x_examples_ccsv4\ecap_apwm