TI E2E Community
C2000 32-bit Microcontrollers Forum
Controlling servo motor by PWM from F28069
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.
Can you let me know how can I do this?
follow the example in controlSUITE. you will need to configure your 20ms and edge triggers
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.