??? 01/17/13 05:11 Read: times |
#189208 - Count for 2ms |
Hi,
I have code, to start counting the no of pulses whenever a high to low transition appears. Currently, I am using a pin with interrupt capability & when a int comes, it starts counting. Another timer runs in background, which interrupts when 2 ms are over & gives the signal to stop counting.It solves my purpose. I am thinking to use counter for same purpose. But problem is when I use counter usually it is tagged with one timer. So I cannot use that timer as I am using it as counter. So I have to use another timer which can give above counter a signal that 2 ms are over & stop counting. SO in this I lost two timer. Is there any method to do so that only one counetr solves my purpose |