Yes, I can calculate the values, but how would I go about capturing this through the interrupts?
Perhaps I could use the counter...
Timer1 = 0;
SensorCount = 0;
while(Timer1<50000)
{}
SensorTime = SensorCount;
So, it resets the timer and the Count Value, then waits for the Timer1 to get to a set amount. Then it sends the count value to SensorTime for use by the rest of the program.
I think that will work...same basic idea I used to capture the timing of the radio receiver signals.
Anyway, I'm running the timer at 500kHz. How many timer tics will go by in .1 seconds?