Is It Possible To Set Timer/Counter In Microcontroller Externally By Using Some Physical Device ?

Abhishek Rawal

Abhishek Rawal

@abhishek-fg9tRh Oct 23, 2024
I would like to know whether it is possible to set timer/counter using external hardware? how ?

What I want is : I tweak the external hardware & timer is set to say [HASHTAG]#xxxxH[/HASHTAG]. Now,I again do minor modification & timer changes to [HASHTAG]#yyyyH[/HASHTAG].
Like this I would like to set 15-20 timer values which is changed as per change in external hardware. Is it possible ? How?

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • J Biswas

    J Biswas

    @j-biswas-SBo0im Dec 5, 2013

    Many possible way to solve this. A few listed below:
    1) Use external controller - pump out desired values to external controller via standard available protocols I2C, UART, SPI etc. count as needed, pulse out on timer expiry.
    2) Use 4060 IC produce pulse as desired to start / restart timers
    3) Use 555 as monostable

    - JB -
  • Abhishek Rawal

    Abhishek Rawal

    @abhishek-fg9tRh Dec 5, 2013

    @#-Link-Snipped-# Can you explain me in detail that how can I use IC555-Monostable to set timer value.
    Note that, I want microcontroller to automatically input different timer value as I tweak the external hardware connected to microcontroller. I am not talking about just setting & clearing timer flag for one time, but more than 15 times & also note that everytime after signal from timer flag is fetched, next timer/counter value which is set is not equal to previous one.
  • J Biswas

    J Biswas

    @j-biswas-SBo0im Dec 8, 2013

    If you are well verse with uCs then use 1).
    Using 2) and 3) will require hardware design and iterated timing calibration.
    Sorry, we can only validate or help your circuit modification on 2) and 3) but will not be able to share design.
  • Jeffrey Arulraj

    Jeffrey Arulraj

    @jeffrey-xA7lUP Dec 11, 2013

    Why not use the Programmable Interval timers like Intel 8253 AND INTEL 8254 counters. They can be used along with your uC.

    When a Hardware is connected pull an interrupt. This interval will initialise the counter and you have various time periods that can be included easily Based on your need
  • a.alandkar

    a.alandkar

    @aalandkar-R9Nf1k Dec 14, 2013

    Look take GPIO pins as an input pins. Check which pin is selected and According to the selection of pin set internal s/w to set the particular timer.