Drive PWM clock input from external Pin

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

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

0 Likes
6 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

0 Likes
Anonymous
Not applicable

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

0 Likes
lock attach
Attachments are accessible only for community members.
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Click-resistant mouse  😉

   

 

   

Bob

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

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:

   

   

 

   

   

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

0 Likes
Anonymous
Not applicable

OK, I'll keep you informed.

   

Thanks

   

Martin

0 Likes