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.

Assembly code for counting pulses during 10 seconds

Status
Not open for further replies.

djalli

Advanced Member level 3
Advanced Member level 3
Joined
Nov 10, 2001
Messages
825
Helped
31
Reputation
62
Reaction score
15
Trophy points
1,298
Location
1600 Pennsylvania Avenue, Washington DC 20500
Visit site
Activity points
8,284
count for 10 seconds

I am begginer in PIC. I am doing it wrong. I know.

I am inputing this pulse train in figure in 16F... uC microcontroller.
Can you post exact code for a variable in assembly which holds the counts of how many pulses where detected within 10seconds.
Pass it then to another variable by overwriting it.

Afterwards to reset itself and count again for 10 seconds more. Loop.
I am very sorry :oops: to ask this simple question but thank you a lot. :)
 

Re: count for 10 seconds

1)Please tell me the speed your pic is running at.
2)Are you using tmr0 for anything in your prog.
3)Which port-pin is reading the pulse-train.

Cheers
Raticus
 

HI,

What is the max. no. of pulses you want to measure during this period (10s) ?

SphinX
 

SphinX said:
HI,

What is the max. no. of pulses you want to measure during this period (10s) ?

SphinX

hello Phinx. I dont know nr. of max pulses. A ballpark figure could be 2000.
Thank you.

Hello Raticus
1)Please tell me the speed your pic is running at.
3MHz

2)Are you using tmr0 for anything in your prog.
Not now.

3)Which port-pin is reading the pulse-train.
Right now I have all pins available

Thank you. Thanks a lot
 

Re: count for 10 seconds

Hi Djali

When you say 3Mhz is that your xtal freq. or is it 12Mhz xtal/4?

I will do the code for you.
 

count for 10 seconds

HI,

look at

**broken link removed**

Bye
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top