PULSE TIMER/COUNTER

Post your requests and ideas on the future development of mikroBasic.
Post Reply
Author
Message
ghspirit
Posts: 22
Joined: 07 Oct 2004 10:25

PULSE TIMER/COUNTER

#1 Post by ghspirit » 03 Oct 2005 09:48

Hello,

In the post "Tachometer" in mikroBasic, you say that

"You will need a pulse counter or a frequency meter. We are preparing the examples for both for the next release. If someone else has a handy example, please do post it."

Do you have finish this exemple for V5??? When you say a "Frequency Meter" It's like A PULSE TIMER(You know how many time the pulse go HIGH) I don't know if you can do a function like PULSE_COUNTIME_CONFIG (µs,ms,RC0) with the

1 parameter: Time period of duration of ONE PULSE
2 parameter: Time period of duration BETWEEN 2 PULSES
3 parameter: Selection of the Pin where the pulse arrive

Each time when you finish to calculate the 2 TIMES, you generate an interrupt and the user put in the first line of the interrupt the FUNCTION PULSE_COUNTIME_FINISH(TIMER1,TIMER2) for exemple and the user can retreive the timer1(timer of 1 pulse) and timer2(timer between 2 pulses) and with that ALL APPLICATIONS CAN BE DONE!!! FOr Tachometer or RC SERVO CONTROL,.... This 2 timers ARE JUST THE 2 PARAMETERS NEED TO DO ALL TIMING AND/OR ALL COUNTERS THAT POSSIBLE!!!!

Can you do that????

Post Reply

Return to “mikroBasic Wish List”