Here's a basic frequency counter which I used to test the 32khz frequency
while testing RTC chips. seemed to be reasonably accurate.
Wanted to put as a sample in jallib .

Sunish


On Sun, Jul 28, 2013 at 7:29 PM, Ing. Pavel Milanes Costa <
[email protected]> wrote:

> Hi vasile
>
> I will be glad to see your code, I will wait for you to search it in the
> office.
>
> In the mean time, I will be researching for the idea Eurvan give to me...
>
>
>
> cheers.
>
> El 28/07/13 02:24, vasile surducan escribió:
>
>> Hi Pavel,
>>
>> There is an example on jallist, I've search for my own version in my
>> computer but it seems I have it only in my office (I hope). The example
>> is using TMR0, it works ok with 4MHz oscillator but is able to count
>> only up to 20KHz with two decimals. I have it in two versions, one with
>> LED display and the other with LCD disply, none of them jallib compatible.
>>
>> However, if you want 50MHz count with PIC I'm afraid you'll need some
>> assembler too...
>>
>> Vasile
>>
>>
>>
>>
>> On Sun, Jul 28, 2013 at 5:41 AM, Ing. Pavel Milanes Costa
>> <[email protected] <mailto:[email protected]>> wrote:
>>
>>     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 
>> jallib+unsubscribe@__googlegro**ups.com<http://googlegroups.com>
>>     
>> <mailto:jallib%2Bunsubscribe@**googlegroups.com<jallib%[email protected]>
>> >.
>>
>>     To post to this group, send email to [email protected]
>>     <mailto:jallib@googlegroups.**com <[email protected]>>.
>>     Visit this group at 
>> http://groups.google.com/__**group/jallib<http://groups.google.com/__group/jallib>
>>     
>> <http://groups.google.com/**group/jallib<http://groups.google.com/group/jallib>
>> >.
>>     For more options, visit 
>> https://groups.google.com/__**groups/opt_out<https://groups.google.com/__groups/opt_out>
>>     
>> <https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>> >.
>>
>>
>>
>>
>> --
>> 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 
>> jallib+unsubscribe@**googlegroups.com<jallib%[email protected]>
>> .
>> To post to this group, send email to [email protected].
>> Visit this group at 
>> http://groups.google.com/**group/jallib<http://groups.google.com/group/jallib>
>> .
>> For more options, visit 
>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>> .
>>
>>
>>
> --
> 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 
> jallib+unsubscribe@**googlegroups.com<jallib%[email protected]>
> .
> To post to this group, send email to [email protected].
> Visit this group at 
> http://groups.google.com/**group/jallib<http://groups.google.com/group/jallib>
> .
> For more options, visit 
> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
> .
>
>
>

-- 
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.


Attachment: 18f4550_serial_lcd_FrequencyMeterCounter.jal
Description: Binary data

Reply via email to