cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

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
Reply
6 Replies
Esteemed Contributor II

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
Reply
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
Reply
Esteemed Contributor II

Click-resistant mouse  😉

   

 

   

Bob

0 Likes
Reply
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
Reply
Esteemed Contributor II

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
Reply
Anonymous
Not applicable

OK, I'll keep you informed.

   

Thanks

   

Martin

0 Likes
Reply