View previous topic :: View next topic |
Author |
Message |
KHURRAM ALI Moderator
Joined: 24 Apr 2008 Posts: 16 Location: ISLAMABAD
|
Posted: Tue Apr 29, 2008 9:51 am Post subject: Frequency Measuring through interrupt in 89c51 |
|
|
Friends i need a code of frequency measuring in 89c51
Help me yarooo |
|
Back to top |
|
 |
goldengul20 Starter Level 2
Joined: 25 Apr 2008 Posts: 55 Location: Wah Cantt.
|
Posted: Thu May 08, 2008 1:56 pm Post subject: |
|
|
well i havnt performed it myself but i think it should work(its not difficult),
RUN TIMER WITH 1 SEC OVERFLOW
(ON RISING EDGE) ON INTERRUPT PIN MAKE COUNTS
see the COUNT after every 1 SEC, it should be constant; since number of ticks/counts/rising edges per second will remain same for a particular frequency....
 _________________ Lets try and then hope for d best |
|
Back to top |
|
 |
aamirza1 Starter Level 2
Joined: 24 Apr 2008 Posts: 41
|
Posted: Thu May 15, 2008 10:04 am Post subject: |
|
|
interrupt is the best available thing.
for more
consult some book or search google to get a code |
|
Back to top |
|
 |
|