cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

MrMa_286121
New Contributor II

I want to align two clocks running at 100KHz and 1MHz.

   

1. I declared a Design wide cock running at 1MHz

   

2. Then dragged and dropped two clock components in the top design.

   

3. Configured the source of one clock from "EXISTING" 1MHz design wide clock and for the other I used a new divider but the same design wide clock running at 1MHz.

   

 

   

The clock configured from "existing" design wide clock simply does not work.

   

Please help

0 Likes
Reply
6 Replies
JoMe_264151
Expert II

Why don't you use two clocks derived from HFCLK, one with divider set to 48, the other set to 480 (when running at 48MHz)

   

 

   

Bob

0 Likes
Reply
ETRO_SSN583
Esteemed Contributor

This worked but not very elegant. See attached.

   

 

   

To config clock out to a pin see -

   

 

   

http://www.cypress.com/blog/psoc-sensei-blog/using-clocks-psoc-4

   

 

   

Regards, Dana.

0 Likes
Reply
ETRO_SSN583
Esteemed Contributor

I tried Bobs idea, used a divider on a 24 Mhz HFCLK, but PSOC 4 does not have phase align

   

feature, so 100 Khz clk started up 300 nS + from the 1 Mhz + edge. So that approach maybe

   

not useful.

   

 

   

Regards, Dana.

0 Likes
Reply
JoMe_264151
Expert II

...too bad, I thought that it would work...

   

 

   

Bob

0 Likes
Reply
MrMa_286121
New Contributor II

I came across this blog on Cypress website. It clearly explains how to synchronize two clocks on PSOC 4. I tried it, but didn't work for me.

   

Here is the link:

   

http://www.cypress.com/blog/psoc-sensei-blog/psoc-4-chained-clocks

   

​May be this could help or perhaps I am missing out something.

0 Likes
Reply
ETRO_SSN583
Esteemed Contributor

I tried the chained clocks, works good, more elegant than my prior

   

post.

   

 

   

Regards, Dana.

0 Likes
Reply