Clock Speed

For Formula Flowcode Micromouse users to discuss projects, flowcharts, and any other issues related to the Formula Flowcode Micromouse.

Moderator: Benj

Post Reply
Mark
Posts: 209
Joined: Thu Oct 19, 2006 11:46 am
Location: Bakewell, UK
Has thanked: 20 times
Been thanked: 16 times
Contact:

Clock Speed

Post by Mark »

Hello,

The times generated by an interrupt driven clock in Formula Flowcode do not seem to be very accurate. If few questions:

I get the impression that the device is configured to run at 48 MHz, but I see that the Crystal appears to be 4 megahertz, since the configuration parameters are not accessible when using the icon could you let me know what is going on.

My impression is that intensive use of ADC stops the clock working properly. Are the ADC routines interrupt driven?

I am wondering whether I need to be looking into interrupt priorities so as to make sure that the clock operates properly, any comment?

Thanks in advance.
Go with the Flow.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Clock Speed

Post by Benj »

Hello,

The Formula Flowcode buggy uses a 4MHz ceramic resonator which is then multiplied by the onboard PLL to give a internal clock speed of 48MHz.

The ADC routines are not interrupt driven and should not have any effect on the clock or the timings.

Timer interrupts may not be 100% accurate as we are using a ceramic resonator on this product rather then a crystal. Ceramic resonators should give a fairly accurate clock but can fluctuate slightly with temperature, pressure and humidity.

You may be able to tweak your interrupt timings to give slightly better results for the specific resonator on your buggy or if the board is out of warranty then you could remove the resonator and replace with a 4MHz crystal and 22pf capacitors.

Post Reply