Elapsed Timer Demo


Results 1 to 40 of 112

Threaded View

  1. #31
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Elapsed Timer Demo

    Jim,

    I think that'll just flash it once at the 15 minute point.

    This should work.
    Code:
     Flashing VAR BIT
    
       IF MinutesChanged THEN
            MinutesChanged = 0
            IF Minutes = 15 THEN Flashing = 1
            IF Minutes = 20 THEN
                Flashing = 0
                HPWM 1, 0 , 30000
                POWER = 0
                LEDS = 0
                CURRENT = 0
            ENDIF
        ENDIF
    
        IF Flashing THEN
            SELECT CASE Ticks
              CASE IS <25 : HIGH LED
              CASE IS <50 : LOW  LED
              CASE IS <75 : HIGH LED
              CASE ELSE   : LOW  LED
            END SELECT
        ENDIF
    
    Last edited by Darrel Taylor; - 26th April 2012 at 23:08.
    DT

Similar Threads

  1. Instant Interrupts - Revisited
    By Darrel Taylor in forum Code Examples
    Replies: 772
    Last Post: - 17th February 2016, 23:14
  2. Get elapsed time while TIMER samples pulses
    By RodSTAR in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th March 2009, 17:27
  3. Elapsed Timer Demo in a PIC12F675
    By Leonardo in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 21st November 2008, 01:01
  4. Totally Baffled with Elapsed Timer
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th June 2008, 22:01
  5. Darrel Taylor Elapsed Timer
    By rwskinner in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 13th March 2008, 02:22

Members who have read this thread : 3

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