- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying to build a robot arm with servo motor (SG90) and controlling capsense slider and touch button. Im use CY8CKIT-145 kit to build this project. but I found the servo is not running stable. looking like the capsense scanning will stop the PWM. anyone can help!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The CapSense have no ability to prevent the PWM.
Could you give me a simple project to reproduce the issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
从工程看,CapSense 与 PWM 之间不存在相互干扰的情况。问题应该出在你尝试在 PWM 运行过程中直接修改其比较寄存器,这样做很容易导致 PWM 输出 glitch 等于预期不符的波形。建议你使能四个 PWM 的 compare swap 功能,并通过 PWM_1_TriggerCommand() 来触发 switch 动作,这样新的比较值就不会在当前周期中直接覆盖现有比较值,而是在 PWM 接下来一次的 TC 事件发生时将新的比较值拷贝的现有比较寄存器并生效。
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your help, now I know how it work!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I briefly read your project and the configuration of PWM might be wrong.
I have posted a sample using SG-90. (I'm sorry it's in Japanese)
TSoC CY8C4146LQI-S433 基板 サーボ SG-90 サンプル
But please take a look at the PWM setting in the project attached.
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your help, now is working.