Making Code Smaller for a Multiplexed LCD Display


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    704


    Did you find this post helpful? Yes | No

    Default Re: Making Code Smaller for a Multiplexed LCD Display

    Quote Originally Posted by Dave View Post
    Is this display a 7 segment?
    Yes, it is.
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  2. #2
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: Making Code Smaller for a Multiplexed LCD Display

    rsocor01, This may be a starting point:
    Attached Files Attached Files
    Dave Purola,
    N8NTA
    EN82fn

  3. #3
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    969


    Did you find this post helpful? Yes | No

    Default Re: Making Code Smaller for a Multiplexed LCD Display

    Actually, I have run into a similar LCD design very recently and have to eventually work on it. What he has is a segmented LCD glass with a controller. The various segments are scattered around the face of the lcd and not similar to a 7 segment LEDs grouping. Look carefully and you will find bits of each pattern are scattered around the lcddata bytes. To my mind, what rsocor01 has got now seems suitable if not ideal.

  4. #4
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    704


    Did you find this post helpful? Yes | No

    Default Re: Making Code Smaller for a Multiplexed LCD Display

    Dave,

    This LCD is actually a 7-segments, 4 commons, multiplexed display. That code is more for an LED display type.

    Jerson,

    Thanks for your comment. So, you know that this displays are a pain in the neck to work with . The code that I posted works perfectly fine, and it can serve as a reference for somebody working with these displays in the future. However, it takes a lot of code space. I was hoping PBP could do something like

    Code:
    DIGIT_0.0   VAR   LCDDATA0.7
    DIGIT_0.1   VAR   LCDDATA3.7
    DIGIT_0.2   VAR   LCDDATA6.7
    ......... And so on
    But, I don't think that it can do it. Any ideas?
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  5. #5
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    969


    Did you find this post helpful? Yes | No

    Default Re: Making Code Smaller for a Multiplexed LCD Display

    Even if it could, the underlying code will still have to do the same hard work of juggling bits around. So, eventually, there may only be syntactic sugar, but the bitterness will remain(code size).

  6. #6
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    704


    Did you find this post helpful? Yes | No

    Default Re: Making Code Smaller for a Multiplexed LCD Display

    Quote Originally Posted by Jerson View Post
    Even if it could, the underlying code will still have to do the same hard work of juggling bits around.
    Yeap, you are right. I was hoping that somebody knew of a clever way of doing this.
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  7. #7


    Did you find this post helpful? Yes | No

    Default Re: Making Code Smaller for a Multiplexed LCD Display

    Hello

    Which pic are you using? There are some newer chips like the 16f1939 with 1k ram and 16K of program space. There are 18f with double.

Similar Threads

  1. LCD display without firmware, problem with code
    By tomadarpel in forum mel PIC BASIC
    Replies: 1
    Last Post: - 30th May 2013, 11:20
  2. Making code more efficient, any ideas please?
    By BobEdge in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 26th July 2011, 13:28
  3. Trying to make code smaller
    By plyrathrt in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 5th January 2009, 17:20
  4. Making PBP code more modular
    By forgie in forum General
    Replies: 30
    Last Post: - 25th October 2005, 16:24
  5. Help Quick Need to make code smaller
    By Programmednew in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 25th January 2005, 03:46

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