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.

[参考译文] LAUNCHXL-F28379D:使用 CCS 实现 SG90 伺服电机控制的[LAUNCHXL-F28379D ] PWM 配置

Guru**** 2868190 points

Other Parts Discussed in Thread: SYSCONFIG, C2000WARE

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1638546/launchxl-f28379d-launchxl-f28379d-pwm-configuration-for-sg90-servo-motor-control-using-ccs

器件型号: LAUNCHXL-F28379D
Thread 中讨论的其他器件: SysConfigC2000WARE

我使用 Code Composer Studio (CCS)、不知道如何使用 PWM 控制标准 SG90 伺服电机。SG90 伺服需要 50Hz 频率和 1ms 至 2ms 之间的脉冲宽度。  此任务建议使用哪个 ePWM 模块? 如何配置寄存器或使用 SysConfig 来实现 50Hz 频率? 基本伺服控制的简单 C2000Ware 示例。 是否有任何有关 PWM 配置的初学者指南视频或 TI 官方培训视频?  

image.png

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Alan、  
    有关基本的 ePWM 配置、请参阅中的示例 2 和 13  C:\ti\c2000\C2000Ware_26_00_00\driverlib\f2837xd\examples\cpu1\epwm 文件夹。 您可以相应地编辑 TBPRD 和 CMPA/CMPB 值、以实现所需的频率和占空比。
    谢谢
    Praneeth