- This topic has 4 replies, 2 voices, and was last updated 11 years, 8 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
|
Microcontroller › AVR › Timers
hey…i want to calculate the time duration for which a particular pin remains high or low…duration between the rising and falling edges..!
can it be done using the input capture pin.?? or any other suggestion
Thank you
Hi Shrikant,
It can be done with an external interrupt pin and timers together, but I guess the Input Capturing is the best method.
hey..thanks a lot for your reply..i’ve been looknig into the input capture method..trying to understand it…with the help of the datasheet..am using an atmega 328 …could you please help me with the logic of input capture…a basic idea would really help..!
Thank you
hey ajish. you were right…the input capture mode is the best..worked perfectly.. thanks a lot ..!!!
Thats great.