- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have three questions about PSoC4S Clock component.
I am using for PWM.
I tried three kind of configuration for Clock component.
In this case, I set the HFCLK as trimmed with WCO.
1.if "Clock type" is selected to "Existing", I have an compile errors like below.
Why?
2. if "Clock type" is selected to "New", "Source" is "Auto" and "Tolerance" is +/-0%,
is the clock accuracy ensured to +/-0.2% that is HFCLK's one?
3. if "Clock type" is selected to "New", "Source" is "Auto" and "Tolerance" is +/-5%,
will the clock accuracy be within 5% or will be ensured to +/-0.2% that is HFCLK's one?
Best regards,
Yocchi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Yocchi,
>>The answer for your Q2 is as below
PSoC Creator automatically locates available source clock that, when divided down, provides the most accurate resulting frequency.
Clocks with a source of <Auto> may only enter a desired frequency. A tolerance may also optionally be provided.
Therefore whenever the tolerance selected is lesser than the actual tolerance of the automatically selected clock , PSOC creator throws a warning.
>>The answer for your Q3 is as below
Depending upon the settings the tolerance may vary.
In this case it is greater than 0.2% but less than 5%
If it is within this range in this case then it wont throw an error/warning.
Regards
Alakananda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Yocchi,
Can you please refer to the below screenshot, which will help you to understand why HFCLK cannot be used directly.
Regards,
Alakananda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Alakananda-san,
I am sorry that I can not understand what you say.
For example, if "Source" of Clock_1 is selected to HFClk, it can compile and run well.
Best regards,
Yocchi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Yocchi,
The clock input to the PWM should be synchronized with the PWM output such as capture etc.
This synchronization operation is fed by the help of higher frequency (HFCLK) clock.Thus you need to provide a lower frequency clock as input to PWM.
Regards
Alakananda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Alakananda-san,
OK. I agree with you about Q1.
Please answer Q2 and Q3.
Best regards,
Yocchi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Yocchi,
>>The answer for your Q2 is as below
PSoC Creator automatically locates available source clock that, when divided down, provides the most accurate resulting frequency.
Clocks with a source of <Auto> may only enter a desired frequency. A tolerance may also optionally be provided.
Therefore whenever the tolerance selected is lesser than the actual tolerance of the automatically selected clock , PSOC creator throws a warning.
>>The answer for your Q3 is as below
Depending upon the settings the tolerance may vary.
In this case it is greater than 0.2% but less than 5%
If it is within this range in this case then it wont throw an error/warning.
Regards
Alakananda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Alakananda-san,
Thank you very much.
In case of Q2, the clock accuracy is +/-0.2%, right?
Best regards,
Yocchi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Yocchi,
In case of Q2, the clock accuracy is +/-0.2%, right?
>>Yes
Regards
Alakananda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Alakananda-san,
Thank you very much.
Best regards,
Yocchi