Oscillator/Timer question
Posted: Wed Dec 16, 2020 6:40 pm
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?
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?