Hi all.

I'm here reading and searching but I can't find a way of counting asynchronous TTL pulses with jal/jallib over a given time slot...

It must be done with the timer module of the pic... (I think...)

I explain:

I want to make a frequency counter for zero to 250 Mhz, with 2 external prescaler, using direct counting for low freq's, med prescaler to about 50 Mhz and a dedicated prescaler for above 50 Mhz - 250 Mhz+

But I have not a clue how to use the timer1 as an asynconous 16 bit pulse counter of the PIC16F88 I have for the project.

Output will be to a cheap 4bit LCD or UART serial to a PC, click will be HS 20 Mhz XTAL...

Other candidate is a PIC16F628 in my junkbox.

Math is not a problem when I can say something like:

<pseudo-code>
a = count(pin_b1,100) -- count pulses on pin B1 for 100ms
</pseudo-code>

Any clue, sample code or tip is welcomed.

73 de CO7WT, Pavel in Cuba Island.

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/jallib.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to