Can I calculated elapsed time from one event using TIMER1? If yes,how?I can not find none register which one to read for get counter value(how many ticks have passed since we started the timer). Exist another solution? Thanks in advances!
Can I calculated elapsed time from one event using TIMER1? If yes,how?I can not find none register which one to read for get counter value(how many ticks have passed since we started the timer). Exist another solution? Thanks in advances!
The counter value cannot be directly read. Start the task of capturing the value to one of the CC register. Then you can get the timer value. Do this at the start and end of the event that you want to measure to get its duration. Take care that TIMER1 is only 16 bit.