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

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

  • J Biswas
    J Biswas
    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
    @#-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
    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
    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
    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.

You are reading an archived discussion.

Related Posts

The USB 3.0 Promoter Group has declared that the work on the next gen USB Connector has begun and is expected to be ready for industry review during the first...
I want to install an English dictionary in my PC. Requirements: 1. It should be of reputed brands eg. Oxford. 2. It should be updated with each edition (just like...
Wipro - one of the leading IT companies in India with their own PC manufacturing/assembling factories will stop manufacturing PCs, reports TOI. Wipro is likely to shut down their factories...
Using words like 'hack' ,'hacking' can get your website banned by host provider and google adsense ? So a website related to 'ethical hacking' containing word 'hack' will be banned...
let's start the most rated discussion abt the phones