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.
Clock Speed
Moderator: Benj
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel