Blink LED / toggle output with causing a software delay


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Posts
    5


    Did you find this post helpful? Yes | No

    Thumbs up

    Thank you so much Melanie

    What is more, it works perfectly ! - assembled 1st time, with no errors.

    At one stage, I did actually think about using an incremental counter, with a Gosub/Return statement in the switch monitoring loop, to check the value of the counter and take appropiate action.

    However, the problem still remained of having to 'toggle' the O/P's on & off for 250ms each (and the huge delays using the combined TOGGLE & PULSOUT commands).

    Your solution is very clever - I guess simlilar to 'multiplexing' a multi-digit 7-segment LED display, when only 1 digit is on at any one time, - 'persistance of vision' fools your brain into thinking they are all on at once !

    I'll let you know how I get on 'tweaking' the code & post the results here.

    Thanks again

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink a little Thank you ...

    What is more, it works perfectly ! - assembled 1st time, with no errors.
    Eveybody Sing with me :

    " ain't no sunshine when she's gone, ....." *big smile* - Melanie


    exagerated a little bit ... yes, might be .

    But soooo small a bit !!!

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Conway's Game Of Life
    By wellyboot in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 28th May 2020, 06:14
  2. Free Project - 245 LED Display
    By T.Jackson in forum Code Examples
    Replies: 221
    Last Post: - 16th August 2009, 04:59
  3. 16F628A - Stops if release power switch.
    By dene12 in forum General
    Replies: 16
    Last Post: - 14th February 2009, 07:57
  4. Old and beyond help ?
    By DavidFMarks in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 11th December 2008, 15:23
  5. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30

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