Continue to Site

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.

Looking for Assembly source code for 8051 events counter

Status
Not open for further replies.

shafee001

Advanced Member level 4
Joined
May 6, 2004
Messages
114
Helped
16
Reputation
32
Reaction score
4
Trophy points
1,298
Location
Egypt
Activity points
1,078
event counting with 8051

hi all,
can any one post a assemply source code for 805a events counter program,
thanks

Added after 1 minutes:

sorry ,,,
i mean 8051
thanks again
 

Re: 8051 events counter

There is some fizz around this event counter. You cannot use this event counter for counting events faster than 1/12th of clock for the microcontroller. I suggest using some external counter & read the value from it periodically. Connect the external interrupt to the carry of the external counter.

Let me look at my back up, somewhere I have some old project I did for frequency measurement. If I find it, I'll upload complete project with source code, schematics too.

Srinu
 

Re: 8051 events counter

Hi
You can use external interrupt ability of 8051 and write a simple code in interupt
service routin to count the event.
 

8051 events counter

i just want to count the standard AC power frequency from generator, to encure that frequency is 50 HZ and to stop D.G. in case of overspeed, ...
 

8051 events counter

Hi
Tell me what language yoy use in your applications
C, ASM ,BASIC ...;
therefor u most change 50hz AC to square wave
( by a simple Transistor SW ) and connect it to EX0 or EX1 sources of 8051.
you must enable external intrrupt and set mode to
edge trigger .
better Idea is use of captuer mod of timer2 in 8052.
 

8051 events counter

hello mosavi ,,,
can you send me the source code of both cases ,,,
thanks
 

8051 events counter

you must be wait.
I write it as soon as.
regrads
 

8051 events counter

i have only an idea,
u can use a timer as external clock, and load it with a prescaller. when it overflow, it will rise an interrupt flag
then u can handel it in the interrupt servise routin
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top