Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Different between Timer and Counter

Status
Not open for further replies.

eugenehhk

Member level 1
Joined
Sep 6, 2006
Messages
34
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,529
I am a beginner in electronic, I would like to ask what is the different between Timer and Counter!

THX:)
 

eugenehhk

Member level 1
Joined
Sep 6, 2006
Messages
34
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,529
THX ur help:)
Also, I would like to ask what is the meaning of watchdog?
 

IanP

Advanced Member level 5
Joined
Oct 5, 2004
Messages
7,942
Helped
2,309
Reputation
4,620
Reaction score
531
Trophy points
1,393
Location
West Coast
Activity points
66,435
A watchdog timer is a piece of hardware, often built into a microcontroller that can cause a processor reset when it judges that the system has hung, or is no longer executing the correct sequence of code.

For more details GOTO:
"Watchdog Timers"
https://www.embedded.com/2000/0011/0011feat4.htm

Regards,
IanP
 

dragonight_x

Member level 4
Joined
Mar 25, 2006
Messages
71
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,286
Location
Egypt - Cairo
Activity points
1,667
Watchdog is a built in timer, this timer has to be refreshed periodically or else it will reset the microcontroller.
As a programmer it is your responsibility to refresh the watchdog timer within your program, so if your program is running properly then it will be refreshed. However, if your program hangs then the timer won’t get refreshed in time and it will reset your system.
 

ariyan

Member level 5
Joined
Aug 24, 2006
Messages
81
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,288
Activity points
1,804
A watchdog timer is a piece of hardware that can be used to automatically detect the system problem like fault condition, hang and send a trigger pulse to reset the system. You also can say it is a failsafe mechanism that can sense if a system stop functioning.
Generally speaking, a watchdog timer is based on a counter that counts down from some initial value to zero. The embedded software selects the counter's initial value and periodically restarts it. If the counter ever reaches zero before the software restarts it, the software is presumed to be malfunctioning and the processor's reset signal is asserted. The processor (and the embedded software it's running) will be restarted as if a human operator had cycled the power.
 

mondunno

Advanced Member level 4
Joined
Jan 11, 2007
Messages
119
Helped
15
Reputation
30
Reaction score
4
Trophy points
1,298
Activity points
1,907
Timer is a "counter", which counts at equal intervals of time (anything from counting system clock to oscillator clocks)

counter in a general name, which counts an event. this event need not be timed equally at all.
 

Prabakaran

Full Member level 3
Joined
Jan 22, 2007
Messages
168
Helped
9
Reputation
18
Reaction score
3
Trophy points
1,298
Location
Chennai(India)
Activity points
2,273
Timer Used for Delay operation or to Get the information in Precise Period. Whereas Counter Used For Counting the External Pulses from External World. Timer Can also be used for this but Programmers should take care of handling the timer to calculate the Pulses.
 

bhaskionnet

Newbie level 4
Joined
Oct 8, 2006
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,304
Difference between the two is
for Timer - The clock signal (Pulse) is genereted by known source were as for counter it will be gained externally, we may get one pulse per minute or one pulse per day. the time piriod of the pulse can,t be predicted in the case of counter.
 

ubna

Advanced Member level 4
Joined
Jul 25, 2007
Messages
112
Helped
14
Reputation
28
Reaction score
5
Trophy points
1,298
Location
India
Activity points
1,819
A timer is a counter that counts clocks automatically and keeps track of time in seconds..
A counter is one that has to be made to count by the programmer whenever needed...
 

7rots51

Advanced Member level 4
Joined
May 17, 2002
Messages
1,184
Helped
25
Reputation
50
Reaction score
12
Trophy points
1,318
Activity points
9,637
timer used internal clock of microcontroller for its clock,for measrin time intervals.

Counter use external clock,the external clcok may come from a sensor ,like as a flow transmitter sensor that measure flow of water ,it send for example 100 clock pulse per liter,

so counter is measuring quantity of some thing like as water .
 

pipida

Junior Member level 1
Joined
Sep 14, 2006
Messages
15
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,395
In my view, timer and counter are both ticked by signal pulses. Timer typically uses the internal periodic clock sources, while counter may record discrete internal or external events. For timer, a proper ratio is set to make a tick as a second. Of course, counter also may have some overflow settings. If timer and counter can invoke the core to run some operations, then they can run as watchdog. Otherwise, programs should look up those event registers from time to time.
Am I right?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top