+ Reply to Thread
Results 1 to 9 of 9

Thread: Silly question about timers

  1. #1
    eblc1388 Excellent eblc1388 Excellent eblc1388 Excellent eblc1388 Excellent eblc1388 Excellent
    Join Date
    Jan 2005
    Location
    UK
    Posts
    2,226

    Default Silly question about timers

    Why are counters in a PIC or other MCU called timers?

    A real timer counts time elapses, timer don't have bits, so to speak.

    They are really just counters, 8-bit or 16-bit presettable counters. All electronic parts with such function are correctly called counters, like 7490, 4040 or 4060...., have anyone ever seen a 4-bit binary timer? I have a frequency counter, it also measure time interval, but it is never called a timer.
    L.Chung


  2. #2
    Papabravo Excellent Papabravo Excellent Papabravo Excellent Papabravo Excellent Papabravo Excellent Papabravo Excellent Papabravo Excellent
    Join Date
    Mar 2006
    Location
    Michigan, USA (GMT-5)
    Posts
    2,892

    Default

    Here is the distinction as I see it. In conventional usage a Timer is a counter that counts the periodic intervals of a fixed frequency clock.

    A counter, on the other hand, counts events, which may or may not be periodic. This lack of periodicity is what separates the two applications.

    That's just my opinion FWIW.

  3. #3
    eblc1388 Excellent eblc1388 Excellent eblc1388 Excellent eblc1388 Excellent eblc1388 Excellent
    Join Date
    Jan 2005
    Location
    UK
    Posts
    2,226

    Default

    And the fact that a "timer" cannot be used to measure counts.
    If something measure counts, it is by definition a counter.
    L.Chung

  4. #4
    Banned donniedj Bad donniedj Bad
    Join Date
    Jan 2004
    Location
    So Cal
    Posts
    337

    Default

    As Papabravo said, a counter is triggered and not a fixed interval of time. Though an MCU's timer may be triggered externally and also can be adjusted to a different interval at will, the timer is still is a specific interval and does occur in the background.

    Disassemble a digital real timer. What do you find at its lowest core? Digital bits or quantum packs of time?

  5. #5
    philba Good philba Good philba Good
    Join Date
    Mar 2006
    Location
    Seattle
    Posts
    1,887

    Default

    to me the crux of it is that timers are counters driven off of a periodic source. You start a timer, then sample the count at a given point and that is the elapsed time in periodic units. Seems like a timer to me.

  6. #6
    Papabravo Excellent Papabravo Excellent Papabravo Excellent Papabravo Excellent Papabravo Excellent Papabravo Excellent Papabravo Excellent
    Join Date
    Mar 2006
    Location
    Michigan, USA (GMT-5)
    Posts
    2,892

    Default

    Quote Originally Posted by eblc1388
    And the fact that a "timer" cannot be used to measure counts.
    If something measure counts, it is by definition a counter.
    OK...I'm not sure where you are going with this but you won't get either an argument or strong support for your position from me. Timers and counters are both great!

  7. #7
    Super Moderator Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent
    Join Date
    Nov 2003
    Location
    Derbyshire, UK
    Posts
    29,762

    Default

    It's basically just two applications of the same hardware, if you go back to the 6502 and 6522 PIA days, they called them 'counter/timers'.
    PIC programmer software, and PIC Tutorials at:
    http://www.winpicprog.co.uk

  8. #8
    eblc1388 Excellent eblc1388 Excellent eblc1388 Excellent eblc1388 Excellent eblc1388 Excellent
    Join Date
    Jan 2005
    Location
    UK
    Posts
    2,226

    Default

    Just wondering if it is "politically correct" to call a 7490, 4040 or 4017 as a timer.

    Anyway, this is a silly question and the answer is "who cares".
    L.Chung

  9. #9
    Super Moderator Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent
    Join Date
    Nov 2003
    Location
    Derbyshire, UK
    Posts
    29,762

    Default

    Quote Originally Posted by eblc1388
    Just wondering if it is "politically correct" to call a 7490, 4040 or 4017 as a timer.
    Not on it's own, but the 'timer' in a PIC isn't just a counter, it has extra hardware as well - so those counter chips, plus others, could be called a 'timer'


    Anyway, this is a silly question and the answer is "who cares".
    It's not as silly as many of the threads!
    PIC programmer software, and PIC Tutorials at:
    http://www.winpicprog.co.uk

+ Reply to Thread

Similar Threads

  1. Silly transistor question, Voltage to the base
    By nuttaphong191 in forum Electronic Projects Design/Ideas/Reviews
    Replies: 1
    Latest: 25th May 2007, 03:59 PM
  2. silly billy easy question
    By timothyjackson in forum General Electronics Chat
    Replies: 5
    Latest: 18th April 2006, 12:41 PM
  3. Question about 555 timers
    By Moneer81 in forum General Electronics Chat
    Replies: 1
    Latest: 10th May 2004, 11:57 AM
  4. silly question about op amp
    By blibala in forum General Electronics Chat
    Replies: 9
    Latest: 14th December 2003, 02:18 PM
  5. question about four 555 timers in parallel
    By themikestar in forum Electronic Projects Design/Ideas/Reviews
    Replies: 0
    Latest: 10th September 2003, 12:47 AM

Tags for this Thread