Вы находитесь на странице: 1из 11

Resend activation?

Lost password?
Register

User Name

Password

Log in

Remember Me?

Forum
o New Posts
o Unanswered Posts
o FAQ
o Forum Actions
o Community
o Quick Links
Activity Stream
Search
Help
Rules
Groups
Albums
Blogs
What's New?

Advanced Search
Ads by SaveNewaAppz. More Info | Hide These Ads

Forum
Digital Design and Programming
Embedded Systems and Real-Time OS
Different between Timer and Counter
+ Post New Thread
Results 1 to 13 of 13
Different between Timer and Counter
LinkBack
Thread Tools
Search Thread
1. 1st May 2007, 05:13#1
eugenehhk

Member level 1
Join Date
Sep 2006
Posts
34
Helped
0 / 0
Points
1,303
Level
8
Different between Timer and Counter
I am a beginner in electronic, I would like to ask what is the different between Timer and
Counter!

THX:)
Reply With Quote
2. 1st May 2007, 05:37#2
IanP

Advanced Member level 5
Awards:

Join Date
Oct 2004
Location
West Coast
Posts
7,942
Helped
2296 / 2296
Points
160,061
Level
95
Re: Different between Timer and Counter
..
Counter: Counts and indicates the number of signals (events) input at any interval.
..
Timer: Counts the number of signals input at a constant interval to indicate the elapsed time.
More details here:
http://www.necel.com/en/faq/mi_com/__com_timcou.html

Regards,
IanP

Reply With Quote
3. 6th May 2007, 08:11#3
eugenehhk

Member level 1
Join Date
Sep 2006
Posts
34
Helped
0 / 0
Points
1,303
Level
8
Re: Different between Timer and Counter
THX ur help:)
Also, I would like to ask what is the meaning of watchdog?

Reply With Quote
o 6th May 2007, 08:11





4. 6th May 2007, 08:19#4
IanP

Advanced Member level 5
Awards:

Join Date
Oct 2004
Location
West Coast
Posts
7,942
Helped
2296 / 2296
Points
160,061
Level
95
Re: Different between Timer and Counter
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"
http://www.embedded.com/2000/0011/0011feat4.htm

Regards,
IanP

Reply With Quote
5. 7th May 2007, 13:23#5
dragonight_x

Member level 4

Join Date
Mar 2006
Location
Egypt - Cairo
Posts
71
Helped
2 / 2
Points
1,717
Level
9
Re: Different between Timer and Counter
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 wont get refreshed in time and it will reset your
system.

Reply With Quote
o 7th May 2007, 13:23





6. 8th May 2007, 05:24#6
ariyan

Member level 5
Join Date
Aug 2006
Posts
81
Helped
4 / 4
Points
1,637
Level
9
Different between Timer and Counter
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.

Reply With Quote
o 8th May 2007, 05:24





7. 9th May 2007, 19:23#7
mondunno

Full Member level 2
Join Date
Jan 2007
Posts
119
Helped
15 / 15
Points
1,523
Level
8
Different between Timer and Counter
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.

Reply With Quote
8. 12th June 2007, 11:30#8
Prabakaran

Full Member level 3
Join Date
Jan 2007
Location
Chennai(India)
Posts
167
Helped
8 / 8
Points
2,810
Level
12
Different between Timer and Counter
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.

Reply With Quote
9. 13th August 2007, 10:38#9
bhaskionnet

Newbie level 4
Join Date
Oct 2006
Posts
5
Helped
0 / 0
Points
1,133
Level
7
Re: Different between Timer and Counter
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.

Reply With Quote
10. 25th August 2007, 04:28#10
ubna

Full Member level 1
Join Date
Jul 2007
Location
India
Posts
112
Helped
14 / 14
Points
1,748
Level
9
Re: Different between Timer and Counter
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...

Reply With Quote
11. 30th August 2007, 10:49#11
7rots51

Advanced Member level 4
Join Date
May 2002
Posts
1,183
Helped
25 / 25
Points
8,762
Level
22
Re: Different between Timer and Counter
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 .

Reply With Quote
12. 14th September 2007, 19:38#12
pipida

Junior Member level 1
Join Date
Sep 2006
Posts
15
Helped
1 / 1
Points
1,288
Level
8
Re: Different between Timer and Counter
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?

Reply With Quote
13. 28th March 2011, 07:46#13
crazyramila

Newbie level 6
Join Date
Jan 2011
Posts
13
Helped
2 / 2
Points
413
Level
4
Re: Different between Timer and Counter
check this link for watchdog timer

Watchdog Timer - PIC Microcontroller Tutorials - PIC Tutorial Resource - Connect to the
PIC

Reply With Quote
+ Post New Thread
Please login
ds1307 interface with pic16f877a | General information about RTOS
Similar Threads
1. Timer/counter utillisation in EDK (0)
2. How to stop the Counter mode is Timer 1 in the PIC16F877 (2)
3. TSC (Timer Stamp Counter) ?= Counter (1)
4. Help me design a timer/counter with gate and BCD counter IC (1)
5. i need help about timer counter. (8)


