How to solve this SPIS Clock Warning?

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

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi All,

   

I am getting a warning (see attachment) when i compile the program.

   

I like to know the affect of it on the output of my SPI communication and how I can solve this warning?

   

Looking forward to your reply!

   

Awais

0 Likes
1 Solution
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

This warning tells you that the SPI will not run with the desired frequency. You want 8MHz, and get 7.825MHz.

   

Is there a reason your main oscillator runs with 62.6MHz? Thats a quite strange frequency, and there is no clock divider that will get you 8Mhz out of it.

View solution in original post

0 Likes
5 Replies
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

This warning tells you that the SPI will not run with the desired frequency. You want 8MHz, and get 7.825MHz.

   

Is there a reason your main oscillator runs with 62.6MHz? Thats a quite strange frequency, and there is no clock divider that will get you 8Mhz out of it.

0 Likes
Anonymous
Not applicable

Thank you hli for your reply.

   

I was just set as it was. There is no such reason.

   

How can I set it?

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

In that screen, double-click on the clock and it will open the clock settings.

0 Likes
Anonymous
Not applicable

When ever i click on the clock it takes me to the SPI settings window.

   

I also select the clock to set it internally for SPI. Because of this i am unable to change it.?

0 Likes
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

Go to the "Edit Clock" option as shown  in the image attached by you.

0 Likes