Routine of an exact second


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Hello,

    It Happens that I don't want to use an alone RTC I want to use code.

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Leonardo View Post
    Hello,

    It Happens that I don't want to use an alone RTC I want to use code.
    Well, then here's some good code for you that take into account the time it takes for the loop and the led statement,....with a 4mhz oscillator

    start:
    pause 499
    pauseus 988
    led = 1
    pause 499
    pauseus 988
    led = 0
    goto start

    Now, how about showing us what you've got written so far, and let us know which PIC you are going to use, what your oscillator source is going to be, etc.etc. We'll help you...but you've got to help yourself...

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    depending of what's around... you may want to use an internal timer, or sim it with your code in MPLAB using StopWatch.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Replies: 4
    Last Post: - 17th December 2009, 01:29
  2. Darrel's latest 16 bit averaging routine?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 17th October 2009, 02:57
  3. Dallas 1-wire search Routine
    By jimbab in forum Code Examples
    Replies: 0
    Last Post: - 7th April 2006, 17:14
  4. RTC 1302 !!! Set time Routine !!
    By uludere72 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 24th February 2006, 10:28
  5. Software Driven Reset Routine
    By Tissy in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th April 2005, 01:53

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