??? 08/28/07 10:56 Read: times |
#143694 - I think it's too easy!!! Responding to: ???'s previous message |
You can simply count the clock cycles between two interrupts in the following way (I am explaining step wise):
1. Define an integer (2 bytes register) and initialize it with Zero. 2. Run any timer for about 1ms interval 3. If one interrupt arises reset that timer and on every timer overflow start incrementing an integer. 4. As soon as the 2nd interrupt arises, stop the timer and check the integer value. 5. Use the integer value anywhere u want and reset its value to Zero again. Maaz Qazi |
Topic | Author | Date |
Help ME!!! | 01/01/70 00:00 | |
TIMER 2 IN CAPTURE MODE | 01/01/70 00:00 | |
Elaborate | 01/01/70 00:00 | |
help me | 01/01/70 00:00 | |
toggle the timer | 01/01/70 00:00 | |
count the timing interval | 01/01/70 00:00 | |
just formatted your code | 01/01/70 00:00 | |
severe errors | 01/01/70 00:00 | |
I think it's too easy!!! | 01/01/70 00:00 | |
only if interval is >>1ms !! | 01/01/70 00:00 | |
no it's not necessary!!! | 01/01/70 00:00 | |
sorry, You are right![]() | 01/01/70 00:00 |