Oscillator/Timer question

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
ncc1502
Posts: 48
Joined: Mon Apr 07, 2008 9:18 pm
Has thanked: 23 times
Been thanked: 8 times

Oscillator/Timer question

Post 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?
Better safe then sorry

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times

Re: Oscillator/Timer question

Post by kersing »

You should set the clock in the properties to 32MHz.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

ncc1502
Posts: 48
Joined: Mon Apr 07, 2008 9:18 pm
Has thanked: 23 times
Been thanked: 8 times

Re: Oscillator/Timer question

Post by ncc1502 »

Dank je
Better safe then sorry

Post Reply