Interrupts and WDT are driving me crazy!


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: Interrupts and WDT are driving me crazy!

    Hi andywpg. I don't know what you're adding this feature to but perhaps a simpler approach will work:

    start:
    if switchport = 0 then blinkled 'switch open (or closed depending on pull ups or pull downs)
    if switchport = 1 then high ledport 'switch closed
    goto start

    blinkled:
    high ledport
    pause 250
    low ledport
    pause 1000
    if switchport = 1 then start
    goto blinkled

  2. #2
    Join Date
    Jan 2012
    Location
    Grid EN19MV
    Posts
    159


    Did you find this post helpful? Yes | No

    Default Re: Interrupts and WDT are driving me crazy!

    Quote Originally Posted by peterdeco1 View Post
    Hi andywpg. I don't know what you're adding this feature to but perhaps a simpler approach will work:

    start:
    if switchport = 0 then blinkled 'switch open (or closed depending on pull ups or pull downs)
    if switchport = 1 then high ledport 'switch closed
    goto start

    blinkled:
    high ledport
    pause 250
    low ledport
    pause 1000
    if switchport = 1 then start
    goto blinkled
    That would work - and if I don't get it working with the interrupt and sleep, that's way I'll go.

    But the idea was to have it happening 'in the background' - so the power led blinks very briefly when the device is not running - just to let you know the power is on, but nothing is running.

    And it's almost PERSONAL now - I am going to bend this device to my will if it kills me!


    Thanks for the reply
    "I have noticed that even those who assert that everything is predestined and that
    we can change nothing about it still look both ways before they cross the street"


    -Stephen Hawking

Similar Threads

  1. Interrupts and WDT are driving me nuts!
    By andywpg in forum PBP3
    Replies: 0
    Last Post: - 27th February 2013, 00:49
  2. PBP is driving me crazy trying to make an 18F chip blink
    By George in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 20th June 2008, 06:08
  3. LED crazy
    By rickyD in forum mel PIC BASIC
    Replies: 2
    Last Post: - 11th May 2008, 19:50
  4. Button problem driving me crazy!! Please help!
    By bearpawz in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 20th November 2007, 14:46
  5. WTF? Am I crazy?
    By RichardBowser in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 10th July 2006, 02:49

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