Dual clock speeds on a PIC


Results 1 to 8 of 8

Threaded View

  1. #3
    Join Date
    Sep 2007
    Location
    USA, CA
    Posts
    271


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by BrianT View Post
    I need to have the lowest power possible while logging data for up to a year on a small 3.6 volt lithium battery but I also want a fast download to dump the very large data file of 128 MBytes after the data logger has been retrieved many months after deployment. Can I have a PIC running on a 100 KHz crystal while in data gathering mode and just force an external 20 MHz clock into CLKI/OSC1 for the data dump phase. I want to leave the 100 KHz crystal in place between OSC1 and OSC2 and just force a 1 volt peak to peak 20 MHz signal in for the data unload phase.

    Has anyone tried this dual clock speed approach before? Any problems I should look out for?

    BrianT
    The easy answer is to use a PIC with an internal oscillator. You can run most of them at eight different speeds from 31.25khz or 125khz & doubling on up to 8MHz. Run it as slow as you want for gathering mode, and 8mhz for downloading--you can change the clock speed on the fly by changing the OSCCON register.

    For even more power saving, put the PIC to sleep, and wake up periodically. A PIC and a 32khz watch crystal works well as an RTC, and is even documented on the microchip site.
    Last edited by tenaja; - 23rd January 2008 at 02:41. Reason: added osccon info

Similar Threads

  1. Talking Clock (Pic Based)
    By Art in forum General
    Replies: 2
    Last Post: - 20th January 2012, 14:45
  2. Digital clock thermometer Calendar PIC 16F628
    By valdirdf in forum Code Examples
    Replies: 0
    Last Post: - 31st May 2009, 01:52
  3. Can a PIC PIC a PIC?
    By afbecker in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 22nd January 2008, 19:55
  4. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

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