Blinking effect during shifting out to LEDs


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    the reason is simple... bits are shifted one after the other.

    Lets say we want to send this pattern to 8 outputs

    1000 1000

    shiftout shift one bit a the time... of course, it's serial stuff

    Shiftregister out during process

    start
    0000 0001
    0000 0010
    0000 0100
    0000 1000
    0001 0001
    0010 0010
    0100 0100
    1000 1000
    end

    this is why you see some blink. The only way to avoid this, is to use Latchs that will refresh outputs state only at the end of shiftout.. something like 74HC373...

    OR change those shit register to something better like PCF8574 or MCP23016 (do you remind when i talk about those chip the first time??? ). I prefer the last option... take less pins, easier, faster, cheaper, better.
    Last edited by mister_e; - 15th February 2005 at 17:08.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Run a string of LEDs from the mains
    By The Master in forum Off Topic
    Replies: 30
    Last Post: - 1st October 2009, 18:55
  2. output port issues driving LEDs
    By p15218 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th August 2008, 21:42
  3. Use of a PIC
    By Edwardo in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 22nd March 2007, 14:11
  4. Using LEDs as light sensors
    By skimask in forum Code Examples
    Replies: 3
    Last Post: - 30th December 2006, 22:19
  5. controlling leds with the switches
    By ilteris in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th October 2005, 21:02

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