LED Matrix Question


Closed Thread
Results 1 to 29 of 29

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Posts
    22


    Did you find this post helpful? Yes | No

    Default

    Thanks for the help guys.

    I think I settled on constructing the matrix like this:


    And the schematic is:



    Let me know if you see any problems. Also, the book I am learning from recommended using the74LS174 decoder. and has provided example code.

  2. #2
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    You seem to have good progress.

    Here is a similar approach.

    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=2045&d=1190816000">
    Attached Images Attached Images  
    Last edited by sayzer; - 26th September 2007 at 15:18.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  3. #3
    Join Date
    Sep 2007
    Posts
    22


    Did you find this post helpful? Yes | No

    Default

    Thanks!

    If I'm only using RC0 - RC4 as my outputs on the PIC (ommitting RC5)...the declarations of PORTC = 0b111111 and PORTC = 0b011111 do the same thing, bcs the low 0 or 1 bit isn't connected to anything, correct? I can leave it like that, or should I omit that bit and just use 0b11111?

  4. #4
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    In PBP, PORTC = %11111, for instance, will set RC0, RC1, RC2, RC3 and RC4.

    This should be the same in your "0b11111" example. Since you do not care about RC5, and possibly RC6 and RC7, then you can use one of your three "PORTC = 0b111111" or "PORTC = 0b011111" or "0b11111" examples.

    They will all set RC0, RC1, RC2, RC3 and RC4 anyway.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

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. Newbie question about switch + led
    By mradde in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 24th January 2009, 17:40
  4. Replies: 27
    Last Post: - 7th December 2007, 22:28
  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