timer value in Due Timer library

hi guyes :wink:

im using arduino DUE and need to using Timer in a part of my project

in fact i need to measuere the "time" between two external interrupt. (not delay or other usage of timers...)

this "time" is in the micro secend range.

so i need to know the value of timer

but

i read the datasheet of the SAM3x8E >> Timer and counter section , and i get nothing :slightly_frowning_face:

as u know , in the Atmega series of prossesor this "time" is store in the TCNTx Register

i cant find the corresponding register in the ARM processor (Link 1)

another solution:

there is a DueTimerLibrary (Link 2 )that i have the same problem with it.

there is no variable that give me the timer value.

any one know the solution?

what register?

thanks for your time....

Link 1:

https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwi078fRsp_NAhViLMAKHVVTBWkQFggeMAA&url=http%3A%2F%2Fwww.atmel.com%2Fimages%2Fatmel-11057-32-bit-cortex-m3-microcontroller-sam3x-sam3a_datasheet.pdf&usg=AFQjCNHvKFfjw5Ij6XeD3i0_tJSgdI4eHw&sig2=7F5dXtpxuefmqDEdADw94Q

Linke 2:

https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwjfj5rws5_NAhWMJ8AKHZ9vArgQFggeMAA&url=https%3A%2F%2Fgithub.com%2Fivanseidel%2FDueTimer&usg=AFQjCNENTOmtyEd9E6RKL3JOhqXFVzeuAg&sig2=xFyO_3buIvMzaGdB9PRSlA

No one dosnt work with DUE timers???

Do you need to use the Timer like this?
On the first interrupt make a note of micros() and one the second interrupt subtract current micros() value from previous stored value.

snippet...

volatile unsigned long difference = 0;

void ISR_Handler(){
  static unsigned long last = 0;
  difference = micros() - last;
  last = micros();
}