Clock accuracy is not within the specified tolerance range

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

cross mob
KaAu_4610386
Level 1
Level 1
5 replies posted First question asked First reply posted

Greetings,

My project has a warning (see below) saying that the clock accuracy is not within the specified tolerance range. What are the implications of this warning? Any suggestions on how to fix it?

clock_accuracy.PNG

Thanks in advance!

0 Likes
1 Solution
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

KaAu,

In your project, the MASTER_CLK is 48MHz, and the Clock_6 is set to 50Hz, 5% accuracy, and Auto selection. The 50Hz, can't be obtained from the MASTER_CLK, because max divider value is 2^16=65536. So the lowest frequency obtainable from the MASTER_CLK is 48MHz/65536 = 732.4 Hz. Therefore PSoC automatically selects low-frequency ILO oscillator, which was set to 100kHz. The ILO has much lower accuracy (-55+100%), than you requested (5%).

The solution is to change Clock_6 source to MASTER_CLK, and set its value e.g. to 1000Hz, and to add a Divider component with divider value 20, to obtain final value of 50Hz.

/odissey1

View solution in original post

3 Replies
VenkataD_41
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi,

Are you using ILO in your application? If yes, this is expected because the tolerance of ILO has high tolerance in case of PSoC.

Can you please attach your project once?

Thanks

Ganesh

0 Likes
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

KaAu,

As Ganesh pointed out, your Clock_6 is sourced by ILO which does not have a tight tolerance (-55% to +100%).  However the clock component by default has a +/- 5% tolerance as a clock check.  (See items in RED in the "Configure 'Clock'" dialog.)

pastedImage_0.png

To 'fix' this you can:

  • uncheck the "Tolerance:" box.  This will not perform a clock tolerance check on this clock.
  • Change the '-' and '+' tolerances to mix the source clock tolerance.
  • Change the "Source:" to a more accurate clock like MASTER_CLK. 

The warning can be ignored if this clock and all it drives is not critical to be accurate.  For example, a slow clock like ILO can be used for switch debouncing. 

Len

Len
"Engineering is an Art. The Art of Compromise."
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

KaAu,

In your project, the MASTER_CLK is 48MHz, and the Clock_6 is set to 50Hz, 5% accuracy, and Auto selection. The 50Hz, can't be obtained from the MASTER_CLK, because max divider value is 2^16=65536. So the lowest frequency obtainable from the MASTER_CLK is 48MHz/65536 = 732.4 Hz. Therefore PSoC automatically selects low-frequency ILO oscillator, which was set to 100kHz. The ILO has much lower accuracy (-55+100%), than you requested (5%).

The solution is to change Clock_6 source to MASTER_CLK, and set its value e.g. to 1000Hz, and to add a Divider component with divider value 20, to obtain final value of 50Hz.

/odissey1