DT’s Elapsed Timer Magic Trick


Closed Thread
Results 1 to 22 of 22

Hybrid View

  1. #1
    Join Date
    Aug 2003
    Posts
    985

    Default DT’s Elapsed Timer Magic Trick

    Hi Guys

    Do you think it's possible for a program running on pic 16F628A with no additional hardware,
    connected only to:
    1) a power supply
    2) a single wire clock signal to pin 16 CLKIN
    3) an LED
    to tell what frequency the hardware is running at and adjust DT's Elapsed Timer constant
    accordingly so the LED will flash once per second no matter what crystal is connected?

    I think the answer will be no, but already disagree
    If it turns out too easy, I won’t bother posting the video so fire away!
    Cheers, Art.

  2. #2
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: DT’s Elapsed Timer Magic Trick

    This is the hardware....
    A hardware selectable logic buffered clock, or you can turn them all off and the pic won’t run at all.


  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: DT’s Elapsed Timer Magic Trick

    So where's the LIKE button?

    Robert

  4. #4
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: DT’s Elapsed Timer Magic Trick

    Thanks
    If it is figured out I want it outed, and if not I’ll take it to the world of YouTube but will then give it up

  5. #5
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: DT’s Elapsed Timer Magic Trick

    It's easy, when PIC have internal osc...
    You can use same method to calibrate internal OSC, when OSCCAL value is erased.
    Just feed in known clock reference and adjust internal clock Until you get correct result.

  6. #6
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: DT’s Elapsed Timer Magic Trick

    There’s no known clock reference being fed into it.
    It can currently be any of three clocks so it’s unknown.
    The pic’s clock is set to HS, and is clocked by one of the three signals connected.
    8, 16 or 24 MHz.

Similar Threads

  1. Elapsed Timer Demo
    By Darrel Taylor in forum Code Examples
    Replies: 111
    Last Post: - 29th October 2012, 17:39
  2. Compiling error on Elapsed timer
    By tacbanon in forum General
    Replies: 2
    Last Post: - 9th September 2012, 13:09
  3. SPWM and Elapsed Timer
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 8th May 2008, 03:16
  4. Darrel Taylor Elapsed Timer
    By rwskinner in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 13th March 2008, 01:22
  5. DT Elapsed Timer
    By rwskinner in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 9th March 2008, 23:17

Members who have read this thread : 1

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