- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am generating 2 PWM signals in CYBT-213043-02 using two channels PWM-0 and PWM-1 by coupling it to GPIO-12 and GPIO-13. But the output pwm signals are not stating at a same time. One have a time delay over other, Because of that I get an unwanted spike when i subtract those signals in oscilloscope. Could someone help me out to solve this issue, I tried changing the input clock frequencies too, But i am unable to solve this issue. Also i don't have access to gpio's other than 12 and 13.
Find the attached images of signals from oscilloscope. Channel 1 and channel 2 has PWM signal, Middle red colored one is Math(minus of 2 signals).
Please reply ASAP.
Thanks in advance.
- 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 response,
Is this command works with CYBT-213043-02 mesh board, Because while reading the documentation i haven't came across this API to synchronize it. Also the file you shared has sources regarding PSoC4 but mine is mesh-kit(CY-20819 MCU).
Anyway let me try and update you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI linglingG_46,
I tried the API that you suggested but unfortunately it's not available for CYBT-213043-02 mesh board, Could you suggest me a relevant API to solve my issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Dheeraj or Anjana/Others,
Could someone please help me to solve this issue in Synchronizing the PWM signals...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you mean that you need the same PWM signal on two GPIOs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, You're correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you try to call the API wiced_hal_pwm_start first. Then call the API wiced_hal_aclk_enable to enable the PWM clock?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Xinghao,
I tired the way you told, But still there is no synchronization between the PWM signals.