frequency prescaler using PIC


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: frequency prescaler using PIC

    You can use a 32.768 KHz clock crystal on timer 0 to get 1 Hz timer interrupt. Darrel did this for someone recently for a frequency counter or tachometer project. Nice thing is code runs in hardware.
    EDIT: Found it
    http://www.picbasic.co.uk/forum/show...ht=#post125647
    Last edited by Archangel; - 7th August 2014 at 19:49.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  2. #2
    Join Date
    Jan 2005
    Location
    France
    Posts
    97


    Did you find this post helpful? Yes | No

    Default Re: frequency prescaler using PIC

    Thanks for your replies, I found some example using serach with "counter" and "frequency"
    I must explain now with more details
    I don't need to generate a 1hz signal

    I need to divide the signal from a 10 mhz VCXO(variable oscillator depending a control voltage)
    the well know solution is to use 4 IC like 74LS390 .. too big for me ...i term of placement

    That why I am looking for a newer system (example OCXO signal will become the PIC crystal and
    I must find "something" to count up to 10.000.000 pulses , I know that we are working with Words
    each time the word register is full, I will add 1 in a second register (up to 152 times) remaining
    is 38680 ....
    may be I am "outside my shoes ...." French expression ...

    this 1hz signal (from VCXO) will be compared with a GPS signal (called 1 pps) this GPS is one of
    the best reference to get the lowest PPM deviation

    output from the comparator will be injected to the VCXO, this is in fact a PLL system !

    all the PLL integrated circuits I know, don't have the internal divider up to 10 millions
    I know that I can put a prescaler between the OCXO to feed the PIC but if can avoid it
    it will be great !

    hope my "spannish writing" is enough clear

    Francois

Similar Threads

  1. Maximum frequency output from a PIC
    By NickMu in forum General
    Replies: 68
    Last Post: - 5th December 2013, 20:38
  2. Changing PreScaler during interrupt
    By bcd in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st May 2008, 13:48
  3. Measuring change of frequency with PIC
    By Aussie in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 19th July 2007, 01:47
  4. Replies: 2
    Last Post: - 10th February 2006, 01:04
  5. Frequency Counter using PIC and PicBasic
    By PICtron in forum mel PIC BASIC Pro
    Replies: 31
    Last Post: - 28th January 2005, 06:20

Members who have read this thread : 0

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