16F877A won't keep relay on 100% of the time


Results 1 to 21 of 21

Threaded View

  1. #8
    Join Date
    Oct 2005
    Location
    Las Vegas, Nevada, USA
    Posts
    27


    Did you find this post helpful? Yes | No

    Default General response

    "Boiler Plate" is a term attorneys use when drafting wrtten legal documents. It's the language included based on prior experience with similar documents. Although the exact purpose would have to be researched, it's included based on long-standing practice. I read a thread and picked up this "assembler" based on what I read about it, and I include it in all my programs.

    The follow code executing all by itself (that is, all other code except initialization, commented out) had the same result:

    MAIN:
    Count PORTB.0, 1, Counter
    if (Counter >= 11) and (Counter <= 13) then
    gosub TurnOn
    else
    gosub TurnOff
    goto main
    endif
    'gosub CK_PORTB
    'gosub CK_PORTE
    goto main
    end

    '----------

    TurnOn:
    high PORTA.2
    RETURN
    TurnOff:
    LOW PORTA.2
    RETURN

    The relay is operating properly. The output of the 877 and darlington was tested with a breadboard and LEDS. I suspect the problem did not show itself at the time because the LEDs were switching so fast I couldn't see the "off". The relay is extremely slow compared to an LED, so now the problem presents itself. The thing is, I'm certain I tested it with the relay too.

    No vibrations occur on this PCB.

    I am now researching the use of PULSIN and the "capture" feature of a CCP module with "Darrel's instant interrupts".
    Last edited by coyotegd; - 7th September 2007 at 18:44.

Similar Threads

  1. First time with external oscillator - 16F877a Not working
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 15th October 2009, 17:14
  2. I don't understand this code!
    By Russ Kincaid in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 13th February 2008, 02:55
  3. Serial Relays
    By tazntex in forum General
    Replies: 3
    Last Post: - 17th May 2007, 17:42
  4. Serout2/serin2 Pbp Problem
    By SOMRU in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th December 2006, 19:55
  5. Timer in real time
    By martarse in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th July 2005, 14:24

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