Blink LED / toggle output with causing a software delay


Results 1 to 11 of 11

Threaded View

  1. #8
    Join Date
    Nov 2009
    Posts
    5


    Did you find this post helpful? Yes | No

    Post

    Really sorry about the delay in getting this up - major problems with my one and only 12F629 - lost the 'OSCCAL' number when programming,
    somehow... -- so re-compiled it for a 12F509.

    It's long-winded I know, but it works with steady outputs in conjunction with 2 x FLEDS or flashing LED's.
    In the listing, there are 4 lines of commented (tried & unused) code for a simple 250ms on - 250ms off, port toggle for each LED output.
    Of course, this is useless, as the program spends all it's time, toggling outputs..

    No components involved, other than a 3 resistors for LED's, if you want to put some on GPIO.2 / GPIO.4 & GPIO.5 as status indicators to 0V.

    The 2 switch inputs are single-pole tactile types pulled active LOW.

    Switch input pins are GPIO.0 & GPIO.1 - all pin details in the listing.

    Just need to get 2 standard LED's flashing @2Hz on the outputs, without this affecting the switch input 'scan' routine.

    Many thanks all
    Attached Files Attached Files

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