V Vmax Member Feb 25, 2012 #1 If I change the Picaxe clock speed from 4MHz to 8Mhz and Pulsin is calibrated to 4MHz, should I devide calibrated pulsin results by 2?
If I change the Picaxe clock speed from 4MHz to 8Mhz and Pulsin is calibrated to 4MHz, should I devide calibrated pulsin results by 2?
M MartinM57 Moderator Feb 25, 2012 #2 I would divide by 2 - the internal clock is counting twice as fast, so the pulsin value will be twice as big as it would be at the lower speed
I would divide by 2 - the internal clock is counting twice as fast, so the pulsin value will be twice as big as it would be at the lower speed
S srnet Senior Member Feb 25, 2012 #3 I would not think of it as being 'calibrated at 4Mhz", but that at 4Mhz it counts in 10uS units, 5uS units at 8Mhz etc.
I would not think of it as being 'calibrated at 4Mhz", but that at 4Mhz it counts in 10uS units, 5uS units at 8Mhz etc.
S SAborn Senior Member Feb 25, 2012 #4 You could just change frequency for the pulsin back to 4meg and then back to 8meg after the reading, i do this a lot in the average programs. Example.......... setfreq m4 Read the pulsin here setfreq m8 carry on with the rest of the program.
You could just change frequency for the pulsin back to 4meg and then back to 8meg after the reading, i do this a lot in the average programs. Example.......... setfreq m4 Read the pulsin here setfreq m8 carry on with the rest of the program.