Ads by SaveNewaAppz. More Info | Hide These Ads
Welcome to EDABoard.com
EDA Resources

Ads by SaveNewaAppz. More Info | Hide These Ads
Threads Without Replies
o [ Unanswered Posts ]
o Help needed in understanding arm lpc2129 timers
i am trying to write my first code using arm timers ,i am not clear in the timer programming ,any how i am tried to
write the code ,in isis proteus ,its not generating 1 sec delay to blink the...
Posted By rangerskm. Today 17:08 in Microcontrollers
o error whilt using for generate
I want to run the two components one after the other , for 15 times. the for generate is showing the following errors:
** Error: Nonresolved signal 'led' has multiple sources. ** Error:...
Posted By rashmi.imhsar. Today 16:43 in PLD, SPLD, GAL, CPLD, FPGA Design
o Solar charge controller
While I was searching for a solar charge controller design I came across this one. I am specially impressed because n-
channel mosfet is used, which are commonly available. Most other design...
Posted By vbdev. Today 16:41 in Power Electronics
o Current Mode Class D Questions
In a CMCD (Current Mode Class D) amplifier configuration where each MOSFET has its own RFC current feed inductor;
How do I calculate the optimum inductance of each RFC? What determines each...
Posted By gbugh. Today 16:35 in RF, Microwave, Antennas and Optics
o FMC template (PDE-0001-00018)
Hi Does anyone have the FMC template (PDE-0001-00018)? I can't download it form altium! Regards
Posted By spman. Today 16:14 in PCB Routing Schematic Layout software and Simulation
Ads by SaveNewaAppz. More Info | Hide These Ads
Sponsor


Enter Part Number


New Replies
o Technology models (.scs) (1)
o Reverse Terminal Protection for ckts. (5)
o Dynamic Comparator offset (1)
o BWD 525 - horizontal trace clips to the right(8)
o How to measure capacitance after fabrication (7)
o GOS653G Oscilloscope problem (1)
o Error in ADS Agilent project (6)
o data rate and distance relation (3)
o how can I recognize measured fields whether reactive or radiative field from a near (5)
o controlling timing accurately for fixed duty cycle variable period (3)
o Why do feed-horns ever have to be so big?(2)
o conversion of number's in C# (3)
o pic16f88 not working properly (1)
o Mikroc lcd garbage values are displaying (13)
o Multichannel RF Remote control (5)
o Single on-chip IC sensor for dust and sound(3)
o Constant current output (2)
o Pairing a bluetooth module ? (10)
o Sigma Delta Modulator Topology (3)
o NEC protocol generation using ATMEGA 8 (2)
o difference between advance 8051 MCU and other advance controllers (9)
o IR Phototransistor and phototransistors (3)
o Default units to mm in Eagle Pro layout software (PCB) (1)
o How Can I generate clock pulses for 50Hz square wave inverter using TMR2 and PR2(30)
o Motor for back and forth motion at 800 RPM speed? (13)
EE News, Tips and Resources

o TI introduces 40-V to 100-V NexFET MOSFETs3/25/2014
o Power-One Expands Open Frame AC/DC Portfolio3/25/2014
o AutomationDirect adds WEG miniature contactors3/22/2014
o Sine Wave Generation 3/21/2014
o Detect lightning surges with Weidmullers Logger 303/15/2014
o Microsemis Highly Integrated IGLOO2 FPGAs Recognized with DesignVision Award 3/15/2014
o Altera Introduces OTN Solutions for 400G and Beyond at OFC 2014 3/11/2014
o Linear Technology LT8614 SilentSwitcher3/11/2014
o Flashing Dome Signal Lights Combine the Best Functionality Features 3/11/2014
o Higher Efficiency AC-DC Full-Brick Power Modules Have 5 Year Warranty 3/6/2014

Recently Updated Groups
4NEC2, Antenna Design, VLSI, HFSS, OPEN AND FREE PRODUCT IDEAS, PIC Microcontrollers, Indian
engineers, Power Electronics, PCB DESIGNER HOME,Switch Mode Power Supply (SMPS)
Sponsor

Top Helped / Month
FvM (10), cl10greg (4), TrickyDicky (3), techgreed(2), rca (2)
Top Posters
FvM (25501), keith1200rs (10883), alexan_e(10796), IanP (7942), bigdogguru (7310)
Top Experience Points
FvM (162021), IanP (160061), bigdogguru (58796),keith1200rs (54683), tpetar (54409)

-- Edaboard Classic

Contact Us

Forum for Electronics

Privacy Statement

Terms of Service

Top
All times are GMT +1. The time now is 17:12.
Powered by vBulletin
Copyright 2010 vBulletin Solutions, Inc. All rights reserved.
SEO by vBSEO 2011, Crawlability, Inc.
vv

Вам также может понравиться