10Hz to 10KHz Frequency Generator


+ Reply to Thread
Results 1 to 9 of 9

Thread: 10Hz to 10KHz Frequency Generator13 days old

  1. #1
    Junior Member thetrueman's Avatar
    Join Date
    Sep 2019
    Posts
    13
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    111.58 MB

    0 Not allowed!

    Exclamation 10Hz to 10KHz Frequency Generator

    Hi,

    I want to Generate 10Hz to 10KHz Frequency Pulses to drive Stepper Drive.
    My approach is to use Timer1 offset register of 16F676 @ 20MHz.

    Basically it runs but calculation of Timer1 offset does not behave linearly.
    By linearly I mean if I calibrate 100Hz for Timer1 offset i.e. 40578 and 65328 for 10KHz.

    So for 5KHz it should be around 53000. But that does not work this way and frequency generated on 53000 is around 50Hz.
    Can some Timer Guru explain this mystery. Thanks.
    Last edited by thetrueman; 7th November 2019 at 14:48.

Attention

This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

The advertisements we display are relevant to this web site and your browsing history

Please consider supporting us by disabling your ad blocker.


Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

If you can, please report issues in the forum area WebSite / Forum Issues


Thank you for your attention.

  • #2
    Junior Member Dave Purola's Avatar
    Join Date
    Jul 2004
    Posts
    67
    Thumbs Up
    Received: 5
    Given: 0
    Total Downloaded
    223.72 MB

    0 Not allowed!

    Default Re: 10Hz to 10KHz Frequency Generator

    Personally I would chose a Pic with an 20 bit NCO and that will give you all the capability you would ever need. Perhaps an 16F18326.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #3
    Prolific Poster See_Mos's Avatar
    Join Date
    Feb 2004
    Posts
    1,286
    Thumbs Up
    Received: 17
    Given: 0
    Total Downloaded
    872.27 MB

    0 Not allowed!

    Default Re: 10Hz to 10KHz Frequency Generator

    Sounds like a problem with the prescaler value. for such a wide range you will need to change the prescaler 1:1 at 10KHx, 1:8 at 10Hz

    I don't know if it is still available for free but Mikroelektronika had a very nice calculator for timers
    My RAM is failing

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #4
    Junior Member thetrueman's Avatar
    Join Date
    Sep 2019
    Posts
    13
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    111.58 MB

    0 Not allowed!

    Question Re: 10Hz to 10KHz Frequency Generator

    Thanks, instead of dedicated chip, I want to program my own chip for better control.

    Frequency can be Min. 50Hz for better solution. Timer1 with 1:1 covers all range which I need.
    But the problem is to assign offset value to interrupt and there to toggle an output with 50% duty cycle.
    How to make a formula to put required frequency value and then Timer1 offset value is to be calculated? Thanks.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #5
    Prolific Poster John Drew's Avatar
    Join Date
    Feb 2002
    Posts
    2,779
    Thumbs Up
    Received: 83
    Given: 34
    Total Downloaded
    4.30 GB

    0 Not allowed!

    Default Re: 10Hz to 10KHz Frequency Generator

    Somewhere on the forum or the WIKI there is a timer calculator. If you can't find it send me a PM with an email address and I'll send you a copy. Using my phone at present and searches are a pain - no mouse!
    John

    PS I think it was called PicTimercalc
    Last edited by John Drew; 7th November 2019 at 23:08.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #6
    Member Dompie's Avatar
    Join Date
    Apr 2012
    Posts
    121
    Thumbs Up
    Received: 14
    Given: 12
    Total Downloaded
    5.03 GB

    0 Not allowed!

    Default Re: 10Hz to 10KHz Frequency Generator

    I think John means this WiKi page

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #7
    Junior Member keytapper's Avatar
    Join Date
    Jun 2019
    Posts
    81
    Thumbs Up
    Received: 3
    Given: 3
    Total Downloaded
    230.41 MB

    0 Not allowed!

    Default Re: 10Hz to 10KHz Frequency Generator

    Thanks you for mentioning that program. I often use this web page

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #8
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    2,215
    Thumbs Up
    Received: 74
    Given: 180
    Total Downloaded
    5.15 GB

    0 Not allowed!

    Default Re: 10Hz to 10KHz Frequency Generator

    The Mikroe one is here here , a personal favorite.
    George.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #9
    Junior Member thetrueman's Avatar
    Join Date
    Sep 2019
    Posts
    13
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    111.58 MB

    0 Not allowed!

    Thumbs up Re: 10Hz to 10KHz Frequency Generator

    Thanks to all. With help of Timer Calculator I understood timer working style and then solved the problem.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

    Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

       

    Similar Threads

    1. Maco Generator
      By SELCUK in forum Proton Plus Compiler v3
      Replies: 14
      Last Post: 21st July 2017, 22:31
    2. Waveform generator
      By ricardourio in forum Projects discussion
      Replies: 11
      Last Post: 22nd February 2017, 12:19
    3. [SOLVED !] Frequency generator
      By theove in forum Proton Plus Compiler v3
      Replies: 12
      Last Post: 12th January 2009, 22:37
    4. Frequency Generator
      By Tektronix2335 in forum Proton Plus Compiler v3
      Replies: 13
      Last Post: 25th January 2008, 23:31
    5. [SOLVED !] font generator
      By RayEllam in forum Proton Plus Compiler v3
      Replies: 4
      Last Post: 12th July 2006, 02:27

    Members who have read this thread : 34

    Actions :  (Set Date)

    You do not have permission to view the list of names.

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts