electroRF
Member
Hi,
I'd like to measure a period between two points, T1 and T2, i.e., calculate T2 - T1 .
I got a 32KHz Clock and a 23MHz Clock.
Between T1 and T2, the 23MHz Clock will be shut off, and will be turned on only after T2.
So, I can only measure the period between T1 and T2 in 32KHz resolution.
However, I'd like to be more accurate.
I'm willing to suspend the time at which I'll be able to calculate T2 - T1 .
I'm trying to think how could I use the 23MHz Clock in order to increase the resolution, i.e., for checking at which point of the 32KHz wave occurred T1, and at which point of the 32KHz occurred T2.
I wouldn't however be able to afford wasting too much cycles for increasing the resolution.
For example, I can't afford While'ing on the 23MHz Clock until the 32KHz Clock ticks.
Do you have an idea?
Thank you very much
I'd like to measure a period between two points, T1 and T2, i.e., calculate T2 - T1 .
I got a 32KHz Clock and a 23MHz Clock.
Between T1 and T2, the 23MHz Clock will be shut off, and will be turned on only after T2.
So, I can only measure the period between T1 and T2 in 32KHz resolution.
However, I'd like to be more accurate.
I'm willing to suspend the time at which I'll be able to calculate T2 - T1 .
I'm trying to think how could I use the 23MHz Clock in order to increase the resolution, i.e., for checking at which point of the 32KHz wave occurred T1, and at which point of the 32KHz occurred T2.
I wouldn't however be able to afford wasting too much cycles for increasing the resolution.
For example, I can't afford While'ing on the 23MHz Clock until the 32KHz Clock ticks.
Do you have an idea?
Thank you very much
Last edited: