- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear all
Is there a way to drive the clock input of the PWM component form an external digital input pin?
I'm very new to PSOC 4 and had no chance to fix the problems 😞
Thanks, Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome in the forum, Martin!
It can be done, see attached project. Look in .cydwr-file at the clocks to see how it is done.
But I question if you need that at all.
The PWM component has got
- a period value which can be changed on-the-fly, but is usually kept fixed
- a compare value which is used to change the duty-cycle of the PWM
So, what exactly do you want to perform?
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Bob
Thanks for your response. Please attach the project, I couldn't find it 🙂
I need this functionality because I want to link the PSOC-PWM with a simulation which controls the PWM clock.
Thanks
Martin
- 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
Hi Bob
Sorry for my late reply, I had other topics to work on.
But now I found some time to continue the investigation. I took your project and adapted it a little bit for my needs. But unfortunately I was not able to run the PWM with clock signal from an external pin. If I change the clock component in the TopDesign to a new clock it works.
Any idea why the external Clock is not recognized from PWM component?
Not working results:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Then I am at end of my wits.
Consider getting in contact with Cypress directly and post the answere here. At top of this page select "Design Support -> Create a Support Case" and describe your problem.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK, I'll keep you informed.
Thanks
Martin