Unable to synchronize clocks

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

cross mob
Mrinal
Level 4
Level 4
First solution authored 50 replies posted 25 replies posted

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
6 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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
lock attach
Attachments are accessible only for community members.
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

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
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

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
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

   

 

   

Bob

0 Likes
Mrinal
Level 4
Level 4
First solution authored 50 replies posted 25 replies posted

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
lock attach
Attachments are accessible only for community members.
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

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

   

post.

   

 

   

Regards, Dana.

0 Likes