I want to count time between two rising edge of TTL Pulses. For that I am using Timer0 & Timer1.
Timer0 is generate interrupt at every 20ms. In Timer0 ISR I start GPIO Interrupt. In GPIO ISR I start Timer 1. here I also disable GPIO Interrupt.
When next rising Edge is coming on Port I disable Timer1.
But I have problem with calculate the Time of Timer1.. Here I take value of T1TC and try to calculate time. but I not got success in it. T1TC give hex or integer value????....
Also I am used PLL Clock for ARM. My ARM processor is LPC2378. For calculate the count which register I can use (T1TC ya T1PC) ????
Please Help me??????
Thanx..