- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am trying to generate an output frequency of 6 MHz using a PSOC 6 prototyping board but every time I measure the pin using an oscilloscope its not giving me the required frequency. I have attached the project. Can anyone help please?
Thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @aliissa02 ,
We have recreated the project on the same device that you are using i.e.; CYBLE-416045-02. We can obtain a 6Mhz output frequency. Please review the project file that I have included below.
Best Regards,
Rakesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thanks for your help. I tried measuring the output pin and its not giving 6 MHz. Its only giving 1.5 KHz.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
aliissa02,
You are correct. The output at pin P9.5 is 1.526KHz.
This is because YOU set the PWM Period0 to 4096u
With an input clock of 6250KHz and the Period0 of 4096, your output is 6250KHz/4096 = 1.5258789KHz.
Simple math.
If you want an output of 6.25MHz I recommend the following changes:
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is still not working!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @aliissa02 ,
We have recreated the project on the same device that you are using i.e.; CYBLE-416045-02. We can obtain a 6Mhz output frequency. Please review the project file that I have included below.
Best Regards,
Rakesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Its finally working. Thanks a lot!