LED Matrix display


Results 1 to 14 of 14

Threaded View

  1. #7
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Default Re: LED Matrix display

    Hi Art,
    TRIS 0 for the pin, and value 0.
    Does that not mean it won't source or sink current?
    No not really, with TRIS=0 and Port=0 it WILL sink current..... In relation to the schematic in your second post:
    If you set TRIS=0 then pin is an output. If you then set the pin low it will sink current so (only) the upper LED will turn on, if you set the pin high it will source current so (only) the lower LED will turn on - so far so good. But if you set TRIS=1 the pin is made an input and will not source or sink any current but since the LEDs are connected in series across the supply they will both turn ON - not off.

    If Charlieplexing isn't what you meant I must confess I don't quite follow.... I'll re-read your initial post a couple of more times to see if I can figure it out.

    /Henrik.

    EDIT: OK, you squeezed in a post while I was typing. The two LED "matrix" you show in your latest basically IS how Charlieplexing works.
    Last edited by HenrikOlsson; - 4th October 2013 at 09:29.

Similar Threads

  1. led matrix problem
    By dellpc in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th September 2011, 08:18
  2. SureElectronics LED Dot Matrix Display
    By DanPBP in forum Off Topic
    Replies: 4
    Last Post: - 4th October 2009, 20:10
  3. 5x7 LED Matrix Scrolling Display
    By roycarlson in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 4th August 2008, 23:50
  4. Help led matrix
    By mosbc69 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 14th April 2008, 19:54
  5. 245 Led Matrix Display (as constructed by Magu)
    By magu in forum Code Examples
    Replies: 11
    Last Post: - 29th June 2007, 00:07

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