I agree :-) However I don't know if much code will be running between each! More likely a simple counter should be used, but I guess if it was optimised you could read it directly. However physical jitter would probably become an issue then.Bruce wrote:Yep, the DSP devices on the table can sample the ADC at a minimum of 1MHz. In fact the 56F8013 can be pushed even faster. However, the limitation becomes the event clock rate of the xgate setup of 1 MHz, having the DSP run any faster will not help. Consider that on every 1usec the Xgate checks the logic level of the DSP output waveform, its either high or low. If the DSP samples and processes zero-crossings at 1usec, its output will either be high (VR voltage higher than threshold) or low (lower than threshold). Even if the DSP was cranking at 100MHz the limitation would be the master 1usec sample clock on the xgate side.
For the question of 1usec being fast enough, I use the relation:
delta_time (millisec) = (166.7 * degrees_crank_between_teeth)/RPM
Assuming a worst case wheel of a tooth every one degree (or 360 teeth) and a RPM of 10,000, the relation yields a value of 16.67usec time between teeth events. The DSP/xgate sample at 1usec, so there will be 16 sample events in this time window. So it can be said that at 10,000 RPM the sampling resolution is 1/16 of a degree (someone check my math, I am tired right now..). I would say that 1/16th of a degree resolution at 10,000 RPM is in the range of being good enough!
Said another way, taking the above relation and rearranging (solve for RPM), the RPM to yield a 1usec delta_t value (with one degree tooth spacing, or 360 teeth) is 16,700RPM
Optispark's high-res channel can just bite me!
- Bruce
Fred.
(extra emphasis added to opti comment)