How do I check my crystal's operation/configuration?


+ Reply to Thread
Results 1 to 6 of 6

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: How do I check my crystal's operation/configuration?

    I have been using 20MHZ xtal's on 18f's..... just straight crystal no r or c's. I make 10 hz interrupts and main program loops on that, toggle blinks a heart-beat led at 10x/sec and no pauses in in code, just use counts of 100ms to do 'tasks'. so to check the timing, I did a serout of simple counter (using longs) once each 10 loops which is 1 serout per second. Then when I start up the pic along with a clock on my pc, and check after 1 or 2 or 5 or 60 minutes, the seconds should sync with time elapsed in seconds, for example after 60 minutes count should be 3600. I found it amazingly accurate using timer 1 and preload. Then all the programming and work is done in the loops or in other interrupts. I also get a % reading of the pic's usage or idle amount using the main loop.
    Name:  18f.JPG
Views: 2020
Size:  73.0 KB

  2. #2
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Thumbs up How do I check my crystal's operation/configuration?

    Thanks amgen, good idea

    That's the kind of thing I was looking for.
    Roger

Similar Threads

  1. FREQOUT command for continuous operation
    By Aussie Barry in forum PBP3
    Replies: 9
    Last Post: - 22nd September 2016, 06:27
  2. 18F67J60 circuit for ethernet operation
    By Kamikaze47 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 27th August 2014, 18:12
  3. Program Configuration check mark issue... maybe.
    By Szczepaniec in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 8th November 2012, 18:17
  4. Replies: 6
    Last Post: - 29th December 2011, 21:39
  5. How do you time an operation?
    By Hylan in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th May 2010, 10:41

Members who have read this thread : 11

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