EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / Timers

Timers

|

Microcontroller › AVR › Timers

  • This topic has 4 replies, 2 voices, and was last updated 12 years, 7 months ago by AJISH ALFRED.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • June 27, 2013 at 6:32 pm #2509
    Shrikant
    Participant

    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

    June 29, 2013 at 5:55 am #10056
    AJISH ALFRED
    Participant

    Hi Shrikant,

    It can be done with an external interrupt pin and timers together, but I guess the Input Capturing is the best method.

    June 29, 2013 at 7:58 am #10058
    Shrikant
    Participant

    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

    July 2, 2013 at 2:25 pm #10081
    Shrikant
    Participant

    hey ajish. you were right…the input capture mode is the best..worked perfectly.. thanks a lot ..!!!

    July 3, 2013 at 4:16 am #10082
    AJISH ALFRED
    Participant

    Thats great.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Variable audio oscillator February 8, 2026
  • Do i need a buffer? February 8, 2026
  • ANOTHER OLD PROJECT REDO February 7, 2026
  • wall transformer polarity February 7, 2026
  • Supply vs performance query February 7, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise