Single PIC to Blink 5 LEDs Independently?


Results 1 to 40 of 69

Threaded View

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


    Did you find this post helpful? Yes | No

    Default Re: Single PIC to Blink 5 LEDs Independently?

    On the 12F683, the CCP1IF bit is PIR1.5.
    Why they have to change things all the time ... I don't know.
    Code:
    CCPIF         VAR PIR1.5
    Both the OSCCON and CMCON0 values don't have enough digits.
    added: CMCON0 won't matter cause it's still 7, but to keep things consistent ...
    Code:
    OSCCON   = %01110000        ' 8Mhz
    CMCON0   = %00000111	    ' Turn off comparators
    Not sure how this got changed, it should be ...
    Code:
    FOR x = 0 to (LEDcount - 1)           ; Load the periods from EEPROM

    Last edited by Darrel Taylor; - 27th March 2014 at 04:47.
    DT

Similar Threads

  1. Single button function
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 40
    Last Post: - 4th April 2020, 18:33
  2. How to blink 8 LEDs at different rates- concurrently?
    By rmteo in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 26th April 2010, 23:47
  3. single sided PCB
    By schu4647 in forum General
    Replies: 1
    Last Post: - 10th December 2008, 18:22
  4. Can't Blink 2 LEDs
    By dfort in forum mel PIC BASIC
    Replies: 2
    Last Post: - 5th March 2008, 22:36
  5. Tx and Rx of Single Pin PIC's
    By Dwayne in forum Code Examples
    Replies: 0
    Last Post: - 26th May 2004, 14:55

Members who have read this thread : 1

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