Buzby
Senior Member
Hi All,
I'm working on a project to capture events with a resolution or 5mS or better. The core of the code is based on Womai's post http://www.picaxeforum.co.uk/showthread.php?t=8541
I've got the basics running fine, with an output toggling every interrupt, which should give a 500Hz signal.
My measured value is actually 498.8 Hz. The error might be my uncalibrated freq meter, or the 20X2 resonator is a bit off, or the preload value is too coarse. In any case I tried a calibfreq tweak to get it closer to 500 Hz.
It went bananas !.
I tried calibfreq 1, and the frequency dropped to 125 Hz. Tried other values, but always get about the same. Even calibfreq 0 drops my frequency to 124.6 Hz
Can anyone tell me what is happening ?
Thanks,
Buzby
( PICAXE 20X2 C.0 Firmware version 0 )
I'm working on a project to capture events with a resolution or 5mS or better. The core of the code is based on Womai's post http://www.picaxeforum.co.uk/showthread.php?t=8541
I've got the basics running fine, with an output toggling every interrupt, which should give a 500Hz signal.
My measured value is actually 498.8 Hz. The error might be my uncalibrated freq meter, or the 20X2 resonator is a bit off, or the preload value is too coarse. In any case I tried a calibfreq tweak to get it closer to 500 Hz.
It went bananas !.
I tried calibfreq 1, and the frequency dropped to 125 Hz. Tried other values, but always get about the same. Even calibfreq 0 drops my frequency to 124.6 Hz
Can anyone tell me what is happening ?
Thanks,
Buzby
( PICAXE 20X2 C.0 Firmware version 0 )
Attachments
-
2 KB Views: 16