Hello,
Further to my previous post, I notice that the 9S08QD4 does not contain an analogue comparator. If this is required to "square up" the waveform applied to the TPM module, it would need to be an external component. Additionally, the device makes no provision for an external clock for accurate measurement.
On the subject of the period measurement, I think that the feasibility is quite borderline of being able to measure the period of frequencies as high as 125 kHz. Anyway, as there are only 64 bus cycles within the period, the resolution of the measurement will be extremely limited.
The direct measurement of frequency would potentially provide much more resolution, depending on the gate interval used. However, frequency measurement would occupy two TPM modules, one to count the incoming cycles (via external TPM input) and the other for the gate timing.
Regards,
Mac