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?
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.
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:
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.
OK, I'll keep you informed.