Page 1 of 1

Oscillator/Timer question

Posted: Wed Dec 16, 2020 6:40 pm
by ncc1502
I have a board with a 8 MHz crystal,
In my configuration settings I have set HS PLL enabled (freq=4xFosc1), so internal clock is 32 MHZ.

In general options should I set the clock at 32MHz, or should I set it at 8MHz (and does it calculatie 8x4=32 itself)?
If I want to use a timer2 interrupt, I assume I must calculate with 32Mhz and not 8MHz.

Is this correct?

Re: Oscillator/Timer question

Posted: Wed Dec 16, 2020 7:20 pm
by kersing
You should set the clock in the properties to 32MHz.

Re: Oscillator/Timer question

Posted: Tue Dec 22, 2020 10:15 pm
by ncc1502
Dank je