Clever code... Thanks

I was trying something like that but don't know how to use the counter in TMR1, this a huge improve in my work.

Coding now... I'm thinking on a simple lib for counting pulses using this schema... hummm

Coding.. coding...

El 28/07/13 11:48, Sunish Issac escribió:
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] <mailto:[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]>
        <mailto:[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
        <mailto:jallib%[email protected]>>.

             To post to this group, send email to
        [email protected] <mailto:[email protected]>
             <mailto:jallib@googlegroups.__com
        <mailto:[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
        <mailto:jallib%[email protected]>.
        To post to this group, send email to [email protected]
        <mailto:[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
    <mailto:jallib%[email protected]>.
    To post to this group, send email to [email protected]
    <mailto:[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.



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